aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-03-15rtl.h (subrtx_p): Renamed to rtx_referenced_p.Josef Zlomek5-32/+97
* rtl.h (subrtx_p): Renamed to rtx_referenced_p. (rtx_pair): Added new element update_label_nuses, renamed to replace_label_data. * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use replace_label_data instead of rtx_pair. * loop.c (load_mems): Likewise. * rtlanal.c (replace_label): Replace label in pool constants and in INSN_LIST (in REG_LABEL note). (subrtx_p): Renamed to rtx_referenced_p. (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of LABEL_REF with CODE_LABEL, traverse constants from pool. From-SVN: r64419
2003-03-15Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.Aldy Hernandez4-57/+418
2003-03-15 Aldy Hernandez <aldyh@redhat.com> Zack Weinberg <zack@codesourcery.com> * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi. * doc/libgcc.texi: New file. * doc/interface.texi: Delete paragraph about libgcc interface. * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi. From-SVN: r64416
2003-03-15stb.c (ffestb_R100110_): Allow the number before the X format to be optional ↵Roger Sayle5-24/+17
when not -fpedantic. * stb.c (ffestb_R100110_): Allow the number before the X format to be optional when not -fpedantic. * std.c (ffestd_R1001dump_1010_3_): Delete unused static function. (ffestd_R1001dump_): For the FFESTP_formattypeX case, call ffestd_R1001dump_1010_2_ instead of ffestd_R1001dump_1010_3_. * g77.f-torture/compile/xformat.f: New test case. From-SVN: r64415
2003-03-15eh33.C: Remove xfail for hppa*-*-*.John David Anglin3-2/+7
* g++.old-deja/g++.mike/eh33.C: Remove xfail for hppa*-*-*. * g++.old-deja/g++.mike/eh50.C: Likewise. From-SVN: r64413
2003-03-15re PR debug/9039 (ICE, anonymous union, gen_decl_die, dwarf2out.c:11974)Jason Merrill3-0/+20
PR debug/9039 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes. From-SVN: r64412
2003-03-15don't specify -g1Jason Merrill1-0/+7
From-SVN: r64411
2003-03-15re PR debug/6387 (-fpic -gdwarf-2 -g1 combination give ICE in dwarf2out)Jason Merrill2-1/+14
PR debug/6387 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested function DIEs at toplevel. (decls_for_scope): At -g1, don't descend into subblocks. From-SVN: r64410
2003-03-15Fix thinko.Gabriel Dos Reis1-1/+1
From-SVN: r64407
2003-03-15varasm.c (struct rtx_const): Change type of un.addr member to struct holding ↵Ulrich Weigand2-5/+17
an additional 'symbol' member. * varasm.c (struct rtx_const): Change type of un.addr member to struct holding an additional 'symbol' member. (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs with equal string addresses as equal. (simplify_subtraction): Adapt to struct rtx_const change. From-SVN: r64406
2003-03-15Compile-time improvement: 2/n.Gabriel Dos Reis6-217/+262
* cp-tree.h (struct cxx_binding): New datatype; (struct lang_identifier): Use it. (LOCAL_BINDING_P): Adjust definition. (INHERITED_VALUE_BINDING_P): Likewise. (BINDING_SCOPE): Likewise. (BINDING_HAS_LEVEL_P): Likewise. (BINDING_VALUE): Likewise. (BINDING_TYPE): Likewise. (IDENTIFIER_VALUE): Likewise. (struct tree_binding): Remove. (TS_CP_BINDING): Likewise. ((union lang_tree_node): Remove field "binding". (cxx_binding_clear): New macro. (binding_for_name): Adjust return type. (qualified_lookup_using_namespace): Adjust prototype. (lookup_using_namespace): Adjust prototype. (cxx_scope_find_binding_for_name): Declare. * cp-tree.def: Remove CPLUS_BINDING definition. * parse.y (parse_scoped_id): Don't type-abuse of 'id'. Allocate temporary cxx_binding on stack. Simplify. * decl.c (push_binding): Adjust local variable type. (add_binding): Likewise. (push_class_binding): Likewise. (pop_binding): Likewise. (poplevel): Likewise. (poplevel_class): Likewise. (free_bindings): Adjust type. (find_binding): Adjust return type, add a third parameter. Remove non-useful assertion now that we use static typing. (cxx_scope_find_binding_for_name): New function. (binding_for_name): Use it. Adjust local variable type. Simplify. (namespace_binding): Simplify. (set_namespace_binding): Likewise. (set_identifier_type_value_with_scope): Adjust local variable type. (lookup_tag): Don't type-abuse of local variable 'old'. (lookup_namespace_name): Likewise. Allocate binding on stack. (select_decl): Adjust prototype. (unqualified_namespace_lookup): Allocate binding on stack. Don't type-abuse of local variable 'val'. (lookup_name_real): Likewise. (maybe_inject_for_scope_var): Adjust local variable type. (cp_tree_node_structure): Remove CPLUS_BINDING case label. (namespace_binding): Adjust logic, simplify. (BINDING_LEVEL): Adjust definition. (push_class_level_binding): Adjust local variable type. (struct cxx_saved_binding): Adjust field 'binding' type. * decl2.c (ambiguous_decl): Adjust prototype. (lookup_using_namespace): Adjust local variable type. (qualified_lookup_using_namespace): Catch type error and correct ensueing logic error. (do_nonmember_using_decl): Adjust local variable type. Allocate temporary cxx_binding on stack. (do_toplevel_using_decl): Adjust local variable type. * ptree.c (cxx_print_cxx_binding): New function. (cxx_print_identifier): Use it. (cxx_print_xnode): Delete CPLUS_BINDING case label. From-SVN: r64405
2003-03-15* fix-header.c (read_scan_file): Read main file before handling -D.Neil Booth2-2/+7
From-SVN: r64404
2003-03-15* treetree.c (cpp_handle_option): Remove.Andreas Jaeger2-10/+4
From-SVN: r64403
2003-03-15c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.Roger Sayle20-28/+53
* c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace. * c-typeck.c (c_tree_expr_nonnegative_p): Likewise. * cfgbuild.c (find_many_sub_basic_blocks): Likewise. (find_sub_basic_blocks): Likewise. * cgraphunit.c (cgraph_expand_functions): Likewise. * dwarf2out.c (prune_unused_types): Likewise. * expr.c (store_field): Likewise. * genextract.c (print_path): Likewise. * haifa-sched.c (schedule_insn): Likewise. * lcm.c (compute_antinout_edge): Likewise. * loop-unroll.c (decide_peel_once_rolling): Likewise. * ra-colorize.c (ra_colorize_free_all): Likewise. * ra-debug.c (dump_igraph): Likewise. (debug_hard_reg_set): Likewise. * reg-stack.c (reg_to_stack): Likewise. * rtlanal.c (refers_to_regno_p): Likewise. * tracer.c (layout_superblocks): Likewise. * cp/tree.c (count_functions): Fix whitespace. * f/ste.c (ffeste_R810): Fix whitespace. From-SVN: r64402
2003-03-15* fix-header.c (read_scan_file): Fix thinko.Neil Booth2-1/+5
From-SVN: r64401
2003-03-15reload1.c (choose_reload_regs): Use && instead of || with ↵Glen Nakamura2-12/+17
REG_CANNOT_CHANGE_MODE_P condition. 2003-03-15 Glen Nakamura <glen@imodulo.com> * reload1.c (choose_reload_regs): Use && instead of || with REG_CANNOT_CHANGE_MODE_P condition. From-SVN: r64399
2003-03-15Makefile.in: Update.Neil Booth12-371/+121
* Makefile.in: Update. * c-common.h (cb_register_builtins): Rename c_cpp_builtins. * c-lex.c (init_c_lex): Register builtins hook is dead. * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U. (c_common_decode_option): Don't call cpp_handle_option. Handle -A, -D and -U. (handle_deferred_opts): Simplify. (finish_options): Define builtins and command line macros. * c-ppoutput.c (init_pp_output): Register builtins hook is dead. * cppinit.c: Don't include intl.h. (init_builtins): Rename cpp_init_builtins. No hook to call. (init_library): Don't need to sort options. (cpp_create_reader): Don't set pending. (cpp_destroy): Don't free pending. (struct pending_option, cl_directive_handler, struct cpp_pending, APPEND, free_chain, new_pending_directive, parse_option, opt_comp, cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option, cl_options, cpp_handle_option): Remove. * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option, cpp_finish_options): Remove. (cpp_init_builtins): New. * fix-header.c (read_scan_file): Update to handle -D. Fix handling of -I. Replace call to cpp_finish_options. cp: * Make-lang.in: Update. From-SVN: r64398
2003-03-15re PR c++/6440 (template specializations cause ICE)Kriang Lerdsuwanakij5-0/+127
PR c++/6440 * pt.c (maybe_process_partial_specialization): Handle member class template when enclosing class template is explicit specialized. (most_general_template): Stop looking when DECL is already specialized. * g++.dg/template/spec7.C: New test. * g++.dg/template/spec8.C: Likewise. From-SVN: r64395
2003-03-15Fix date in last ChangeLog entry.Andreas Jaeger1-1/+1
From-SVN: r64393
2003-03-15g77spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.Andreas Jaeger2-23/+7
* g77spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove. (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove. From-SVN: r64392
2003-03-15re PR rtl-optimization/9387 (jump threading bug)Michael Hayes2-12/+7
PR optimization/9387 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump for conditional returns. From-SVN: r64390
2003-03-14re PR rtl-optimization/6871 (const objects shouldn't be moved to .bss)Jason Merrill3-0/+12
PR optimization/6871 * varasm.c (assemble_variable): Leave constant zeroes in .rodata. From-SVN: r64387
2003-03-15Daily bump.GCC Administrator1-1/+1
From-SVN: r64385
2003-03-14c-opts.c (finish_options): New.Neil Booth3-25/+44
* c-opts.c (finish_options): New. (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros. (missing_arg): Handle OPT_include and OPT_imacros. (c_common_init, c_common_parse_file): Use finish_options. (handle_deferred_opts): Update. * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail. (cpp_finish_options): Don't handle -imacros here. (no_fil): Remove. (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros. From-SVN: r64378
2003-03-14rs6000.c (rs6000_emit_load_toc_table): Don't call rs6000_maybe_dead if ↵Jakub Jelinek2-14/+28
!fromprolog. * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call rs6000_maybe_dead if !fromprolog. From-SVN: r64376
2003-03-14/home/neil/diffs/include.logNeil Booth10-107/+137
From-SVN: r64373
2003-03-14Makefile.in (.y.c): Only enable production rule when maintaining.Loren J. Rittle2-2/+10
* Makefile.in (.y.c): Only enable production rule when maintaining. From-SVN: r64371
2003-03-14cselib.c (clear_table): Do not take argument; always clear just used slots.Jan Hubicka4-34/+36
* cselib.c (clear_table): Do not take argument; always clear just used slots. (cselib_process_insn): Update call of clear_table (cselib_init): Do not call clear_table. (cselib_finish): Clear table. * cse.c (count_reg_usage): Do not check side_effects_p. * rtlanal.c (set_noop_p): Check side_effects_p only when set looks like noop. (find_reg_equal_equiv_note): Do not use find_reg_note. From-SVN: r64369
2003-03-14re PR target/9700 ([alpha linux] va_start gets __offset wrong in some ↵Richard Henderson5-68/+125
situations) PR target/9700 * config/alpha/alpha.c (alpha_va_start): Account for current_function_pretend_args_size in the AP offset. * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line. (INITIAL_ELIMINATION_OFFSET): Move out of line. * config/alpha/alpha.c (alpha_setup_incoming_varargs): New. (alpha_initial_elimination_offset) New. * config/alpha/alpha-protos.h: Update. * gcc.c-torture/execute/va-arg-23.c: New. From-SVN: r64367
2003-03-14stmt.c (expand_start_case): Call emit_queue ().Jakub Jelinek4-0/+77
* stmt.c (expand_start_case): Call emit_queue (). * gcc.c-torture/execute/20030313-1.c: New test. From-SVN: r64366
2003-03-14* gcc.dg/inline-2.c: Adjust alpha test for external call.Richard Henderson2-1/+5
From-SVN: r64365
2003-03-14mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2 words in new abis.Chris Demetriou2-6/+14
* config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2 words in new abis. From-SVN: r64364
2003-03-14re PR rtl-optimization/8396 ([sparc] optimizer ICE)Eric Botcazou4-0/+32
PR optimization/8396 * tree-inline.c (initialize_inlined_parameters): Make sure the value of read-only constant arguments is passed with the right type. From-SVN: r64358
2003-03-14* doc/extend.texi (Function Names): Make the example compilable.Steven Bosscher2-1/+5
From-SVN: r64350
2003-03-13rs6000.c (processor_target_table): Really allow GP optional instructions on ↵David Edelsohn2-2/+7
Power4. * config/rs6000/rs6000.c (processor_target_table): Really allow GP optional instructions on Power4. From-SVN: r64348
2003-03-14calls.c (flags_from_decl_or_type): Factor and remove redundant conditional ↵Roger Sayle2-7/+15
tests. * calls.c (flags_from_decl_or_type): Factor and remove redundant conditional tests. From-SVN: r64347
2003-03-14Daily bump.GCC Administrator1-1/+1
From-SVN: r64345
2003-03-13dll-1.c: Remove thumb target.Danny Smith6-10/+48
* gcc.dg/dll-1.c: Remove thumb target. Change exp to _exp. * gcc.dg/dll-2.c: Enable for cygwin and mingw. Remove thumb target, * gcc.dg/dll-3.c: Likewise. Adjust scan-assembler to accept newer _imp__ prefix and additional newline in .drectve section. * gcc.dg/dll-4.c: Likewise. * gcc.dg/dll-5.c: New file to test -mnop-fun-dllimport switch. From-SVN: r64337
2003-03-13re PR c++/9420 (incomplete type incorrectly reported)Jason Merrill3-7/+8
PR c++/9420 * search.c (lookup_conversions): Call complete_type here. * call.c (implicit_conversion): Not here. From-SVN: r64332
2003-03-13decl2.c (do_nonmember_using_decl): Correct handling of simultaneous ↵Mark Mitchell4-0/+20
type/non-type bindings. * decl2.c (do_nonmember_using_decl): Correct handling of simultaneous type/non-type bindings. * g++.dg/parse/namespace9.C: New test. From-SVN: r64323
2003-03-13re PR c++/9336 (ICE in cp_line_of, at cp/error.c:2191)Jason Merrill1-0/+18
PR c++/9336 * decl2.c (lookup_arg_dependent): Handle error_mark_node. [[Split portion of a mixed commit.]] From-SVN: r64322.2
2003-03-13Fix typo in ChangeLogMark Mitchell1-1/+1
From-SVN: r64321
2003-03-13ggc-page.c (struct page_entry): Remove varray.h header.Mike Stump3-28/+316
* ggc-page.c (struct page_entry): Remove varray.h header. Add index_by_depth field. Remove save_in_use_p field. (struct globals): Add depth_in_use, depth_max, by_depth_in_use, by_depth_max, by_depth, and save_in_use fields. (INITIAL_PTE_COUNT): Add. (save_in_use_p_i): Add. (save_in_use_p): Add. (adjust_depth): Add. (move_ptes_to_front): Add. (push_depth): Add. (push_by_depth): Add. (prefetch): Add. (free_page): Add support for and use faster data structures. (ggc_alloc): Likewise. (init_ggc): Likewise. (ggc_recalculate_in_use_p): Likewise. (ggc_pop_context): Likewise. (clear_marks): Likewise. (ggc_pch_read): Likewise. * Makefile.in (ggc-page.o): Remove varray.h. From-SVN: r64320
2003-03-13call.c (initialize_reference): Remove bogus assertion.Mark Mitchell6-40/+33
* call.c (initialize_reference): Remove bogus assertion. * decl.c (build_ptrmemfunc_type): Revert change of 2003-03-09. * g++.dg/init/ref5.C: New test. * g++.dg/parse/ptrmem1.C: Likewise. From-SVN: r64316
2003-03-13ChangeLog: Rotated last year's entries to...Nathanael Nerode2-14448/+14453
* ChangeLog: Rotated last year's entries to... * ChangeLog.8: New. From-SVN: r64315
2003-03-13parse.y (resolve_inner_class): Error if qualifier is a primitive type.Tom Tromey2-2/+14
* parse.y (resolve_inner_class): Error if qualifier is a primitive type. From-SVN: r64314
2003-03-13fde-glibc.c, [...]: It's GCC, not GNU CC.Nathanael Nerode16-60/+71
* config/ia64/fde-glibc.c, config/ia64/freebsd.h, config/ia64/hpux.h, config/ia64/hpux_longdouble.h, config/ia64/ia64-c.c, config/ia64/ia64-modes.def, config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h, config/ia64/ia64.md, config/ia64/itanium1.md, config/ia64/itanium2.md, config/ia64/quadlib.c, config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: It's GCC, not GNU CC. From-SVN: r64313
2003-03-13output_return_instruction: Simplyify test for avoiding type 2 LDMs.Nick Clifton1-5/+1
From-SVN: r64311
2003-03-13Makefile.in (dojump.o): New target.Ansgar Esztermann4-980/+1021
2003-03-13 Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de> * Makefile.in (dojump.o): New target. * dojump.c: New file. (init_pending_stack_adjust): Moved here from expr.c. (clear_pending_stack_adjust): Likewise. (do_pending_stack_adjust): Likewise. (jumpifnot): Likewise. (jumpif): Likewise. (do_jump): Likewise. (do_jump_by_parts_greater): Likewise. (do_jump_by_parts_greater_rtx): Likewise. (do_jump_by_parts_equality): Likewise. (do_jump_by_parts_equality_rtx): Likewise. (compare_from_rtx): Likewise. (do_compare_rtx_and_jump): Likewise. (do_compare_and_jump): Likewise. * expr.c (init_pending_stack_adjust): Removed to dojump.c. (clear_pending_stack_adjust): Likewise. (do_pending_stack_adjust): Likewise. (jumpifnot): Likewise. (jumpif): Likewise. (do_jump): Likewise. (do_jump_by_parts_greater): Likewise. (do_jump_by_parts_greater_rtx): Likewise. (do_jump_by_parts_equality): Likewise. (do_jump_by_parts_equality_rtx): Likewise. (compare_from_rtx): Likewise. (do_compare_rtx_and_jump): Likewise. (do_compare_and_jump): Likewise. (placeholder_list): Made declaration extern. * expr.h (placeholder_list): Declare. From-SVN: r64309
2003-03-13rs6000.c (rs6000_dwarf_register_span): Differentiate endianness.Aldy Hernandez2-7/+14
2003-03-13 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Differentiate endianness. (s6000_override_options): Use cpu type instead of TARGET_SPE. From-SVN: r64308
2003-03-13Remove redundant writeback test in previous delta.Nick Clifton1-4/+7
From-SVN: r64307