aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2001-07-17dbxout.c (dbxout_really_begin_function): Rename to dbxout_begin_function.Neil Booth15-158/+209
* dbxout.c (dbxout_really_begin_function): Rename to dbxout_begin_function. (dbx_debug_hooks, xcoff_debug_hooks): Update. (dbxout_begin_function): Remove. (dbxout_function): Update. (dbxout_source_line): Update prototype. * dbxout.h (dbxout_begin_function): Remove. * debug.c (do_nothing_debug_hooks): Update. (debug_nothing_tree): Update. (debug_nothing_charstar_rtx): Remove. * debug.h (union tree_node): Declare. (struct rtx_def): Remove. (gcc_debug_hooks): New hooks begin_prologue, end_prologue, begin_function. Change source_line prototype. (debug_nothing_tree): New. (debug_nothing_charstar_rtx): Delete. (dwarf2out_begin_prologue): Moved from ... * tree.h: ... here. * dwarf2out.c (dwarf2_debug_hooks): Update. (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2 debug info, call dwarf2out_source_line. (dwarf2out_souce_line): Update prototype. * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue. Change prototype, make static. (dwarfout_source_line): Update prototype. (dwarf_debug_hooks): Update. * dwarfout.h (dwarfout_begin_function): Remove. * final.c (final_start_function, final_scan_insn): Use appropriate debug hooks, update to use notice_source_line. (output_source_line): Rename notice_source_line. Don't call the source_line debug hook. * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue, make static, update prototype. (sdbout_mark_begin_function): Rename sdbout_begin_function, update prototype. (sdbout_end_prologue): New. (sdbout_source_line): Update prototype. (sdbout_debug_hooks): Update. (sdbout_symbol): Remove unused var. * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function): Delete. * varasm.c: Include debug.h. (assemble_start_function): Use begin_function debug_hook. * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function, update with prototype. (xcoffout_source_line): Update prototype. * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function, update prototype. (xcoffout_source_line): Update prototype. From-SVN: r44087
2001-07-17c-typeck.c (build_binary_op): Do not shorten unsigned right shift after sign ↵Richard Henderson4-13/+34
extension. * c-typeck.c (build_binary_op): Do not shorten unsigned right shift after sign extension. From-SVN: r44080
2001-07-17combine.c (combine_simplify_rtx): Attempt to simplify a*(b/c) as (a*b)/c for ↵Jan Hubicka3-120/+184
floats in unsafe_math mode. * combine.c (combine_simplify_rtx): Attempt to simplify a*(b/c) as (a*b)/c for floats in unsafe_math mode. * simplify-rtx.c (avoid_constatn_pool_reference): New static function. (simplify_binary_operation, simplify_unary_operation, simplify_relational_operation): Use it. * combine.c (combine_simplify_rtx): Don't do associative law on divisions; allow associative law on floats. From-SVN: r44073
2001-07-17c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and ↵H.J. Lu7-26/+55
ASM_OUTPUT_WEAK_ALIAS are defined. * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and ASM_OUTPUT_WEAK_ALIAS are defined. * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible. * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL): Moved ... * config/mips/iris5.h: ... here. (HANDLE_SYSV_PRAGMA): Defined as 1. * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS. * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak symbol. Co-Authored-By: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> From-SVN: r44072
2001-07-17c-parse.in (all_prefix_attributes): New variable.Joseph Myers6-144/+159
* c-parse.in (all_prefix_attributes): New variable. (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros. (maybe_resetattrs): New production. (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl, maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl, notype_initdcl, nested_function, notype_nested_function, component_decl, components, components_notype, component_declarator, component_notype_declarator, absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl, ivars, mydecl, myparm): Update. Avoid prefix attributes just after a comma being applied to more than one declarator. * doc/extend.texi (Attribute Syntax): Update. Remove documentation of bugs that are no longer present. testsuite: * gcc.c-torture/compile/20010714-1.c, gcc.dg/format/attr-4.c: New tests. From-SVN: r44070
2001-07-17com.c (lang_print_error_function): Argument context is unused.Toon Moene2-1/+7
2001-07-17 Toon Moene <toon@moene.indiv.nluug.nl> * com.c (lang_print_error_function): Argument context is unused. From-SVN: r44069
2001-07-17mips.h: Change TUNE_MIPS* options to use mips_tune.Eric Christopher3-64/+72
2001-07-16 Eric Christopher <echristo@redhat.com> * config/mips/mips.h: Change TUNE_MIPS* options to use mips_tune. (EXTRA_SPECS): Add cc1_cpu_spec. * config/mips/mips.md (muldf3): Fix typo. From-SVN: r44068
2001-07-17Daily bump.GCC Administrator2-2/+2
From-SVN: r44066
2001-07-16m68k.c: Include expr.h and reload.h.Richard Henderson2-10/+12
* config/m68k/m68k.c: Include expr.h and reload.h. (print_operand_address) [16 bit int]: Cast INTVAL to int for %d. [general int]: Use HOST_WIDE_INT_PRINT_DEC. From-SVN: r44065
2001-07-16cse.c (set_live_p): Take INSN argument for cc0; update callers.Daniel Berlin2-21/+30
* cse.c (set_live_p): Take INSN argument for cc0; update callers. (insn_live_p): Fix fall off end of function. (dead_libcall_p): Remove COUNTS argument; update callers. (delete_trivially_dead_insns): Remove unused variables. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r44064
2001-07-17Fix typo in my last entry.Andreas Jaeger1-1/+1
From-SVN: r44063
2001-07-17unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for x86-64 pic support.Andreas Jaeger4-37/+47
* config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for x86-64 pic support. * lcm.c (optimize_mode_switching): Avoid warning for unused variable if !NORMAL_MODE * flow.c (try_crossjump_to_edge): Remove unused variable. From-SVN: r44062
2001-07-17regenerateBruce Korb1-3/+85
From-SVN: r44061
2001-07-17update the sample outputBruce Korb5-5/+36
From-SVN: r44060
2001-07-17* g++.old-deja/g++.robertl/eb130.C: Include the correct header file.Peter Schmid2-1/+5
From-SVN: r44059
2001-07-17HPUX-es vsnprintf and Ultrix-es atexit declarationBruce Korb2-0/+42
From-SVN: r44058
2001-07-16basic-block.h (CLEANUP_PRE_SIBCALL): New constant.Jan Hubicka12-136/+278
* basic-block.h (CLEANUP_PRE_SIBCALL): New constant. * except.c (finish_eh_generation): Update call of cleanup_cfg; do rebuild_jump_labels instead of jump_optimize * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise. * toplev.c (rest_of_compulation): Likewise for -Wreturn_type. * flow.c (try_optimize_cfg): Remove unneeded code_labels. * flow.c: Include timevar.h (find_basic_block): Push/pop timevar; (cleanup_cfg): Likewise. * timevar.def (TV_CFG, TV_CLEANUP_CFG): New. * Makefile: Add dependencies on timevar.h * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes. (copy_insn_list): Avoid killing of BASIC_BLOCK notes. * rtl.h (delete_trivially_dead_insns): Add new parameter. * toplev.c (rest_of_compilation): Update calls. * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ... (delete_trivially_dead_insns): ... here; accept new argument preserve_basic_blocks; preserve basic blocks if set. * reg-stack.c (stack_regs_mentioned): Return 0 if stack_regs_mentioned_data is not initialized. (reg_to_stack): Make stack_regs_mentioned survive after the reg-stack is completted; do not call cleanup_cfg. * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder; make cleanup_cfg after bb-reorder to output to debug file. From-SVN: r44056
2001-07-16gcse.c: Update comment at top.Daniel Berlin2-67/+25
* gcse.c: Update comment at top. Update comment on mem handling. mem_last_set, mem_first_set, mem_set_in_block: gone. Declaration of reg_set_info: gone. (oprs_unchanged_p): Don't use mem_*set_* anymore. They are pointless with load_killed_in_block_p (they are *more* conservative then it, not less, and less accurate). (oprs_not_set_p): Ditto. (alloc_gcse_mem): Don't allocate mem_set_in_block (free_gcse_mem): Don't free it, either. (record_last_mem_set_info): Update comment in front, remove mem_*set_* stuff. Note the reason we don't handle stores directly here. (compute_hash_table): Update comments to reflect reality. Remove mem_*set_* references. (reset_opr_set_tables): Remove mem_*set_* references. (mark_call): Ditto. (mark_set): Ditto. Also remove double sets of bitmaps for REG's. (mark_clobber): Ditto (on both parts, we double set here too). (expr_killed_p): Remove mem_set_in_block test. (compute_transp): Remove mem_set_in_block test. From-SVN: r44055
2001-07-16regclass.c (init_reg_sets): Use only 32 bits per initializer from ↵Richard Henderson2-2/+8
int_reg_class_contents. * regclass.c (init_reg_sets): Use only 32 bits per initializer from int_reg_class_contents. From-SVN: r44054
2001-07-16hard-reg-set.h (regs_invalidated_by_call): Declare.Richard Henderson8-103/+81
* hard-reg-set.h (regs_invalidated_by_call): Declare. * regclass.c (regs_invalidated_by_call): Move from cse.c. (init_reg_sets_1): Move initialization from cse_main. * cse.c (regs_invalidated_by_call): Move to regclass.c. (cse_main): Move its initialization also. * df.c (df_insn_refs_record): Use regs_invalidated_by_call. * flow.c (propagate_one_insn): Likewise. * gcse.c (compute_hash_table): Likewise. (compute_kill_rd, compute_store_table): Likewise. * sched-deps.c (sched_analyze_1): Likewise. From-SVN: r44053
2001-07-1620001229-1.c: Include <sys/proc.h> for UAC_SIGBUS, UAC_NOPRINT definitions.Rainer Orth2-0/+6
* gcc.c-torture/execute/20001229-1.c: Include <sys/proc.h> for UAC_SIGBUS, UAC_NOPRINT definitions. From-SVN: r44051
2001-07-16gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of gen_rtx_SET.J"orn Rennecke2-2/+6
* gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of gen_rtx_SET. From-SVN: r44048
2001-07-16dominance.c (calc_dfs_tree_nonrec): Reverse order of tests in if statement ↵Steve Ellcey2-2/+7
so we don't access undefined memory. * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests in if statement so we don't access undefined memory. From-SVN: r44043
2001-07-16ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal of edge...Daniel Berlin2-8/+33
* ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal of edge, and removal of phi alternative to dump file. (ssa_ccp_substitute_constants): Add note about register now being constant, and which uses were replaced in what insns to dump file. From-SVN: r44042
2001-07-16Added two new objc testsNicola Pero1-0/+5
From-SVN: r44041
2001-07-16New testsNicola Pero2-0/+83
From-SVN: r44040
2001-07-16gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output variables of ↵Andreas Jaeger4-95/+116
type HOST_WIDEST_INT. * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output variables of type HOST_WIDEST_INT. * libgcc2.c (__bb_exit_func): Handle gcov_type as long long. (__bb_exit_func): Correct type of count_max to avoid overflow. (num_digits): Handle long long argument. * combine.c (gen_lowpart_for_combine): Remove unused variable. From-SVN: r44033
2001-07-16Daily bump.GCC Administrator2-2/+2
From-SVN: r44031
2001-07-16output.h (sdb_begin_function_line): Restore as an extern variable.Neil Booth3-1/+14
* output.h (sdb_begin_function_line): Restore as an extern variable. * sdbout.c (sdb_begin_function_line): Make extern. From-SVN: r44030
2001-07-15machmode.def (Pmode): Redefine if GENERATOR_FILE.Richard Henderson4-13/+58
* machmode.def (Pmode): Redefine if GENERATOR_FILE. * genrecog.c (maybe_both_true_mode): New. (maybe_both_true_2): Use it. (write_switch): Don't put Pmode in a switch. * rtl.c (mode arrays): Don't explicitly size them. From-SVN: r44029
2001-07-15toplev.c (rest_of_compilation): Fix register_life_up_to_date handling...Jan Hubicka4-159/+297
* toplev.c (rest_of_compilation): Fix register_life_up_to_date handling; move unconditional splitting before mode switching. * i386.md (type): Add fistp type. (i387, length_attr, scheduling definitions): Handle this type. (fix_trunc?f?i2): Revamp to use mode switching. (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns. * i386.h (fp_cw_mode): New enum (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED, MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros. From-SVN: r44027
2001-07-15Makefile.in (integrate.o): Add debug.h.Richard Kenner3-2/+14
* Makefile.in (integrate.o): Add debug.h. * integrate.c (debug.h): Add. (output_inline_function): Save, reset, and restore debug_hooks. From-SVN: r44026
2001-07-15alpha.c (alpha_emit_xfloating_compare): Use CCmode instead of COMPARE for ↵Richard Henderson2-4/+9
the EQUIV expression. * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode instead of COMPARE for the EQUIV expression. From-SVN: r44024
2001-07-15flow.c (redirect_edge_and_branch_force): Initialize global_live_at_start and ↵Richard Henderson4-2/+20
global_live_at_end. * flow.c (redirect_edge_and_branch_force): Initialize global_live_at_start and global_live_at_end. (allocate_bb_life_data): Export. * basic-block.h (allocate_bb_life_data): Declare it. * toplev.c (rest_of_compilation): Call it. From-SVN: r44023
2001-07-15alpha.c (alpha_tablejump_addr_vec): New.Richard Henderson4-331/+239
* config/alpha/alpha.c (alpha_tablejump_addr_vec): New. (alpha_tablejump_best_label): New. * config/alpha/alpha-protos.h: Declare them. * config/alpha/alpha.md: Use braced strings for code blocks. (tablejump_osf): Break out add with r29. (tablejump_osf_internal): Remove. (tablejump_osf_nt_internal): Rename from tablejump_nt_internal, use alpha_tablejump_addr_vec and alpha_tablejump_best_label. From-SVN: r44022
2001-07-15f90-intrinsic-numeric.f: Fix pasto.Toon Moene3-5/+10
2001-01-15 Toon Moene <toon@moene.indiv.nluug.nl> * g77.f-torture/execute/f90-intrinsic-numeric.f: Fix pasto. * g77.f-torture/execute/f90-intrinsic-mathematical.f: Fix pasto. From-SVN: r44021
2001-07-15f90-intrinsic-numeric.f: New test.David Billinghurst3-0/+424
2001-01-15 David Billinghurst <David.Billinghurst@riotinto.com> * g77.f-torture/execute/f90-intrinsic-numeric.f: New test. * g77.f-torture/execute/f90-intrinsic-mathematical.f: New test. From-SVN: r44020
2001-07-15loop.c (scan_loop): Add USEs inside PARALLELs into dependencies of the movable.Jan Hubicka6-38/+107
* loop.c (scan_loop): Add USEs inside PARALLELs into dependencies of the movable. * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching. * i386-protos.h (ix86_split_fp_branch): Update prototype. (ix86_fp_jump_nontrivial_p): New. * i386.md (fp_jcc_?): Update call of split_fp_branch; use ix86_fp_jump_nontrivial_p. * i386.c (ix86_fp_jump_nontrivial_p): New. (ix86_split_fp_branch): Accept code instead of rtx. (ix86_expand_compare): Expand comparison early in case doing so is resonably cheap. From-SVN: r44019
2001-07-15Assert 'endian' not 'machine' in endian specsNick Clifton2-3/+10
From-SVN: r44018
2001-07-15dbxout.c (dbxout_source_line): Make static, update prototype.Neil Booth17-243/+271
* dbxout.c (dbxout_source_line): Make static, update prototype. (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks. (dbxout_init, dbxout_finish, dbxout_source_line, dbxout_begin_block, dbxout_end_block): Update for new prototypes. * dbxout.h (dbxout_source_line): Delete. * debug.c (debug_nothing_file, debug_nothing_file_int, debug_nothing_file_charstar_rtx): New. (do_nothing_debug_hooks): Update. (debug_nothing_void, debug_nothing_charstar_rtx, dwarf2out_end_epilogue): New. (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename. * debug.h (struct rtx_def): Declare. (gcc_debug_hooks): New hooks source_line, end_epilogue and end_function. (debug_nothing_void, debug_nothing_charstar_rtx, dwarf2out_end_epilogue): New. (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename. * dwarf2out.c (dwarf2out_source_line): Make static, update prototype. (dwarf2_debug_hooks): Update. (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line, dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes. * dwarf2out.h (dwarf2out_source_line): Remove. * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function): Make static, update prototype. (dwarfout_init, dwarfout_finish, dwarfout_source_line, dwarfout_begin_block, dwarfout_end_block): Update for new prototypes. (dwarf_debug_hooks): Update. * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line, dwarfout_end_function): Remove. * final.c (profile_function): Use debug hooks for ending functions and epilogues. (output_source_line, final_end_function): Update prototype, use debug hooks. (final_start_function, final_scan_insn): Update. * output.h (sdb_begin_function_line): Remove. (final_end_function): Update prototype. * sdbout.c (sdb_begin_function_line): Make static. (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue. (sdbout_source_line): New. (sdbout_end_epilogue, sdbout_end_function): Make static, update prototypes. (sdb_debug_hooks): Update. (sdbout_init, sdbout_source_line, sdbout_begin_block, sdbout_end_block): Update for new prototypes. * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove. * toplev.c (compile_file, rest_of_compilation): Update. * tree.h (dwarf2out_end_epilogue): Move to debug.h. * xcoffout.c (xcoffout_source_line, xcoffout_begin_block, xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function): Update for prototype changes. * xcoffout.h (xcoffout_source_line, xcoffout_begin_block, xcoffout_end_block, xcoffout_end_epilogue): Update prototypes. From-SVN: r44017
2001-07-15alpha.h (TARGET_ABI_OSF): New.Richard Henderson7-151/+166
* config/alpha/alpha.h (TARGET_ABI_OSF): New. (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users. * config/alpha/alpha-protos.h: Update TARGET_ABI_* users. * config/alpha/alpha.c: Likewise. * config/alpha/alpha.md: Likewise. * config/alpha/alpha32.h: Likewise. * config/alpha/vms.h: Likewise. (OPEN_VMS): Remove. From-SVN: r44016
2001-07-15Daily bump.GCC Administrator2-2/+2
From-SVN: r44015
2001-07-14alpha.md: Use define_constants for unspec values.Richard Henderson2-51/+68
* config/alpha/alpha.md: Use define_constants for unspec values. Substitute throughout. From-SVN: r44012
2001-07-14* tree.def (EXPON_EXPR) remove. Never supported anyway.Tim Josling6-7/+13
* f/com.c (ffecom_overlap_): Remove references to EXPON_EXPR. (ffecom_tree_canonize_ref_): Likewise. * java/check-init.c (check_init): Remove references to EXPON_EXPR. From-SVN: r44011
2001-07-15* pa.md: Remove unused constraints from define_split's.John David Anglin2-44/+48
From-SVN: r44010
2001-07-14* ifcvt.c (find_cond_trap): Test for exit block.Richard Henderson2-0/+9
From-SVN: r44009
2001-07-14Re-install recently reverted patch.Jan Hubicka8-540/+94
* emit-rtl.c (try_split): Update mark_jump_label call. * flow.c (find_sub_basic_blocks): Likewise. * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump, jump_back_p): Kill. (mark_all_labels): Kill second parameter. (jump_optimize, jump_optimize_1): Kill cross_jump parameter. (rebuild_jump_labels, jump_optimize_minimal): Update call of jump_optimize_1. (jump_optimize_1): Kill crossjumping code. (mark_jump_label): Kill cross_jump parameter. * rtl.h (mark_jump_label, jump_optimize): Update prototypes. (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill. * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do splitting. * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before DFI_bpro. (dump_file_info): Likewise. (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass; reorganize passes to do reg-stack first, bb-reorder second. * invoke.texi (-d letters doc): Remove the jump2 pass. From-SVN: r44008
2001-07-14ifcvt.c (find_cond_trap): New.Richard Henderson5-82/+180
* ifcvt.c (find_cond_trap): New. (find_if_header): Call it. (merge_if_block): Relax existing jump sanity check. * jump.c (jump_optimize_1): Remove conditional trap handling. * gcc.dg/iftrap-1.c: New. From-SVN: r44006
2001-07-14Daily bump.GCC Administrator2-2/+2
From-SVN: r44004
2001-07-14pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit millicode.Alan Modra4-27/+143
* config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit millicode. (insn_refs_are_delayed): Correct comment. * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise. * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2 instead of r31. Make associated insn !TARGET_64BIT, and provide an additional 64-bit insn that clobbers r2. (divsi3): Likewise. (udivsi3): Likewise. (modsi3): Likewise. (umodsi3): Likewise. From-SVN: r44003