aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2001-07-02explow.c (plus_constant_wide, [...]): New case.Richard Kenner14-84/+58
* explow.c (plus_constant_wide, case LO_SUM): New case. (plus_constant_for_output_wide): Delete. * rtl.h (plus_constant_for_output): Delete. * alias.c (canon_rtx, init_alias_analysis): Call plus_constant instead of plus_constant_for_output. * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise. * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise. * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise. * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise. * config/sparc/sparc.md: Likewise. Convert some change_address calls to adjust_address. From-SVN: r43720
2001-07-03extend.texi, [...]: Improve formatting.Joseph Myers7-191/+220
gcc: * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi: Improve formatting. Improve documentation of -std and -Wwrite-strings. contrib: * texi2pod.pl: Handle @r inside @item. From-SVN: r43718
2001-07-02cse.c (canon_hash): Don't register registers in very small register classes...Geoffrey Keating2-1/+10
* cse.c (canon_hash): Don't register registers in very small register classes, as extending their lifetime might cause reload to fail. From-SVN: r43714
2001-07-02flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.Jan Hubicka2-9/+36
* flow.c (try_redirect_by_replacing_jump): Remove cc0 setter. * flow.c (forwarder_block_p): Fix for fallthru blocks. (try_redirect_by_replacing_jump): Update properly the count and frequency information. From-SVN: r43708
2001-07-02Rotate ChangeLog.Jeff Law2-14446/+14447
From-SVN: r43706
2001-07-02toplev.c (dump_file_index): Move SSA dumps just after first jump dump.Jeffrey A Law4-97/+117
* toplev.c (dump_file_index): Move SSA dumps just after first jump dump. (dump_file): Corresponding changes. (rest_of_compilation): Move SSA path to just after the first jump pass. * doc/gcc.texi (Passes): Update due to movement of SSA path. * doc/invoke.texi: Update dump file #s as they were completely out of date with reality. From-SVN: r43704
2001-07-02[multiple changes]Geoffrey Keating3-4/+66
2001-07-02 Geoffrey Keating <geoffk@redhat.com> * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE. * expr.c (emit_move_insn_1): Deal with non-default STACK_PUSH_CODE. * expr.c (emit_single_push_insn): Fix warning. 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com> * expr.c (emit_move_insn_1): Avoid modifying cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined. From-SVN: r43703
2001-07-02emit-rtl.c (adjust_address): New function.Richard Kenner29-347/+236
* emit-rtl.c (adjust_address): New function. * expr.h (adjust_address): Add declaration. * builtins.c: Replace some calls to change_address with calls to it or to validize_mem. * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise. * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise. * config/arm/arm.c, config/convex/convex.c: Likewise. * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise. * config/i386/i386.c, config/i386/i386.md: Likewise. * config/ia64/ia64.c, config/ia64/ia64.md: Likewise. * config/m32r/m32r.c, config/m68k/m68k.md: Likewise. * config/m88k/m88k.c, config/mips/mips.md: Likewise. * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise. * config/sh/sh.c, config/sparc/sparc.md: Likewise. From-SVN: r43702
2001-07-02Fix HPUX libgcc_s.so linking problem.Jim Wilson4-28/+28
* config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment. * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore. * config/ia64/lib1funcs.asm: Change macro names to match t-ia64. From-SVN: r43700
2001-07-02cppinit.c (lang_defaults): New table.Zack Weinberg2-72/+44
* cppinit.c (lang_defaults): New table. (set_lang): Just read from lang_defaults into the live options structure. From-SVN: r43699
2001-07-02Makefile.in (doc): Depend on $(GENERATED_MANPAGES).Zack Weinberg6-9215/+10
gcc: * Makefile.in (doc): Depend on $(GENERATED_MANPAGES). * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1. * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed. contrib: * gcc_update: Remove entries for gcc.1, cpp.1, gcov.1. From-SVN: r43698
2001-07-02install.texi: Various spelling and markup fixes.Rainer Orth2-71/+87
* doc/install.texi: Various spelling and markup fixes. (Installing GCC): Component specific installation instructions are gone. Fix reference. Warn about removing old install dir in the presence of shared libs. (Configuration): Invoke with options target to match configure --help. Consistently refer to gas, gld pathnames. Invert --enable-multilib documentation. Remove references to old compiler versions. From-SVN: r43697
2001-07-02* flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.Richard Kenner2-1/+5
From-SVN: r43695
2001-07-02install.texi (Specific, [...]): Split from IRIX 5 section.Rainer Orth2-70/+97
* doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5 section. (Specific, mips*-sgi-irix5): Note IDO download. Reworded MIPS C hints. Use GNU as instead of GAS. Markup fixes. Removed SGI Freeware reference, IRIX 6 only. (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete. Note N64 library requirement/workaround. Update O32 hints. Complete list of structure passing bug victims. From-SVN: r43694
2001-07-02+ * simplify-rtx.c (simplify_rtx): Use swap_commutative_operands_p.Jeffrey A Law2-8/+3
+ * simplify-rtx.c (simplify_rtx): Use swap_commutative_operands_p. Forgot to commit Friday. From-SVN: r43692
2001-07-02* doc/install.texi: Remove CVS Id.Gerald Pfeifer2-1/+4
From-SVN: r43691
2001-07-02ssa-dce.c (note_inherently_necessary_set): Add unused attribute.Andreas Jaeger2-13/+17
* ssa-dce.c (note_inherently_necessary_set): Add unused attribute. (find_inherently_necessary): Remove unused variable. From-SVN: r43690
2001-07-02Revert piece of previous patch about include directoriesNathan Sidwell1-6/+2
From-SVN: r43688
2001-07-02c-common.h (TDI_inlined): New ast dump phase.Nathan Sidwell7-76/+129
* c-common.h (TDI_inlined): New ast dump phase. (dump_flag_name): New function. * c-dump.c (dump_files): Add inlined phase. (dump_flag_name): Define. * doc/invoke.texi (-fdump-ast-inlined): Document. cp: * optimize.c (optimize_inline_calls): New function, broken out of ... (optimize_function): ... here. Call it. Don't inline if it is a thunk. (dump_function): Print name of dump flag causing this dump. * semantics.c (expand_body): Move thunk inline check to optimize_function. From-SVN: r43687
2001-07-02stor-layout.c (layout_decl): Revert change to handling of alignment in ↵Richard Kenner2-1/+6
packed types. * stor-layout.c (layout_decl): Revert change to handling of alignment in packed types. From-SVN: r43686
2001-07-02Daily bump.GCC Administrator2-2/+2
From-SVN: r43684
2001-07-01c-common.c (decl_attributes, [...]): Don't call layout_decl for FIELD_DECL.Richard Kenner2-1/+7
* c-common.c (decl_attributes, case A_MODE): Don't call layout_decl for FIELD_DECL. From-SVN: r43682
2001-07-01tm.texi (FUNCTION_ARG): Document that the last call is special.Geoffrey Keating2-0/+9
* doc/tm.texi (FUNCTION_ARG): Document that the last call is special. From-SVN: r43681
2001-07-01expr.c (expand_expr, [...]): Correct check for side-effects in the value of ↵Mark Mitchell2-1/+21
an array element. * expr.c (expand_expr, case ARRAY_REF): Correct check for side-effects in the value of an array element. From-SVN: r43680
2001-07-01tlink.c (recompile_files): Remove COMPILER_PATH and LIBRARY_PATH from the ↵Nathan Sidwell2-0/+8
environment. * tlink.c (recompile_files): Remove COMPILER_PATH and LIBRARY_PATH from the environment. From-SVN: r43677
2001-07-01mg.exp (compiler_output): Support tcl 8.3.1.Michael Chamberlain2-1/+5
2000-09-10 Michael Chamberlain <michael@chamberlain.net.au> * gcc.misc-tests/mg.exp (compiler_output): Support tcl 8.3.1. From-SVN: r43675
2001-07-01c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT, RID_LAST_PQ.Zack Weinberg4-76/+100
* c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT, RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST enumerators. (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros. * c-parse.in (OBJC_STRING): Kill. (objc_string): Decompose to [objc_string] '@' STRING. (reswords): Take the leading '@' off all the Objective C keywords. (objc_rid_sans_at): Kill. (init_reswords): Don't initialize it. (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD. (_yylex): Kill reconsider label. Look ahead one token after an '@'; if we get an identifier, check whether it's an Objective C @-keyword. If so, return the keyword. Otherwise, put back the token and return the '@' as a terminal. * cpplib.c (lex_macro_node): Remove unnecessary check for leading '@' on identifier. Clarify control flow and commentary. From-SVN: r43674
2001-07-01Minor comment and whitespace changesRichard Kenner1-5/+7
From-SVN: r43673
2001-07-01cse.c (new_label_ref): Variable deleted.Richard Kenner2-18/+34
* cse.c (new_label_ref): Variable deleted. (insert): Remove set of new_label_ref. (check_for_label_ref): New function. (cse_basic_block): Don't check new_label_ref; call check_for_label_ref. From-SVN: r43672
2001-07-01Trivial whitespace changesRichard Kenner2-2/+3
From-SVN: r43671
2001-07-01Daily bump.GCC Administrator2-2/+2
From-SVN: r43668
2001-06-30* ns32k.md: Remove stray backslash-newline in output template.Zack Weinberg2-1/+2
From-SVN: r43666
2001-06-30rtl.def (DEFINE_INSN, [...]): Change output-template slot to format 'T'.Zack Weinberg9-67/+109
* rtl.def (DEFINE_INSN, DEFINE_INSN_AND_SPLIT, DEFINE_PEEPHOLE): Change output-template slot to format 'T'. * rtl.h (XTMPL): New. * read-rtl.c (read_escape): New function. (read_quoted_string, read_braced_string): Use it. (read_rtx): Set star_if_braced from the format string. Use XTMPL where appropriate. * genoutput.c (gen_insn, gen_peephole): Use XTMPL to get the template string. * rtl.c: Include errors.h for sake of rtl_check_failed* routines. Document 'T' in rtx format strings. * Makefile.in (rtl.o, $(HOST_PREFIX_1)rtl.o): Depend on errors.h. * errors.c (internal_error): Add missing ": " at end of string. * i860.md: Change triple backslashes to double backslashes at ends of lines in output templates. From-SVN: r43665
2001-06-30Append a DIR_SEPARATOR to a path specified by the -B switch, if doing so wouldNick Clifton3-23/+57
create a valid directory name. From-SVN: r43664
2001-06-30Daily bump.GCC Administrator2-2/+2
From-SVN: r43663
2001-06-29gcc.texi (Passes): Update due to recent -fdce -> -fssa-dce changes.Jeffrey A Law2-4/+8
* gcc.texi (Passes): Update due to recent -fdce -> -fssa-dce changes. Fix documentation for SSA DCE pass. From-SVN: r43660
2001-06-29simplify-rtx.c (simplify_subreg): When simplifying a CONCAT...DJ Delorie2-1/+11
* simplify-rtx.c (simplify_subreg): When simplifying a CONCAT, at least get rid of the CONCAT if we can't simplify further. From-SVN: r43659
2001-06-29ssa-dce.c (ssa_eliminate_dead_code): Renamed from eliminate_date_code.Jeffrey A Law6-21/+33
* ssa-dce.c (ssa_eliminate_dead_code): Renamed from eliminate_date_code. * ssa.h (ssa_eliminate_dead_code): Corresponding changes. * timevar.def (TV_SSA_DCE): Renamed from TV_DEAD_CODE_ELIM. * toplev.c (DFI_ssa_dce): Renamed from DFI_dce. (dump_file_info): Similar changes. (flag_ssa_dce): Similarly (f_options): Similar changes. (rest_of_compilation): Corresponding changes. * doc/invoke.texi: Update as option is now -fssa-dce instead of -fdce. Update dump file name. From-SVN: r43658
2001-06-29ssa-dce.c (note_inherently_necessary_set): New function.Jeffrey A Law2-25/+59
* ssa-dce.c (note_inherently_necessary_set): New function. (find_inherently_necessary): Use it. Do not consider NOTEs, CODE_LABELs or BARRIERS are necessary. Improve handling of asms and unspecs. (delete_insn_bb): Only delete INSNs, CALL_INSNs or JUMP_INSNs. From-SVN: r43656
2001-06-29target.h (struct gcc_target): Add comp_type_attributes and ↵Joseph Myers31-231/+121
set_default_type_attributes. * target.h (struct gcc_target): Add comp_type_attributes and set_default_type_attributes. * target-def.h (TARGET_COMP_TYPE_ATTRIBUTES, TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Define. (TARGET_INITIALIZER): Update. * doc/tm.texi (COMP_TYPE_ATTRIBUTES, TARGET_COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES, TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Update documentation of old target macros to describe new target hooks. * tree.c (make_node): Use target.set_default_type_attributes. (default_comp_type_attributes, default_set_default_type_attributes): New functions. * tree.h (default_comp_type_attributes, default_set_default_type_attributes): Declare. * c-typeck.c (COMP_TYPE_ATTRIBUTES): Don't define. (comptypes): Use target.comp_type_attributes. * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h (arc_comp_type_attributes, arc_set_default_type_attributes, COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Remove functions and macros with default behaviour. * config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h (m32r_comp_type_attributes, m32r_set_default_type_attributes, COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Likewise. * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h (m68hc11_comp_type_attributes, m68hc11_set_default_type_attributes, COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Likewise. * config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h (ns32k_comp_type_attributes, COMP_TYPE_ATTRIBUTES): Likewise. * config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c, config/rs6000/rs6000.h (rs6000_comp_type_attributes, rs6000_set_default_type_attributes, COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Likewise. * config/d30v/d30v.h (COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Remove commented out macro definitions. * config/i386/i386.h (SET_DEFAULT_TYPE_ATTRIBUTES): Likewise. * config/ns32k/ns32k.h (SET_DEFAULT_TYPE_ATTRIBUTES): Likewise. * config/arm/arm.c (arm_comp_type_attributes, arm_set_default_type_attributes): Make static. (TARGET_COMP_TYPE_ATTRIBUTES, TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Define. * config/arm/arm.h (COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Don't define. * config/arm/arm-protos.h (arm_comp_type_attributes, arm_set_default_type_attributes): Don't declare. * config/i386/i386.c (ix86_comp_type_attributes): Make static. (TARGET_COMP_TYPE_ATTRIBUTES): Define. * config/i386/i386.h (COMP_TYPE_ATTRIBUTES): Don't define. * config/i386/i386-protos.h (ix86_comp_type_attributes): Don't declare. cp: * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define. (comptypes): Use target.comp_type_attributes. From-SVN: r43655
2001-06-29dwarf2.h: Add dwarf 2.1 tags/attributes/etc to the enums.Daniel Berlin1-2/+36
2001-06-28 Daniel Berlin <dan@cgsoftware.com> * dwarf2.h: Add dwarf 2.1 tags/attributes/etc to the enums. From-SVN: r43654
2001-06-29* cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.Nathan Sidwell2-4/+4
From-SVN: r43653
2001-06-29Daily bump.GCC Administrator2-2/+2
From-SVN: r43652
2001-06-29Also, fix formatting problem in previous ChangeLog commit.Jan van Male2-7/+9
2001-06-28 Jan van Male <jan.vanmale@fenk.wau.nl> * predict.c (dump_prediction): Eliminate fprintf warning. From-SVN: r43650
2001-06-28flow.c (dump_bb): Remove unused third argument to call to fprintf when...Diego Novillo2-1/+6
2001-06-28 Diego Novillo <dnovillo@redhat.com> * flow.c (dump_bb): Remove unused third argument to call to fprintf when displaying the basic block header. From-SVN: r43649
2001-06-28Makefile.in (OBJS): Add df.oJeff Law8-14/+4077
* Makefile.in (OBJS): Add df.o (df.o): Add dependencies. * basic-block.h (flow_depth_first_order_compute): Declare. * flow.c (flow_depth_first_order_compute): No longer declare. Make external. * df.c, df.h: New files. * po/POTFILES.in: Update for new files. From-SVN: r43647
2001-06-28i386.md: Global update to use new string syntax where it will improve ↵Zack Weinberg8-2058/+2036
readability. * config/i386/i386.md: Global update to use new string syntax where it will improve readability. Warning fixes: (*truncdfsf2_2): Abort if which_alternative is not 0 or 1. (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64): Cast 1 to unsigned int. * read-rtl.c: Syntactic sugar for C embedded in strings in machine descriptions. (read_string): Break inner loop into separate function. Takes an int. Dispatch to read_quoted_string or read_braced_string as appropriate. Automatically insert a leading star on braced strings if STAR_IF_BRACED is true. (read_quoted_string, read_braced_string): New functions. * doc/rtl.texi, doc/md.texi: Document new syntax. Update examples to match. * rtl.c: Split RTL reader (read_rtx, read_skip_spaces, traverse_md_constants, fatal_with_file_and_line, fatal_expected_char, read_name, read_string, def_hash, def_name_eq_p, read_constants, and related data) to its own file. Weed out now-unnecessary #includes. * read-rtl.c: New file. * Makefile.in (HOST_RTL): Add read-rtl.o. (read-rtl.o): New rule. (rtl.o, $(HOST_PREFIX_1)rtl.o): Update dependencies. * doc/gcc.texi (Passes): Talk briefly about the support library used by genfoo. * doc/rtl.texi (Reading RTL): read_rtx is not available in the compiler itself. From-SVN: r43646
2001-06-28darwin.h (REGISTER_TARGET_PRAGMAS): Define.Stan Shebs9-2/+328
* config/darwin.h (REGISTER_TARGET_PRAGMAS): Define. * config/darwin-c.c: New file. * config/darwin-protos.h: Declare new functions. * config/rs6000/t-darwin (darwin-c.o): New rule. * config.gcc (powerpc-*-darwin*): Define c_target_objs and cxx_target_objs. * doc/extend.texi (Pragmas): New section. * gcc.dg/pragma-darwin.c: New test. From-SVN: r43645
2001-06-28ssa-dce.c (eliminate_dead_code): Properly handle control dependencies ↵Jeffrey A Law2-0/+38
implied by PHI nodes. * ssa-dce.c (eliminate_dead_code): Properly handle control dependencies implied by PHI nodes. From-SVN: r43643
2001-06-28flow.c (try_merge_block): Rename to try_optimize_cfg; do basic ↵Jan Hubicka3-33/+400
simplifications on the CFG. * flow.c (try_merge_block): Rename to try_optimize_cfg; do basic simplifications on the CFG. (is_forwarder_block_p, can_fallthru, try_redirect_by_replacing_jump, try_simplify_condjump): New. (redirect_edge_and_branch): Try replace jump insn. (flow_delete_insn): Handle deleting of ADDR_VEC insns. * basic-block.h (FALLTHRU_EDGE, BRANCH_EDGE): New macros. From-SVN: r43642