aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-03-09varasm.c (make_decl_one_only): Use declare_weak().Franz Sirl2-1/+5
2003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * varasm.c (make_decl_one_only): Use declare_weak(). From-SVN: r64044
2003-03-09re PR middle-end/9986 ([HP-UX] [3.4 regression] Incorrect transformation of ↵John David Anglin5-18/+116
fputs_unlocked to fputc_unlocked) PR middle-end/9986 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins after the common builtins. * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define. * pa.c (TARGET_INIT_BUILTINS): Define. (pa_init_builtins): New function. * pa.md (call, call_value, sibcall, sibcall_value): When sufficient space has been allocated for the outgoing arguments, set the arg pointer for a call emitted after virtuals have been instantiated using the stack pointer offset, otherwise abort. From-SVN: r64043
2003-03-09* config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.DJ Delorie2-5/+4
From-SVN: r64041
2003-03-09* arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)Richard Earnshaw3-6/+13
(arm_fix_truncdfsi2): Add missing fix in floating point mode before conversion to integer. * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise. From-SVN: r64037
2003-03-09* gcc.dg/i386-loop-1.c: New test.Eric Botcazou2-0/+109
From-SVN: r64031
2003-03-09builtins.def: Fix typo and improve grammar.Roger Sayle3-2/+8
* builtins.def: Fix typo and improve grammar. * loop-unroll.c (decide_peel_completely): Tidy log message. From-SVN: r64030
2003-03-09re PR c++/9970 (previously declared inline friend can't access members)Kriang Lerdsuwanakij4-1/+30
PR c++/9970 * decl.c (duplicate_decls): Only copy DECL_THUNKS for virtual functions. * g++.dg/lookup/friend1.C: New test. From-SVN: r64029
2003-03-09h8300.md (*tstsi_upper_bit): New.Kazu Hirata2-0/+37
* config/h8300/h8300.md (*tstsi_upper_bit): New. (*iorsi3_e2f): Likewise. From-SVN: r64026
2003-03-09h8300.c (h8300_and_costs): Return the number of assembly instructions needed.Kazu Hirata2-2/+8
* config/h8300/h8300.c (h8300_and_costs): Return the number of assembly instructions needed. (h8300_shift_costs): Likewise. From-SVN: r64020
2003-03-09* config/cris/aout.h (ENDFILE_SPEC): Undef.Hans-Peter Nilsson2-0/+5
From-SVN: r64017
2003-03-09optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC moves from ↵Hans-Peter Nilsson3-61/+59
here ... * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC moves from here ... * expr.c (emit_move_insn_1): ... to here. From-SVN: r64015
2003-03-09aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...Hans-Peter Nilsson4-13/+69
* config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to... (TARGET_OS_CPP_BUILTINS): New macro. * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to... (TARGET_OS_CPP_BUILTINS): New macro. (CPP_PREDEFINES): Don't define. Move old definitions and... (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to... (TARGET_CPU_CPP_BUILTINS): New macro. * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant definitions and the optional __PIC__, __pic__ and __NO_UNDERSCORES__ definitions to... (TARGET_OS_CPP_BUILTINS): New macro. From-SVN: r64014
2003-03-09* lang-specs.h (c++-header): Change .pch to .gch.Geoffrey Keating2-1/+5
From-SVN: r64013
2003-03-09* flags.h (flag_leading_underscore): Declare.Hans-Peter Nilsson2-0/+6
From-SVN: r64012
2003-03-09Daily bump.GCC Administrator1-1/+1
From-SVN: r64011
2003-03-08c-opts.c (c_common_post_options): On fopen failure, return false, not NULL.Hans-Peter Nilsson2-1/+6
* c-opts.c (c_common_post_options): On fopen failure, return false, not NULL. From-SVN: r64004
2003-03-08cris_abi_symbol.c: #include tconfig.h and tm.h, not config.h.Hans-Peter Nilsson4-7/+17
* config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not config.h. * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here. * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef. From-SVN: r64003
2003-03-08rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of CPP_PREDEFINES.Neil Booth3-6/+16
* config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of CPP_PREDEFINES. * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of CPP_PREDEFINES. From-SVN: r64002
2003-03-08c-common.h (c_common_init, [...]): Update.Neil Booth25-212/+277
* c-common.h (c_common_init, c_common_post_options): Update. * c-objc-common.c (c_objc_common_init): Update for new prototype. * c-opts.c (saved_lineno): New. (c_common_post_options, c_common_init): Update prototypes, move call to cpp_read_main_file from latter to former. * c-tree.h (c_ojbc_common_init): Update. * langhooks-def.h (lhd_post_options): New. (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update. * langhooks.c (lhd_post_options): New. * langhooks.h (struct lang_hooks): Update post_options and init hooks. * toplev.c (no_backend): New. (process_options): Call post_options hook and set main_input_filename and input_filename here. (lang_dependent_init, do_compile): post_options hook moved to process_options. * objc/objc-act.c (objc_init): Update prototype. * objc/objc-act.h (objc_init): Update prototype. ada: * misc.c (gnat_init): Update for new prototype. cp: * cp-tree.h (cxx_init): Update prototype. * lex.c (cxx_init): Similarly. f: * com.c (ffe_init): Update prototype; move code to ffe_post_options. (ffe_post_options): New. java: * lang.c (java_init): Update prototype, move code to java_post_options. (java_post_options): Similarly. treelang: * tree1.c (in_fname): Fix type. (treelang_init): Update prototype and use of in_fname. * treelang.h (in_fname): Fix type. * treetree.c (tree_code_if_start, tree_code_if_else, tree_code_if_end, tree_code_create_function_prototype, tree_code_create_function_initial, tree_code_create_funciton_wrapup, tree_code_create_variable, tree_code_output_expression_statement) : Fix prototypes and use of filenames. * treetree.h: Similarly. From-SVN: r64001
2003-03-08emit-rtl.c (gen_lowpart): Don't attempt to load a part of a complex or ↵Roger Sayle2-0/+6
vector type... * emit-rtl.c (gen_lowpart): Don't attempt to load a part of a complex or vector type, using a load in the original mode. From-SVN: r64000
2003-03-08re PR c++/9823 (ICE in sort_mem_initializers)Mark Mitchell6-13/+22
PR c++/9823 * cp-tree.h (begin_mem_initializers): Remove. * parser.c (cp_parser_mem_initializer_list): Inline it here. Do not call finish_mem_initializers if not in a constructor. (cp_parser_class_head): Fix typo in error message. * semantics.c (begin_mem_initializers): Remove. * testsuite/g++.dg/parser/constructor1.C: New test. PR c++/9823 * g++.dg/parser/constructor1.C: New test. From-SVN: r63999
2003-03-08Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.Jan Hubicka3-4/+28
* Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h. * gt-cgraph.h: New GC file. * cgraph.c (known_fns): New static variable. (cgraph_node): Add the decl into varray. From-SVN: r63998
2003-03-08* config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.Hans-Peter Nilsson2-2/+8
From-SVN: r63997
2003-03-08* arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)Richard Earnshaw5-105/+118
(neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm) (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm) (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu. All callers changed. * arm.md, arm.h, arm-protos.h: Updated. * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS. (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated. * arm.c (arm_regno_class, f_register_operand): Updated. From-SVN: r63996
2003-03-08cris.h: Remove EGCS references.Hans-Peter Nilsson2-19/+13
* config/cris/cris.h: Remove EGCS references. (CPP_SPEC): Remove "-$". (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL. From-SVN: r63995
2003-03-08stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in preference to CPP_PREDEFINES.Neil Booth2-1/+9
* config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in preference to CPP_PREDEFINES. From-SVN: r63994
2003-03-08* gcc.c-torture/execute/20020720-1.x: Add xfail for cris-*-*.Hans-Peter Nilsson2-1/+4
From-SVN: r63993
2003-03-08* gcc.dg/old-style-asm-1.c: Tweak to match mmix-knuth-mmixware.Hans-Peter Nilsson2-1/+13
From-SVN: r63991
2003-03-08cppinit.c (cpp_finish_options): Set first_unused_line to -1.Neil Booth4-2/+13
* cppinit.c (cpp_finish_options): Set first_unused_line to -1. testsuite: * gcc.dg/cpp/Wunused.c: Update test. From-SVN: r63985
2003-03-08* config/h8300/h8300.md (*extzv_16_8): New.Kazu Hirata2-0/+15
From-SVN: r63984
2003-03-08inline-3.c: New test.Jan Hubicka10-22/+246
* gcc.dg/inline-3.c: New test. * c-decl.c: (finish_function): Update call of tree_inlinable_function_p. * cgraph.h: (cgraph_local_info): Add can_inline_once (cgraph_global_info): Add inline_once. (cgraph_node): Add previous. (cgraph_remove_node): New. * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static function. (cgraph_optimize): Call it. (cgraph_finalize_function): Set inlinable flags. (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes. (cgraph_mark_functions_to_output): Use new inlining heuristics flags. (cgraph_expand_function): Likewise. * cgraph.c (cgraph_node): Put nodes into doubly linked chain. (cgraph_remove_node): New function. * flags.h (flag_inline_functions_called_once): Declare. * tree-inline.c: Include cgraph.h (inlinable_functions_p): Add extra argument to bypass limits. (expand_call_inline): Obey cgraph flag. * tree-inline.h (tree_inlinable_function_p): Update prototype. From-SVN: r63983
2003-03-08Initialize argsMark Mitchell1-1/+1
From-SVN: r63981
2003-03-08gcse.c (bypass_block, [...]): Do not create irreducible loops.Zdenek Dvorak3-2/+29
* gcse.c (bypass_block, bypass_conditional_jumps): Do not create irreducible loops. * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible loops info correctly. From-SVN: r63980
2003-03-08Fix typoMark Mitchell1-1/+1
From-SVN: r63979
2003-03-08re PR c++/9809 (when are builtins brought into view)Mark Mitchell14-106/+289
PR c++/9809 * g++.dg/parse/builtin1.C: New test. PR c++/9982 * g++.dg/abi/cookie1.C: New test. * g++.dg/abi/cookie2.C: Likewise. PR c++/9524 * g++.dg/parse/field1.C: New test. PR c++/9912 * g++.dg/parse/class1.C: New test. * g++.dg/parse/namespace7.C: Likewise. * g++.old-deja/g++.other/decl5.C: Remove XFAILs. From-SVN: r63977
2003-03-08re PR middle-end/7796 (sparc-sun-solaris2.7 extra failure w/-m64 on ↵Eric Botcazou2-4/+14
execute/930921-1.c in unroll.c) PR middle-end/7796 * unroll.c (calculate_giv_inc): Handle constants being loaded with LSHIFTRT. From-SVN: r63971
2003-03-08rs6000.c (processor_target_table): Do not disable GP optional instructions ↵David Edelsohn2-3/+8
on Power3, Power4, 620, and 630. * config/rs6000/rs6000.c (processor_target_table): Do not disable GP optional instructions on Power3, Power4, 620, and 630. From-SVN: r63967
2003-03-08calls.c: Fix comment formatting.Kazu Hirata13-23/+38
* calls.c: Fix comment formatting. * cfgloopanal.c: Likewise. * cfgloopmanip.c: Likewise. * combine.c: Likewise. * dwarf2out.c: Likewise. * ggc-common.c: Likewise. * langhooks.c: Likewise. * loop-unroll.c: Likewise. * loop.c: Likewise. * ra-build.c: Likewise. * sbitmap.c: Likewise. * toplev.c: Likewise. From-SVN: r63966
2003-03-08Fix typoMark Mitchell1-1/+1
From-SVN: r63965
2003-03-07Fix for proprietary testcase that fails at -m5-compact...James E Wilson2-2/+6
Fix for proprietary testcase that fails at -m5-compact ����������������* config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count. From-SVN: r63963
2003-03-08Daily bump.GCC Administrator1-1/+1
From-SVN: r63962
2003-03-07lang-specs.h (objective-c-header): Use .gch not .pch; support ↵Geoffrey Keating3-13/+17
-no-integrated-cpp. * objc/lang-specs.h (objective-c-header): Use .gch not .pch; support -no-integrated-cpp. * c-pch.c (get_ident): Use c_language_kind and flag_objc rather than langhooks.name. From-SVN: r63955
2003-03-07df.h (enum df_ref_flags.DF_REF_STRIPPED): New.Michael Matz7-40/+79
* df.h (enum df_ref_flags.DF_REF_STRIPPED): New. (DF_FOR_REGALLOC): New. * df.c (df_ref_record): Set DF_REF_STRIPPED. (read_modify_subreg_p): Simplify. (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often. Use DF_FOR_REGALLOC. * ra.h (struct web): New member subreg_stripped. (invalid_mode_change_regs): Declare. * ra.c (invalid_mode_change_regs): New. (init_ra): Initialize it. * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it. Use CANNOT_CHANGE_MODE_CLASS as ifdef guard. (reinit_one_web, parts_to_web_1): Deal with subreg_stripped. * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs. Use CANNOT_CHANGE_MODE_CLASS as ifdef guard. From-SVN: r63952
2003-03-07call.c (reference_binding): Remove REF_IS_VAR parameter.Mark Mitchell7-46/+121
* call.c (reference_binding): Remove REF_IS_VAR parameter. (implicit_conversion): Adjust call to reference_binding. (make_temporary_var_for_ref_to_type): Add TYPE parameter. (initialize_reference): Adjust handling for references bound to rvalues. * cp-tree.h (make_temporary_var_for_ref_to_temp): Change prototype. (real_non_cast_lvalue_p): New function. * cvt.c (build_up_reference): Adjust use of make_temporary_var_for_ref_to_temp. * tree.c (real_non_cast_lvalue_p): New function. * g++.dg/init/ref4.C: New test. From-SVN: r63949
2003-03-07* gcc.dg/i386-local2.c: Fix problems with certain versions of dejagnu.Jan Hubicka2-1/+5
From-SVN: r63945
2003-03-07* arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)Richard Earnshaw3-171/+177
(negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2) (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main machine description file from ... * cirrus.md: ... here. From-SVN: r63940
2003-03-07except.c (init_exception_processing): Use C90 prototype style.Gabriel Dos Reis2-73/+75
* except.c (init_exception_processing): Use C90 prototype style. (cp_protect_cleanup_actions): Likewise. (prepare_eh_type): Likewise. (build_eh_type_type): Likewise. (build_exc_ptr): Likewise. (do_begin_catch): Likewise. (dtor_nothrow): Likewise. (do_end_catch): Likewise. (push_eh_cleanup): Likewise. (decl_is_java_type): Likewise. (choose_personality_routine): Likewise. (initialize_handler_parm): Likewise. (expand_start_catch_block): Likewise. (expand_end_catch_block): Likewise. (begin_eh_spec_block): Likewise. (finish_eh_spec_block): Likewise. (do_allocate_exception): Likewise. (do_free_exception): Likewise. (wrap_cleanups_r): Likewise. (stabilize_throw_expr): Likewise. (build_throw): Likewise. (complete_ptr_ref_or_void_ptr_p): Likewise. (is_admissible_throw_operand): Likewise. (nothrow_libfn_p): Likewise. (can_convert_eh): Likewise. (check_handlers_1): Likewise. (check_handlers): Likewise. From-SVN: r63935
2003-03-07* rtti.c (get_tinfo_decl): Use build_address/build_nop.Mark Mitchell1-1/+2
From-SVN: r63931
2003-03-07call.c (merge_conversion_sequences): New function.Mark Mitchell6-34/+112
* call.c (merge_conversion_sequences): New function. (build_conv): Set ICS_USER_FLAG for USER_CONVs. (convert_class_to_reference): Correct handling of second standard conversion sequence in a user-defined conversion sequence. (build_user_type_conversion_1): Use merge_conversion_sequences. * cp-tree.def: Add comments for CONV nodes. * g++.dg/init/ref3.C: New test. From-SVN: r63930
2003-03-07error.c (init_error): Use C90 prototype style.Gabriel Dos Reis2-222/+174
* error.c (init_error): Use C90 prototype style. (dump_scope): Likewise. (dump_qualifiers): Likewise. (dump_template_argument): Likewise. (dump_template_argument_list): Likewise. (dump_template_parameter): Likewise. (dump_template_bindings): Likewise. (dump_type): Likewise. (dump_typename): Likewise. (class_key_or_enum): Likewise. (dump_aggr_type): Likewise. (dump_type_prefix): Likewise. (dump_type_suffix): Likewise. (dump_global_iord): Likewise. (dump_simple_decl): Likewise. (dump_decl): Likewise. (dump_template_decl): Likewise. (dump_function_decl): Likewise. (dump_parameters): Likewise. (dump_exception_spec): Likewise. (dump_function_name): Likewise. (dump_template_parms): Likewise. (dump_char): Likewise. (dump_expr_list): Likewise. (dump_expr): Likewise. (dump_binary_op): Likewise. (dump_unary_op): Likewise. (type_as_string): Likewise. (expr_as_string): Likewise. (decl_as_string): Likewise. (context_as_string): Likewise. (lang_decl_name): Likewise. (cp_file_of): Likewise. (cp_line_of): Likewise. (decl_to_string): Likewise. (expr_to_string): Likewise. (fndecl_to_string): Likewise. (code_to_string): Likewise. (language_to_string): Likewise. (parm_to_string): Likewise. (op_to_string): Likewise. (type_to_string): Likewise. (assop_to_string): Likewise. (args_to_string): Likewise. (cv_to_string): Likewise. (cxx_print_error_function): Likewise. (cp_diagnostic_starter): Likewise. (cp_diagnostic_finalizer): Likewise. (cp_print_error_function): Likewise. (function_category): Likewise. (print_instantiation_full_context): Likewise. (print_instantiation_partial_context): Likewise. (maybe_print_instantiation_context): Likewise. (print_instantiation_context): Likewise. (cp_printer): Likewise. (print_integer): Likewise. (print_non_consecutive_character): Likewise. (locate_error): Likewise. From-SVN: r63928