summaryrefslogtreecommitdiff
path: root/gcc
Commit message (Collapse)AuthorAgeFilesLines
* tlink.c (recompile_files): Remove COMPILER_PATH and LIBRARY_PATH from the ↵Nathan Sidwell2001-07-012-0/+8
| | | | | | | | | environment. * tlink.c (recompile_files): Remove COMPILER_PATH and LIBRARY_PATH from the environment. From-SVN: r43677
* mg.exp (compiler_output): Support tcl 8.3.1.Michael Chamberlain2001-07-012-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
* c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT, RID_LAST_PQ.Zack Weinberg2001-07-014-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
* Minor comment and whitespace changesRichard Kenner2001-07-011-5/+7
| | | | From-SVN: r43673
* cse.c (new_label_ref): Variable deleted.Richard Kenner2001-07-012-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
* Trivial whitespace changesRichard Kenner2001-07-012-2/+3
| | | | From-SVN: r43671
* Daily bump.GCC Administrator2001-07-012-2/+2
| | | | From-SVN: r43668
* * ns32k.md: Remove stray backslash-newline in output template.Zack Weinberg2001-06-302-1/+2
| | | | From-SVN: r43666
* rtl.def (DEFINE_INSN, [...]): Change output-template slot to format 'T'.Zack Weinberg2001-06-309-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
* Append a DIR_SEPARATOR to a path specified by the -B switch, if doing so wouldNick Clifton2001-06-303-23/+57
| | | | | | create a valid directory name. From-SVN: r43664
* Daily bump.GCC Administrator2001-06-302-2/+2
| | | | From-SVN: r43663
* gcc.texi (Passes): Update due to recent -fdce -> -fssa-dce changes.Jeffrey A Law2001-06-292-4/+8
| | | | | | | * gcc.texi (Passes): Update due to recent -fdce -> -fssa-dce changes. Fix documentation for SSA DCE pass. From-SVN: r43660
* simplify-rtx.c (simplify_subreg): When simplifying a CONCAT...DJ Delorie2001-06-292-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
* ssa-dce.c (ssa_eliminate_dead_code): Renamed from eliminate_date_code.Jeffrey A Law2001-06-296-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
* ssa-dce.c (note_inherently_necessary_set): New function.Jeffrey A Law2001-06-292-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
* target.h (struct gcc_target): Add comp_type_attributes and ↵Joseph Myers2001-06-2931-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
* dwarf2.h: Add dwarf 2.1 tags/attributes/etc to the enums.Daniel Berlin2001-06-291-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
* * cp-tree.h (flag_dump_class_layout): Remove unneeded declaration.Nathan Sidwell2001-06-292-4/+4
| | | | From-SVN: r43653
* Daily bump.GCC Administrator2001-06-292-2/+2
| | | | From-SVN: r43652
* Also, fix formatting problem in previous ChangeLog commit.Jan van Male2001-06-292-7/+9
| | | | | | | | 2001-06-28 Jan van Male <jan.vanmale@fenk.wau.nl> * predict.c (dump_prediction): Eliminate fprintf warning. From-SVN: r43650
* flow.c (dump_bb): Remove unused third argument to call to fprintf when...Diego Novillo2001-06-282-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
* Makefile.in (OBJS): Add df.oJeff Law2001-06-288-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
* i386.md: Global update to use new string syntax where it will improve ↵Zack Weinberg2001-06-288-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
* darwin.h (REGISTER_TARGET_PRAGMAS): Define.Stan Shebs2001-06-289-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
* ssa-dce.c (eliminate_dead_code): Properly handle control dependencies ↵Jeffrey A Law2001-06-282-0/+38
| | | | | | | | | implied by PHI nodes. * ssa-dce.c (eliminate_dead_code): Properly handle control dependencies implied by PHI nodes. From-SVN: r43643
* flow.c (try_merge_block): Rename to try_optimize_cfg; do basic ↵Jan Hubicka2001-06-283-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
* ssa-dce.c (eliminate_dead_code): Remove fake edges from the CFG after dead ↵Jeffrey A Law2001-06-282-1/+10
| | | | | | | | | code elimination is complete. * ssa-dce.c (eliminate_dead_code): Remove fake edges from the CFG after dead code elimination is complete. From-SVN: r43641
* gthr-posix.h [LIBOBJC]: Add weak definitions of sched_get_priority_max, ↵Rainer Orth2001-06-284-6/+12
| | | | | | | | | | | | | sched_get_priority_min. * gthr-posix.h [LIBOBJC]: Add weak definitions of sched_get_priority_max, sched_get_priority_min. testsuite: * lib/objc.exp (objc_target_compile): Don't need -lposix4 on any Solaris 2.[678] system. From-SVN: r43640
* diagnostic.c (default_print_error_function): Tweak.Gabriel Dos Reis2001-06-2816-36/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * diagnostic.c (default_print_error_function): Tweak. (report_error_function): Likewise. * toplev.h (default_print_error_function): Move to... * diagnostic.h: ...here. Add a `diagnostic_context *' parameter. * tree.h (print_error_function): Move to... * diagnostic.h: ...here. Add a `diagnostic_context *' parameter. ch/ * lang.c: #include diagnostic.h (chill_print_error_function): Add a dummy `diagnostic_context *'. * Makefile.in (lang.o): Depend on diagnostic.h cp/ * error.c (lang_print_error_function): Add a `diagnostic_context *' parameter. Tweak. f/ * Make-lang.in (f/com.o): Depend on diagnostic.h * com.c: #include diagnostic.h (lang_print_error_function): Take a 'diagnostic_context *'. java/ * lang.c: #include diagnostic.h (lang_print_error): Add a `diagnostic_context *' parameter. (java_dummy_print): Likewise. * Make-lang.in (JAVA_LEX_C): Depend on diagnostic.h From-SVN: r43638
* expr.c (expand_assignment): When have varying-length object, make MEM a BLKmode.Richard Kenner2001-06-282-2/+12
| | | | | | | | | * expr.c (expand_assignment): When have varying-length object, make MEM a BLKmode. (expand_expr, case ADDR_EXPR): Use SAVE_EXPR_RTL after putting SAVE_EXPR stack in case we had a SUBREG. From-SVN: r43637
* i386.md (cmp?i): Simplify; refuse immediate operand in alternative 0Jan Hubicka2001-06-284-89/+116
| | | | | | | | | | | | | * i386.md (cmp?i): Simplify; refuse immediate operand in alternative 0 * i386.c (cmpsi_operand): Refuse constants. * i386.md (movsi_insv_1, movsi_insv_1_rex64): Allow immediate operand. * flow.c (block_label, redirect_edge_and_branch): Split out from .... (split_edge) .... here; From-SVN: r43635
* Daily bump.GCC Administrator2001-06-282-2/+2
| | | | From-SVN: r43630
* i386.c (ix86_valid_type_attribute_p): Give external linkage, move ↵Neil Booth2001-06-283-4/+8
| | | | | | | | | | declaration to... * i386/i386.c (ix86_valid_type_attribute_p): Give external linkage, move declaration to... * i386/i386-protos.h: ...here. From-SVN: r43629
* Add CFLAGS_FOR_BUILD for canadian cross build.H.J. Lu2001-06-274-314/+319
| | | | From-SVN: r43628
* Fix ia64-linux bootstrap failure.Jim Wilson2001-06-272-0/+11
| | | | | | * emit-rtl.c (gen_highpart): Call validize_mem. From-SVN: r43627
* inline pow fix/PTHREAD_*_INITIALIZER for Solaris/UW7 Byteorder.h search problemBruce Korb2001-06-283-36/+115
| | | | From-SVN: r43623
* objc-act.c (handle_impent): Rewrite to be more portable and to use ↵Stan Shebs2001-06-284-53/+53
| | | | | | | | | | | | ASM_DECLARE_CLASS_REFERENCE. * objc/objc-act.c (handle_impent): Rewrite to be more portable and to use ASM_DECLARE_CLASS_REFERENCE. * config/darwin.h (ASM_DECLARE_CLASS_REFERENCE): Rename from undocumented DECLARE_CLASS_REFERENCE, add file argument. * doc/tm.texi (ASM_DECLARE_CLASS_REFERENCE): Document. From-SVN: r43622
* simplify-rtx.c (simplify_rtx): Canonicalize commutative expressions by ↵Jeffrey A Law2001-06-272-1/+24
| | | | | | | | | putting complex operands first and... * simplify-rtx.c (simplify_rtx): Canonicalize commutative expressions by putting complex operands first and constants second. From-SVN: r43621
* class.c (set_super_info): Call `set_class_decl_access_flags.'Alexandre Petit-Bianco2001-06-275-5/+44
| | | | | | | | | | | | | | | | | 2001-06-27 Alexandre Petit-Bianco <apbianco@redhat.com> * class.c (set_super_info): Call `set_class_decl_access_flags.' (set_class_decl_access_flags): New function. * java-tree.h (set_class_decl_access_flags): New prototype. * jcf-parse.c (handle_innerclass_attribute): Read and set access flags. (parse_class_file): New local `decl_max_locals.' Take wide types into account to compute DECL_MAX_LOCALS. * parse.y (type_import_on_demand_declaration:): Ignore duplicate imports on demand. (http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01718.html ) From-SVN: r43618
* * tm.texi: Remove merge conflicts.Neil Booth2001-06-271-42/+0
| | | | From-SVN: r43617
* diagnostic.h: Add documentation.Gabriel Dos Reis2001-06-273-32/+80
| | | | | | | | | | | 2001-06-27 Gabriel Dos Reis <gdr@codesourcery.com> * diagnostic.h: Add documentation. Make macros polymorphic. * diagnostic.c (ideal_line_wrap_cutoff): Remove definition. Replace with diagnostic_line_cutoff. (prefixing_policy): Remove. Replace with diagnostic_prefixing_rule. From-SVN: r43616
* system.h (TARGET_ESC): Move to ...Neil Booth2001-06-272-6/+9
| | | | | | | | | | | | | | * system.h (TARGET_ESC): Move to ... * defaults.h (TARGET_ESC): ... here. * target-def.h (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Default to a no-op handler. * tree.c (default_valid_attribute_p): New. (valid_machine_attribute): Handlers can not be NULL. * tree.h (default_valid_attribute_p): New. * doc/tm.texi: Document TARGET_ESC. * cp/decl2.c (import_export_class): Update. From-SVN: r43615
* c-tree.texi, [...]: Replace . at end of sentences preceded by a capital ↵Joseph Myers2001-06-2714-278/+286
| | | | | | | | | | | | letter with @.. * doc/c-tree.texi, doc/contrib.texi, doc/cpp.texi, doc/cppinternals.texi, doc/extend.texi, doc/gcc.texi, doc/gcov.texi, doc/install-old.texi, doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi: Replace . at end of sentences preceded by a capital letter with @.. From-SVN: r43611
* invoke.texi: Add description of max-gcse-passes param.Daniel Berlin2001-06-275-7/+26
| | | | | | | | | | | | | | | | | | 2001-06-26 Daniel Berlin <dan@cgsoftware.com> * doc/invoke.texi: Add description of max-gcse-passes param. * gcse.c (gcse_main): Use MAX_GCSE_PASSES instead of MAX_PASSES. (MAX_PASSES): Remove now unneeded macro. * params.h (MAX_GCSE_PASSES): New macro, to get parameter value of max-gcse-passes param. * params.def (PARAM_MAX_GCSE_PASSES): New parameter, controlling maximum number of GCSE passes to run. Defaults to 1 (which is what MAX_PASSES in gcse.c used to be). From-SVN: r43610
* Daily bump.GCC Administrator2001-06-272-2/+2
| | | | From-SVN: r43606
* system.h (TARGET_ESC): Move to ...Neil Booth2001-06-278-74/+150
| | | | | | | | | | | | | | * system.h (TARGET_ESC): Move to ... * defaults.h (TARGET_ESC): ... here. * target-def.h (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Default to a no-op handler. * tree.c (default_valid_attribute_p): New. (valid_machine_attribute): Handlers can not be NULL. * tree.h (default_valid_attribute_p): New. * doc/tm.texi: Document TARGET_ESC. * cp/decl2.c (import_export_class): Update. From-SVN: r43605
* no preprocessing inside string literalBruce Korb2001-06-272-4/+11
| | | | From-SVN: r43604
* Add missing documentation.Jim Wilson2001-06-262-0/+16
| | | | | | | * doc/tm.texi (MAX_LONG_DOUBLE_TYPE_SIZE, INTEL_EXTENDED_IEEE_FORMAT): Document. From-SVN: r43603
* cpp.texi, [...]: Use @: where necessary when a full stop does not end a ↵Joseph Myers2001-06-279-44/+51
| | | | | | | | | | | sentence. * doc/cpp.texi, doc/cppinternals.texi, doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/invoke.texi, doc/md.texi, doc/tm.texi: Use @: where necessary when a full stop does not end a sentence. From-SVN: r43600
* gcc.texi, [...]: Remove trailing whitespace.Joseph Myers2001-06-274-114/+119
| | | | | | | * doc/gcc.texi, doc/install.texi, doc/invoke.texi: Remove trailing whitespace. From-SVN: r43597