aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-06-27cgraph.c (cgraph_node, [...]): Avoid re-initializing of known_decls.Jan Hubicka2-2/+9
* cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing of known_decls. From-SVN: r68573
2003-06-27defaults.h (REGISTER_MOVE_COST): Define default here.Hans-Peter Nilsson5-12/+10
* defaults.h (REGISTER_MOVE_COST): Define default here. * regclass.c: Don't define default REGISTER_MOVE_COST here. * reload.c, reload1.c: Ditto. From-SVN: r68567
2003-06-27* flags.h: Really install previous change.Richard Earnshaw2-7/+17
From-SVN: r68562
2003-06-27rtl.h (emit_note): Remove FILE parameter.Nathan Sidwell23-74/+113
* rtl.h (emit_note): Remove FILE parameter. * emit-rtl.c (emit_line_note): Adjust emit_note call. (emit_note): Remove FILE parameter. Adjust. * builtins.c (expand_builtin_expect): Adjust emit_note call. * c-semantics.c (genrtl_scope_stmt): Likewise. (expand_stmt): Likewise. * cfglayout.c (reemit_insn_block_notes): Likewise. (duplicate_insn_chain): Likewise. * except.c (expand_eh_region_start, expand_eh_region_end, sjlj_emit_function_enter): Likewise. * explow.c (probe_stack_range): Likewise. * expr.c (emit_block_move_via_loop): Likewise. * function.c (init_function_start, expand_function_start, expand_function_end, thread_prologue_and_epilogue_insns): Likewise. * integrate.c (expand_inline_function, copy_insn_list): Likewise. * reg-stack.c (compensate_edge): Likewise. * reload1.c (reload): Likewise. * rtlanal.c (hoist_insn_to_edge): Likewise. * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop, expand_loop_continue_here, expand_end_loop, expand_continue_loop, expand_exit_loop_top_cond, expand_value_return, expand_start_bindings_and_block, expand_end_bindings, expand_decl_cleanup, expand_start_case): Likewise. * unroll.c (copy_loop_body * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise. * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise. * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore, rs6000_emit_allocate_stack, rs6000_output_function_prologue, rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise. * config/sh/sh.c (sh_output_mi_thunk): Likewise. * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise. * ada/misc.c (record_code_position): Likewise. From-SVN: r68561
2003-06-27c-tree.h (grokfield): Remove unused filename and line parameters.Nathan Sidwell5-123/+94
* c-tree.h (grokfield): Remove unused filename and line parameters. * c-decl.c (grokfield): Remove unused filename and line parameters. * c-parse.in (component_decl): Adjust field grokking rules, adjust grokfield calls. (component_declarator): Likewise. (component_notype_declarator): Likewise. * objc/objc-act.c (build_module_descriptor): Adjust grokfield calls. (build_protocol_template, build_method_prototype_list_template, build_method_prototype_template, build_category_template, build_selector_template, build_class_template, build_super_template, build_ivar_template, build_ivar_list_template, build_method_list_template, build_method_template, add_instance_variable): Likewise. From-SVN: r68560
2003-06-27stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and OP2 are known to be ↵Kazu Hirata2-1/+6
not equivalent. * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and OP2 are known to be not equivalent. From-SVN: r68557
2003-06-26final.c (debug_flush_symbol_queue): New function.Devang Patel9-22/+292
* final.c (debug_flush_symbol_queue): New function. (debug_queue_symbol): New function. (debug_free_queue): New function. (debug_nesting): New variable. (symbol_queue): New variable. (symbol_queue_index): Same. (symbol_queue_size): Same. * debug.h (debug_flush_symbol_queue): New. (debug_queue_symbol): New. (debug_free_queue): New. (debug_nesting): New. (symbol_queue_index): New. * dbxout.c (DBXOUT_DECR_NESTING): New macro. (DBXOUT_DECR_NESTING_AND_RETURN): New macro. (dbxout_init): Delay symbol output. (dbxout_global_decl): Save, set and reset TREE_USED bit around dbxout_symbol() call. (dbxout_begin_function): Same. (dbxout_finish): Free symbol queue. (dbxout_type): Put appropriate symbols in queue. (dbxout_symbol): Put info for symbol's type in queue. Decrement/Increment nesting counts flush symbol queue appropriately. (dbxout_parms): Increment dbxout nesting. (dbxout_reg_parms): Same. * flags.h (flag_debug_only_used_symbols): New. * toplev.c (flag_debug_only_used_symbols): New variable. (lang_independent_options): Add entries for new option -feliminate-unused-debug-symbols. * common.opt: Add entry for -feliminate-unused-debug-symbols. * opts.c (common_handle_options): Same. * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as -feliminate-unused-debug-symbols. * doc/invoke.texi (Debugging Options): Document -feliminate-unused-debug-symbols. From-SVN: r68556
2003-06-27builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to obtain the ↵Roger Sayle6-34/+60
format string instead of using... * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to obtain the format string instead of using TREE_STRING_POINTER and TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the return value is unused or the length of src is a known constant. * gcc.c-torture/execute/string-opt-16.c: Remove test for disabled sprintf(dst,"%s",src) optimization. * gcc.c-torture/execute/20030626-1.c: New test case. * gcc.c-torture/execute/20030626-2.c: New test case. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r68555
2003-06-27Daily bump.GCC Administrator1-1/+1
From-SVN: r68552
2003-06-26ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.Richard Henderson2-7/+10
* config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls. (ia64_split_call): Only load descriptor for GP register inputs. (ia64_expand_epilogue): Check current_frame_info.mask not current_function_is_leaf to restore ar.pfs. From-SVN: r68549
2003-06-26* config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.Richard Henderson2-1/+5
From-SVN: r68548
2003-06-26emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE instead of ↵Richard Henderson2-2/+9
replacing it. * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE instead of replacing it. From-SVN: r68547
2003-06-26flow.c (propagate_one_insn): Kill function return value registers across ↵Richard Henderson2-2/+8
tail calls. * flow.c (propagate_one_insn): Kill function return value registers across tail calls. From-SVN: r68546
2003-06-26flow.c (propagate_one_insn): Preserve live-at-end registers across tail calls.Richard Henderson2-3/+15
* flow.c (propagate_one_insn): Preserve live-at-end registers across tail calls. From-SVN: r68544
2003-06-26reload.c (can_reload_into): New function.J"orn Rennecke4-1/+243
* reload.c (can_reload_into): New function. (push_reload): Use it. From-SVN: r68542
2003-06-26h8300.c (compute_a_rotate_length): Fix the references to the amount of a ↵Kazu Hirata2-3/+9
rotation. * config/h8300/h8300.c (compute_a_rotate_length): Fix the references to the amount of a rotation. From-SVN: r68539
2003-06-26coff.h: Don't include dbxcoff.h.Nathanael Nerode3-6/+7
* config/sh/coff.h: Don't include dbxcoff.h. * config.gcc: List it here. From-SVN: r68537
2003-06-26call.c (build_op_delete_call): Use strip_array_call.Nathan Sidwell2-5/+9
* call.c (build_op_delete_call): Use strip_array_call. Correct error message to say 'delete' or 'delete[]'. From-SVN: r68536
2003-06-26postreload.c (reload_cse_simplify_set): Call cselib_lookup earlier.Kazu Hirata1-1/+5
* postreload.c (reload_cse_simplify_set): Call cselib_lookup earlier. Don't check if SRC is a constant. From-SVN: r68534
2003-06-26postreload.c (reload_cse_simplify_set): Call cselib_lookup earlier.Kazu Hirata2-6/+9
* postreload.c (reload_cse_simplify_set): Call cselib_lookup earlier. Don't check if SRC is a constant. From-SVN: r68533
2003-06-26Makefile.in (OBJS): Add postreload.o.Kazu Hirata4-1474/+1553
* Makefile.in (OBJS): Add postreload.o. Remove cselib.h from the dependency list for reload1.o. Add a dependency list for postreload.o. * reload.h: Change the comment for the prototype of reload_cse_regs. * reload1.c: Don't include cselib.h. (reload_cse_regs): Move to postreload.c (reload_cse_regs_1): Likewise. (reload_cse_noop_set_p): Likewise. (reload_cse_simplify_set): Likewise. (reload_cse_simplify_operands): Likewise. (RELOAD_COMBINE_MAX_USES): Likewise. (reload_combine_ruid): Likewise. (LABEL_LIVE): Likewise. (reload_combine): Likewise. (reload_combine_note_use): Likewise. (reload_combine_note_store): Likewise. (reg_set_luid): Likewise. (reg_offset): Likewise. (reg_base_reg): Likewise. (reg_mode): Likewise. (move2add_luid): Likewise. (move2add_last_label_luid): Likewise. (MODES_OK_FOR_MOVE2ADD): Likewise. (reload_cse_move2add): Likewise. (move2add_note_store): Likewise. (reload_cse_simplify): Likewise. * postreload.c: New. From-SVN: r68532
2003-06-26simd-4.c (main): Added missing semicolon at end of union.Joern Rennecke1-0/+5
* gcc.c-torture/execute/simd-4.c (main): Added missing semicolon at end of union. From-SVN: r68531
2003-06-26avr.c (final_prescan_insn): Remove support for -mrtl.Kazu Hirata3-14/+8
* config/avr/avr.c (final_prescan_insn): Remove support for -mrtl. * config/avr/avr.h (MASK_RTL_DUMP): Remove. (TARGET_RTL_DUMP): Likewise. (TARGET_SWITCHES): Remove -mrtl. From-SVN: r68530
2003-06-26Added missing semicolon at end of union.Joern Rennecke1-1/+1
From-SVN: r68529
2003-06-26h8300-protos.h: Change emit_a_rotate to output_a_rotate.Kazu Hirata5-106/+82
* config/h8300/h8300-protos.h: Change emit_a_rotate to output_a_rotate. Add a prototype for compute_a_rotate_length. * config/h8300/h8300.c (emit_a_rotate): Change to output_a_rotate. (compute_a_rotate_length): New. (h8300_adjust_insn_length): Remove. * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove. * config/h8300/h8300.md (adjust_length): Remove. (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length. (*rotlhi3_1): Likewise. (*rotlsi3_1): Likewise. From-SVN: r68528
2003-06-26re PR c++/8266 (Explicit instantiation of a template outside its namespace ↵Giovanni Bajo4-7/+56
is broken) From Giovanni Bajo <giovannibajo@libero.it> cp: PR c++/8266 * pt.c (check_explicit_specialization): When looking up a template function from an identifier outside class-scope, bind it to CP_DECL_CONTEXT. testsuite: PR c++/8266 * g++.dg/template/explicit-instantiation3.C: New test. From-SVN: r68527
2003-06-26builtins.c (expand_builtin_mathfn): Always stabilize the argument list ↵Roger Sayle2-65/+46
against re-evaluation. * builtins.c (expand_builtin_mathfn): Always stabilize the argument list against re-evaluation. If expand_unop fails, call expand_call with the stabilized argument list rather than return NULL_RTX. (expand_builtin_mathfn2): Likewise, always stabilize the argument list, and call expand_call ourselves if expand_binop fails. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r68526
2003-06-26* gcc.dg/20030626-1.c: Use signed char.Eric Botcazou2-1/+5
From-SVN: r68525
2003-06-26re PR rtl-optimization/11210 (optimizer drops conditional with typecast from ↵Eric Botcazou4-1/+30
signed to unsigned char) PR optimization/11210 * fold-const (decode_field_reference): Strip only NOPs that don't affect the sign. From-SVN: r68524
2003-06-26* doc/invoke.texi (-fprofile-values): Document.Zdenek Dvorak1-1/+6
From-SVN: r68523
2003-06-26value-prof.c: New.Zdenek Dvorak2-0/+165
* value-prof.c: New. * value-prof.h: New. From-SVN: r68521
2003-06-26sh.md (push_fpscr): Enable for TARGET_SH2E.Dhananjay Deshpande2-3/+8
* gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E. (pop_fpscr, fpu_switch): Likewise. From-SVN: r68520
2003-06-26value-prof.c: New.Zdenek Dvorak8-16/+543
* value-prof.c: New. * value-prof.h: New. * Makefile.in (value-prof.o): New. (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta (profile.o): Add value-prof.h and tree.h dependency. * flags.h (flag_profile_values): Declare. * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS): Add new counters. (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE, GCOV_COUNTER_V_DELTA): New counter sections. (__gcov_merge_single, __gcov_merge_delta): Declare. * flow.c (mark_used_regs): Set subregs_of_mode only when the structure is initialized. * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions. * profile.c: Include value-prof.h and tree.h. (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler, gen_const_delta_profiler, instrument_values): New static functions. (get_exec_counts): Fix comment. (branch_prob): Invoke instrument_values. * toplev.c (flag_profile_values): New flag. * doc/invoke.texi (-fprofile-values): Document. From-SVN: r68519
2003-06-26Makefile.in (cfgrtl.o): Add expr.h dependency.Zdenek Dvorak5-1/+111
* Makefile.in (cfgrtl.o): Add expr.h dependency. * cfgrtl.c: Include expr.h. (mark_killed_regs, safe_insert_insn_on_edge): New functions. * config/i386/i386.h (AVOID_CCMODE_COPIES): Define. * basic-block.h (safe_insert_insn_on_edge): Declare. From-SVN: r68518
2003-06-26c-opts.c (missing_arg): Make non-static.Neil Booth11-30/+31
* c-opts.c (missing_arg): Make non-static. (c_common_handle_option): Don't check for missing arguments. * opts.c (handle_option): Check for missing arguments. ada: * misc.c (gnat_handle_option): Don't check for missing arguments. f: * top.c (ffe_handle_option): Don't check for missing arguments. java: * lang.c (java_handle_option): Don't check for missing arguments. testsuite: * const-str-2.m: Update. From-SVN: r68517
2003-06-26* config/rs6000/power4.md (power4-veccomplex): Correct latency.David Edelsohn2-2/+7
From-SVN: r68516
2003-06-26configure.in (ld_vers): Portability [sed].Loren J. Rittle3-336/+364
* configure.in (ld_vers): Portability [sed]. * configure: Regenerate with autoconf213. From-SVN: r68515
2003-06-26Daily bump.GCC Administrator1-1/+1
From-SVN: r68510
2003-06-26re PR c++/10990 (Cannot convert with dynamic_cast<> to a private base class ↵Mark Mitchell7-30/+93
from within a member function) PR c++/10990 * search.c (lookup_base_r): Rely on accessible_p, rather than trying to emulate that logic here. PR c++/10990 * g++.dg/rtti/dyncast1.C: New test. * g++.dg/abi/mangle4.C: Correct base-specifier access. * g++.dg/lookup/scoped1.C: Remove XFAIL. * g++.old-deja/g++.martin/pmf1.C: Correct base-specifier access. From-SVN: r68507
2003-06-26re PR c++/10931 (valid conversion static_cast<const unsigned ↵Mark Mitchell6-86/+209
int&>(lvalue-of-type-int) is rejected) PR c++/10931 * g++.dg/expr/static_cast1.C: New test. PR c++/10931 * call.c (convert_like): Pass issue_conversion_warnings. (convert_like_with_context): Likewise. (convert_like_real): Add issue_conversion_warnings parameter. (perform_direct_initialization_if_possible): New function. * cp-tree.h (perform_direct_initialization_if_possible): Declare it. * typeck.c (check_for_casting_away_constness): New function. (build_static_cast): Rewrite. From-SVN: r68506
2003-06-25extend.texi: Document new builtin functions for Intel Prescott New Intrunctions.H.J. Lu7-10/+447
2003-06-25 H.J. Lu <hongjiu.lu@intel.com> * doc/extend.texi: Document new builtin functions for Intel Prescott New Intrunctions. * doc/invoke.texi: Document new command-line options, -mpni and -mno-pni, for Intel Prescott New Intrunctions. * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*. * config/i386/i386.c (override_options): Turn on MASK_SSE2 for -mpni. Turn on MASK_SSE for -msse2. (bdesc_2arg): Add PNI builtins with 2 args. (bdesc_1arg): Add PNI builtins with 1 arg. (ix86_init_mmx_sse_builtins): Handle PNI builtins. (ix86_expand_builtin): Likewise. * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT, MASK_TLS_DIRECT_SEG_REFS): Renumbered. (TARGET_PNI): New. (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add -mpni and -mno-pni. (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI. (ix86_builtins): Add PNI builtins. (config/i386/i386.md): Add PNI patterns. * config/i386/pmmintrin.h: New file. From-SVN: r68502
2003-06-25h8300.md (call): Fix the insn lengths.Kazu Hirata2-4/+9
* config/h8300/h8300.md (call): Fix the insn lengths. (call_value): Likewise. From-SVN: r68501
2003-06-25c-common.c (handle_used_attribute): Use mark_referenced.Jan Hubicka4-21/+37
* c-common.c (handle_used_attribute): Use mark_referenced. * varasm.c (mark_referenced): Break out from ... (assemble_name): ... here. * tree.h (mark_referenced): Declare. From-SVN: r68500
2003-06-25gccbug.in: Add PCH to list of categories.Wolfgang Bangerth2-2/+6
2003-06-25 Wolfgang Bangerth <bangerth@dealii.org> * gccbug.in: Add PCH to list of categories. From-SVN: r68497
2003-06-25cppfiles.c: Clarify comments.Martin Schaffner6-6/+14
* cppfiles.c: Clarify comments. * cpphash.h: Likewise. * cpplib.h: Likewise. * cppmacro.c: Likewise. * mkdeps.h: Likewise. From-SVN: r68496
2003-06-25c-opts.c (complain_wrong_lang, [...]): Remove.Neil Booth8-141/+114
* c-opts.c (complain_wrong_lang, write_langs): Remove. (c_common_handle_option): Complaints about wrong language are handled in opts.c now. * opts.c (complain_wrong_lang, write_langs, handle_options): New. (find_opt): Fix thinko. (handle_option): Update prototype. Complain about switches for a different front end. * opts.h (lang_names, handle_options): New. (handle_option): Remove. * opts.sh: Write out language names array. * toplev.c (parse_options_and_default_flags): Use handle_options. From-SVN: r68495
2003-06-25i386.c (MASK_SSE1): Removed.H.J. Lu3-140/+150
2003-06-25 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.c (MASK_SSE1): Removed. (MASK_SSE164): Removed. (MASK_SSE264): Removed. (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264 with MASK_SSE2 | MASK_64BIT. (bdesc_1arg): Likewise. (ix86_init_mmx_sse_builtins): Likewise. * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2. (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for -msse2. From-SVN: r68492
2003-06-25hwint.h (HOST_WIDE_INT_PRINT, [...]): New macros.Kaveh R. Ghazi4-43/+36
* hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros. (HOST_WIDE_INT_PRINT_DEC_SPACE, HOST_WIDE_INT_PRINT_UNSIGNED_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete. (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C, HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C. * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT. * ra-debug.c (dump_static_insn_cost): Likewise. From-SVN: r68489
2003-06-25arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead of ADJUST_FIELD_ALIGN if ↵Nick Clifton2-2/+20
IN_TARGET_LIBS. * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS. Replace occurances of '???' with 'XXX' incase they are mistaken for trigraphs. (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address does not have a register for the first operand. From-SVN: r68487
2003-06-25sh.c (sh_register_move_cost): Add case for moving between MAC_REGS.Dhananjay Deshpande2-0/+8
2003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com> * config/sh/sh.c (sh_register_move_cost): Add case for moving between MAC_REGS. From-SVN: r68484