aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-07-15c.opt: Document more options.Neil Booth7-211/+60
* c.opt: Document more options. * toplev.c (documented_lang_options): Remove all local help strings. treelang: * lang-options.h: Remove. * lang.opt: Document some options. Remove --help. * tree1.c (treelang_handle_option): Remove OPT__help case. From-SVN: r69423
2003-07-15string-opt-8.c (main): Remove i370 and s390, it does not have cmpstrsi ↵Jakub Jelinek2-1/+6
patterns (just cmpmemsi). * gcc.c-torture/execute/string-opt-8.c (main): Remove i370 and s390, it does not have cmpstrsi patterns (just cmpmemsi). From-SVN: r69422
2003-07-15re PR debug/11473 (ICE with -gstabs when empty struct inheits from an empty ↵Mark Mitchell4-3/+14
struct) PR debug/11473 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of base classes. PR debug/11473 * g++.dg/debug/debug8.C: New test. From-SVN: r69414
2003-07-15Rotate ChangeLog.Kazu Hirata2-21489/+21490
From-SVN: r69411
2003-07-15re PR c++/10108 (tree checking ICE: expected var_decl, have error_mark in ↵Kriang Lerdsuwanakij4-0/+26
tsubst_decl) PR c++/10108 * pt.c (tsubst_decl) <TEMPLATE_DECL>: Add a check for error_mark_node. * g++.dg/template/crash7.C: New test. From-SVN: r69409
2003-07-15re PR target/10795 (ICE in extract_insn, at recog.c:2188)Kazu Hirata2-0/+18
PR target/10795 * gcc.c-torture/compile/20030708-1.c: New. From-SVN: r69408
2003-07-15re PR target/10795 (ICE in extract_insn, at recog.c:2188)Kazu Hirata2-0/+12
PR target/10795 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't swap comparison operands if doing so would generate an unrecognizable insn. From-SVN: r69407
2003-07-15Fix formatting.Eric Botcazou1-1/+2
From-SVN: r69404
2003-07-15re PR rtl-optimization/11320 (Scheduler bug)Eric Botcazou7-18/+103
PR optimization/11320 * sched-int.h (struct deps) [reg_conditional_sets]: New field. (struct sched_info) [compute_jump_reg_dependencies]: New prototype. * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to current_sched_info->compute_jump_reg_dependencies. Record which registers are used and which registers are set by the jump. Clear deps->reg_conditional_sets after a barrier. Set deps->reg_conditional_sets if the insn is a COND_EXEC. Clear deps->reg_conditional_sets if the insn is not a COND_EXEC. (init_deps): Initialize reg_conditional_sets. (free_deps): Clear reg_conditional_sets. * sched-ebb.c (compute_jump_reg_dependencies): New prototype. Mark registers live on entry of the fallthrough block and conditionally set as set by the jump. Mark registers live on entry of non-fallthrough blocks as used by the jump. * sched-rgn.c (compute_jump_reg_dependencies): New prototype. Mark new parameters as unused. From-SVN: r69401
2003-07-15* doc/invoke.texi: Resync MIPS -march documentation.Richard Sandiford2-2/+8
From-SVN: r69398
2003-07-15mips.h (PROCESSOR_R9000): New processor_type.Richard Sandiford5-1/+180
* config/mips/mips.h (PROCESSOR_R9000): New processor_type. (TARGET_MIPS9000, TUNE_MIPS9000): New macros. (GENERATE_MULT3_SI): True for TARGET_MIPS9000. * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry. (mips_rtx_costs): Adjust integer multiplication costs for the rm9000. (mips_issue_rate): Handle PROCESSOR_R9000. (mips_use_dfa_pipeline_interface): Likewise. * config/mips/9000.md: New file. * config/mips/mips.md: Include it. (define_attr cpu): Add r9000. (mulsi3_mult3): Use "mul" for rm9000 code. From-SVN: r69397
2003-07-15mips.h (PROCESSOR_R7000): New processor_type.Stan Cox5-1/+237
* config/mips/mips.h (PROCESSOR_R7000): New processor_type. (TARGET_MIPS7000, TUNE_MIPS7000): New macros. (GENERATE_MULT3_SI): True for TARGET_MIPS7000. * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry. (mips_rtx_costs): Adjust integer multiplication costs for the rm7000. (mips_issue_rate): Handle PROCESSOR_R7000. (mips_use_dfa_pipeline_interface): Likewise. * config/mips/7000.md: New file. * config/mips/mips.md: Include it. (define_attr cpu): Add r7000. (mulsi3_mult3): Use "mul" for rm7000 code. From-SVN: r69394
2003-07-15mips.md (define_attr type): Add condmove.Richard Sandiford5-28/+36
* config/mips/mips.md (define_attr type): Add condmove. Use it for the conditional move patterns. * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove. Check for condmove type. (ir_vr54_arith): Add move type. * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise. * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise. From-SVN: r69389
2003-07-15c-opts.c (print_help): Remove.Neil Booth4-102/+109
* c-opts.c (print_help): Remove. (c_common_handle_option): Don't handle --help. * c.opt: Document some options. (--help): Remove. * opts.c (print_filtered_help): New. (print_help): Use it. From-SVN: r69383
2003-07-15c-common.c (c_common_type_for_mode): Handle V4DFmode.Geoffrey Keating4-0/+10
* c-common.c (c_common_type_for_mode): Handle V4DFmode. * tree.c: (build_common_tree_nodes_2): Likewise. * tree.h (enum tree_index): Add TI_V4DF_TYPE. (V4DF_type_node): New. From-SVN: r69382
2003-07-15c-opts.c (push_command_line_include): Don't free deferred_opts, we'll need it.Geoffrey Keating2-1/+7
* c-opts.c (push_command_line_include): Don't free deferred_opts, we'll need it. (finish_options): Reset init_cursor. From-SVN: r69381
2003-07-15* expr.c: Remove the last argument to expand_assignment().Kazu Hirata2-7/+11
From-SVN: r69380
2003-07-15expr.c (expand_assignment): Remove an unused argument SUGGEST_REG.Kazu Hirata5-16/+18
* expr.c (expand_assignment): Remove an unused argument SUGGEST_REG. * expr.h: Update the prototype. * function.c: Update the callers. * stmt.c: Likewise. From-SVN: r69379
2003-07-15inline-3.c: New file.Geoffrey Keating5-0/+28
* gcc.dg/pch/inline-3.c: New file. * gcc.dg/pch/inline-3.hs: New file. * gcc.dg/pch/inline-4.c: New file. * gcc.dg/pch/inline-4.hs: New file. From-SVN: r69378
2003-07-15re PR debug/11098 ([dwarf2] g++ doesn't emit complete debugging information ↵Mark Mitchell2-0/+8
for local variables in destructors) PR debug/11098 * integrate.c (copy_decl_for_inlining): Do not mark copied decls as DECL_ABSTRACT. From-SVN: r69374
2003-07-15inclhack.def (avoid_bool_define, [...]): Bypass with __cplusplus, not "we ↵Nathanael Nerode3-7/+14
must use the C++ compiler's type" * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass with __cplusplus, not "we must use the C++ compiler's type" * fixinc/inclhack.def (void_null): Note that Interix needs this. * fixinc/fixincl.x: Regenerate. From-SVN: r69373
2003-07-15Daily bump.GCC Administrator1-1/+1
From-SVN: r69368
2003-07-14unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects and ↵Geoffrey Keating2-11/+42
unseen_objects from the global data before calling... * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects and unseen_objects from the global data before calling __deregister_frame_info_bases. (examine_objects): Insert objects into the seen_objects list, not unseen_objects. (_Unwind_Find_FDE): Always unlock the global object lists, even if we couldn't allocate a data structure to put in it. From-SVN: r69366
2003-07-14objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.Geoffrey Keating3-4/+16
* objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking. (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend. (SET_TYPE_PROTOCOL_LIST): New. * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST. (get_object_reference): Likewise. From-SVN: r69364
2003-07-14re PR c++/11509 (ICE with expression with static member in template arg)Mark Mitchell4-34/+60
PR c++/11509 * pt.c (dependent_scope_ref_p): New function. (value_dependent_expression_p): Use it. (type_dependent_expression_p): Likewise. * pt.c (tsubst_friend_function): Use reregister_specialization. PR c++/11509 * g++.dg/template/crash6.C: New test. From-SVN: r69363
2003-07-14cfglayout.c (locator_file): Break out from ....Jan Hubicka4-8/+32
* cfglayout.c (locator_file): Break out from .... (insn_file): ... here. (locator_line): Break out from .... (insn_line): ... here. * rtl.h (locator_file, locator_line): Declare. (final_start_function): Set proper line/file info. From-SVN: r69359
2003-07-14*** empty log message ***Gabriel Dos Reis2-2/+58
From-SVN: r69358
2003-07-14mips.c (mips_expand_prologue): Use a single insn to allocate 32768 bytes of ↵Richard Sandiford3-402/+52
stack. * config/mips/mips.c (mips_expand_prologue): Use a single insn to allocate 32768 bytes of stack. Use addition rather than subtraction when a single insn is enough. * config/mips/mips.md: Remove insns and splitters for subtracting constants. (subsi3): Only accept register operands. (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well. (subdi3_internal_3, subsi3_internal_2): Likewise. (casesi): Use expand_binop to subtract the lower bound. From-SVN: r69357
2003-07-14mips.c (mips_in_small_data_p): Don't handle TARGET_MIPS16 specially.Richard Sandiford2-10/+5
* config/mips/mips.c (mips_in_small_data_p): Don't handle TARGET_MIPS16 specially. From-SVN: r69356
2003-07-14elf.h (ASM_OUTPUT_ALIGNED_BSS): Use mips_output_aligned_bss.Richard Sandiford5-38/+36
* config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use mips_output_aligned_bss. * config/mips/linux.h: Likewise. * config/mips/mips-protos.h (mips_output_aligned_bss): Declare. * config/mips/mips.c (mips_output_aligned_bss): New function. From-SVN: r69355
2003-07-14elf.h (DBX_DEBUGGING_INFO): Delete.Richard Sandiford3-3/+3
* config/mips/elf.h (DBX_DEBUGGING_INFO): Delete. * config/mips/elf64.h: Likewise. From-SVN: r69354
2003-07-14elf.h (ASM_DECLARE_OBJECT_NAME): Use mips_declare_object_name.Richard Sandiford8-157/+85
* config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use mips_declare_object_name. (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object. * config/mips/elf64.h: As for elf.h. * config/mips/iris6.h: Likewise. * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h. * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary do...while (0) block. * config/mips/mips-protos.h (mips_declare_object_name): Declare. (mips_finish_declare_object): Declare. * config/mips/mips.c (mips_declare_object_name): New function. (mips_finish_declare_object): New function. From-SVN: r69352
2003-07-14re PR c++/7053 (ICE when declaring a function already defined as a friend ↵Mark Mitchell2-0/+18
method of a template class) PR c++/7053 * g++.dg/template/friend20.C: New test. From-SVN: r69351
2003-07-14elf.h (SBSS_SECTION_ASM_OP): Delete.Richard Sandiford3-5/+3
* config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete. * config/mips/linux.h: Likewise. From-SVN: r69350
2003-07-14mips.c (inside_function): Delete.Richard Sandiford3-49/+16
* config/mips/mips.c (inside_function): Delete. (file_in_function_warning, ignore_line_number): Delete. (mips_output_filename): Don't warn about changing filenames within a function. (mips_output_lineno): Update accordingly. (mips_output_function_prologue): Don't reset the deleted variables. * config/mips/mips.h (inside_function): Delete. (file_in_function_warning, ignore_line_number): Delete. From-SVN: r69348
2003-07-14elf.h (OBJECT_FORMAT_COFF, [...]): Remove undefs.Richard Sandiford7-35/+8
* config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs. * config/mips/elf64.h: Likewise. * config/mips/openbsd.h: Likewise. * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs. * config/mips/linux.h: Likewise. * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete. (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete. From-SVN: r69346
2003-07-14config.gcc (mips-sgi-irix6*o32, [...]): Add mips/sdb.h to the list of ↵Richard Sandiford9-80/+107
include files when using gas. * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h to the list of include files when using gas. (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally. * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO. * config/mips/elf64.h: Likewise. * config/mips/iris5.h: Likewise. * config/mips/linux.h: Likewise. * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition. * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise. (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to... * config/mips/sdb.h: ...this new file. From-SVN: r69345
2003-07-14* lang-specs.h (f77-cpp-input): Use -o to specify the CPP output file.Geoffrey Keating2-1/+5
From-SVN: r69344
2003-07-14re PR c++/7019 ([3.3 only] SFINAE does not work with explicitally specified ↵Mark Mitchell8-17/+62
template arguments) PR c++/7019 * cp-tree.h (lookup_qualified_name): Adjust prototype. * decl.c (lookup_qualified_name): Add complain parameter. Adjust call to is_aggr_type. * parser.c (cp_parser_lookup_name): Adjust call to lookup_qualified_name. * pt.c (tsubst_qualified_id): Likewise. (tsubst_copy_and_build): Likewise. * semantics.c (finish_qualified_id_expr): Deal with erroneous expressions. PR c++/7019 * g++.dg/template/overload2.C: New test. From-SVN: r69342
2003-07-14re PR c++/11510 (Error message with operator __imag__ is missing spaces)Gabriel Dos Reis3-0/+20
PR c++/11510 * call.c (op_error): Properly handle REALPART_EXPR and IMAGPART_EXPR. * error.c (dump_expr): Likewise. From-SVN: r69340
2003-07-14[multiple changes]Nathanael Nerode4-141/+13
2003-07-14 Douglas Rupp <rupp@gnat.com> * fixinc/server.c (server_setup): Don't use non-POSIX NULL first argument to getcwd; use fixed buffer instead. 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org> * fixinc/mkfixinc.sh: Treat OpenBSD normally. * fixinc/fixinc.wrap: Delete. From-SVN: r69339
2003-07-14* error.c (dump_expr): Handle EMPTY_CLASS_EXPR.Gabriel Dos Reis2-0/+10
From-SVN: r69338
2003-07-14re PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, ↵Franz Sirl2-0/+198
-fno-gcse cures it) 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> PR optimization/11440 * gcc.c-torture/execute/20030714-1.c: New test. From-SVN: r69334
2003-07-14re PR c++/5293 (confusing message when binding a temporary to a reference)Gabriel Dos Reis3-1/+22
PR c++/5293 * call.c (initialize_reference): Improve diagnostic. From-SVN: r69332
2003-07-14ggc-page.c (extra_order_size_table): Insns have 9 slots.Gerald Pfeifer5-760/+1124
* ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs don't have 2. * ggc-page.c (struct globals): Add new fields to keep track of the total allocated memory and overhead. (ggc_print_statistics): Print them. (ggc_alloc): Keep track of the total allocated memory and the overhead. * tree.c (dump_tree_statistics): Increase spacing. (enum tree_node_kind): Move to ... * tree.h (enum tree_node_kind): ... here. (tree_node_counts, tree_node_sizes): Declare. * doc/include/texinfo.tex: Upgrade to texinfo 4.6. From-SVN: r69330
2003-07-14re PR c++/11154 (spurious ambiguity report for template class specialization)Kriang Lerdsuwanakij5-7/+36
PR c++/11154 * pt.c (more_specialized_class): Add full_args parameter. (most_specialized_class): Adjust calls to more_specialized_class. * cp-tree.h (more_specialized_class): Adjust declaration. * g++.dg/template/partial2.C: New test. From-SVN: r69328
2003-07-14* lex.c (enum tree_node_kind): Delete.Dan Nicolaescu2-29/+4
From-SVN: r69327
2003-07-14re PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, ↵Franz Sirl2-3/+12
-fno-gcse cures it) 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> PR optimization/11440 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or SIGN_EXTRACT SETs. From-SVN: r69325
2003-07-14tm.texi (BLOCK_REG_PADDING): Describe.Alan Modra11-95/+291
* doc/tm.texi (BLOCK_REG_PADDING): Describe. * expr.h (struct locate_and_pad_arg_data): Add where_pad. (emit_group_load, emit_group_store): Adjust declarations. Remove most occurrences of #ifdef TREE_CODE. * expr.c (emit_group_load): Add "type" param, and use BLOCK_REG_PADDING to determine need for a shift. Optimize non- aligned accesses if !SLOW_UNALIGNED_ACCESS. (emit_group_store): Likewise. (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust emit_group_load and emit_group_store calls. * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use BLOCK_REG_PADDING to determine whether we need endian_correction. (load_register_parameters): Localize vars. Handle shifting of small values to the correct end of regs. Adjust emit_group_load call. (expand_call, emit_library_call_value_1): Adjust emit_group_load and emit_group_store calls. * function.c (assign_parms): Set mem alignment for stack slots. Adjust emit_group_store call. Store values at the "wrong" end of regs to the stack. Use BLOCK_REG_PADDING. (locate_and_pad_parm): Save where_pad. (expand_function_end): Adjust emit_group_load call. * stmt.c (expand_value_return): Adjust emit_group_load call. * Makefile.in (calls.o): Depend on $(OPTABS_H). * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0. (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define. (MUST_PASS_IN_STACK): Define. (BLOCK_REG_PADDING): Define. * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs. (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING. * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs. (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code. Act on AGGREGATES_PAD_UPWARD_ALWAYS. From-SVN: r69318
2003-07-14re PR c++/11503 (segfault when instantiating template with ADDR_EXPR)Mark Mitchell7-10/+49
PR c++/11503 * g++.dg/template/anon1.C: New test. PR c++/11503 * cp-tree.h (DECL_SELF_REFERENCE_P): New macro. (SET_DECL_SELF_REFERENCE_P): Likewise. * class.c (build_self_reference): Use SET_DECL_SELF_REFERENCE_P. * pt.c (tsubst_decl): Copy it. * search.c (lookup_base): Use DECL_SELF_REFERENCE_P. From-SVN: r69317