aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2001-07-19class.c (type_requires_array_cookie): New function.Mark Mitchell6-43/+119
* class.c (type_requires_array_cookie): New function. (check_methods): Don't try to figure out whether the type needs a cookie here. (check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here. * cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove. (TYPE_VEC_NEW_USES_COOKIE): Reimplement. * pt.c (instantiate_class_template): Don't set TYPE_VEC_DELETE_TAKES_SIZE. * NEWS: Document ABI changes from GCC 3.0. From-SVN: r44142
2001-07-19dwarf2out.c (dwarf2out_abstract_function): Don't emit in-class declaration ↵Jeff Sturm2-4/+12
at -g1. * dwarf2out.c (dwarf2out_abstract_function): Don't emit in-class declaration at -g1. Fixes c++/2814. From-SVN: r44141
2001-07-18Fix markup for reload_in/out.Richard Henderson1-2/+2
From-SVN: r44137
2001-07-18md.texi (reload_in/out): Document restrictions in predicates and constraints ↵Richard Henderson2-0/+17
for these patterns. * doc/md.texi (reload_in/out): Document restrictions in predicates and constraints for these patterns. Document empty string matching ALL_REGS. From-SVN: r44134
2001-07-18* defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.Rainer Orth2-1/+7
From-SVN: r44131
2001-07-18NEWS (Changes in GCC 3.0): Fix typo.Xavier Delacour2-1/+6
* NEWS (Changes in GCC 3.0): Fix typo. Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> From-SVN: r44128
2001-07-18* cse.c: Undo my previous patch.Jan Hubicka2-27/+9
From-SVN: r44126
2001-07-18For PR java/2812:Tom Tromey4-7/+17
* lex.h: Use HAVE_ICONV, not HAVE_ICONV_H. * lex.c (java_new_lexer): Use ICONV_CONST. (java_read_char): Likewise. * Make-lang.in (jc1$(exeext)): Link against LIBICONV. (jv-scan$(exeext)): Likewise. From-SVN: r44120
2001-07-18For PR java/2812:Tom Tromey5-304/+527
* configure: Rebuilt. * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV instead. * aclocal.m4 (AM_ICONV): New macro from Bruno Haible. From-SVN: r44119
2001-07-18flow.c (redirect_edge_and_branch): Bail out on complex edges.Richard Henderson3-59/+33
* flow.c (redirect_edge_and_branch): Bail out on complex edges. (try_optimize_cfg): Do not remove tail recursive labels before sibcall. * jump.c (mark_jump_label): Do not forward branches. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r44118
2001-07-18cse.c (delete_trivially_dead_insns): Delete the libcall block when return ↵Jan Hubicka2-5/+32
value is unused. * cse.c (delete_trivially_dead_insns): Delete the libcall block when return value is unused. From-SVN: r44112
2001-07-18* gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.Jan Hubicka2-0/+5
From-SVN: r44111
2001-07-18vtgc1.C: Revert patch from 2001-04-26 since vtable-gc is supported again.Andreas Jaeger2-14/+5
* g++.dg/vtgc1.C: Revert patch from 2001-04-26 since vtable-gc is supported again. From-SVN: r44110
2001-07-18Fixed bug in gthr-posix.h - buggy backend thread functions for objective-cNicola Pero1-0/+10
From-SVN: r44105
2001-07-18Fixed backend function of objc_mutex_trylock which was brokenNicola Pero1-12/+21
From-SVN: r44104
2001-07-18Daily bump.GCC Administrator2-2/+2
From-SVN: r44100
2001-07-18* gcc.dg/iftrap-1.c: Fix target line.Andreas Jaeger2-7/+11
From-SVN: r44099
2001-07-18* integrate.c (output_inline_function): Correct type of debug_hooks.Andreas Jaeger2-2/+6
From-SVN: r44098
2001-07-18combine.c (combine_simplify_rtx): DIV can be treated associatively for ↵Toon Moene2-4/+8
floats if... 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl> * combine.c (combine_simplify_rtx): DIV can be treated associatively for floats if unsafe math optimisations are enabled. From-SVN: r44097
2001-07-17* reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.Richard Henderson2-5/+16
From-SVN: r44096
2001-07-17calls.c (prepare_call_address): New parameter SIBCALLP.Richard Henderson4-12/+21
* calls.c (prepare_call_address): New parameter SIBCALLP. If true, don't force the function address into a register. (expand_call, emit_library_call_value_1): Update callers. * builtins.c (expand_builtin_apply): Likewise. * expr.h (prepare_call_address): Update decl. From-SVN: r44095
2001-07-17config.gcc: For *-*-chorusos triplet, get chorus.h file from config directory.Chandra Chavva1-13939/+10
* config.gcc: For *-*-chorusos triplet, get chorus.h file from config directory. * config/i386/chorus.h: Move up. * config/sparc/chorus.h: Likewise. * config/rs6000/chorus.h: Likewise. * config/chorus.h: Moved here From-SVN: r44094
2001-07-17config.gcc: For *-*-chorusos triplet, get chorus.h file from config directory.Chandra Chavva5-95/+13943
* config.gcc: For *-*-chorusos triplet, get chorus.h file from config directory. * config/i386/chorus.h: Move up. * config/sparc/chorus.h: Likewise. * config/rs6000/chorus.h: Likewise. * config/chorus.h: Moved here. From-SVN: r44092
2001-07-17configure.in (assembler eh_frame optimization): Handle big endian.Andreas Schwab3-11/+29
* configure.in (assembler eh_frame optimization): Handle big endian. * configure: Regenerated. From-SVN: r44091
2001-07-17expr.c (epxand_expr): Convert divisions into multiplications by reciprocals ↵Jan Hubicka2-0/+15
if -ffast-math. * expr.c (epxand_expr): Convert divisions into multiplications by reciprocals if -ffast-math. From-SVN: r44090
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