aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-03-17c-tree.h (struct lang_identifier): Remove error_locus field.Zack Weinberg4-30/+65
* c-tree.h (struct lang_identifier): Remove error_locus field. (IDENTIFIER_ERROR_LOCUS): Kill. (record_function_scope_shadow): New prototype. * c-typeck.c (build_external_ref): Don't complain if decl is error_mark_node. When not at file scope, bind the decl's local value to error_mark_node to suppress further warnings, instead of setting IDENTIFIER_ERROR_LOCUS. * c-decl.c (get_function_binding_level): New static function. (record_function_scope_shadow): New exported function. (c_make_fname_decl): Use get_function_binding_level. From-SVN: r64504
2003-03-17naming-1.m: Use "(parse|syntax) error".Zack Weinberg3-2/+7
* objc.dg/naming-1.m: Use "(parse|syntax) error". * objc.dg/naming-2.m: Likewise. From-SVN: r64503
2003-03-17stmt.c (tail_recursion_args): Call promote_mode to set unsignedp flag ↵Steve Ellcey2-5/+10
correctly before calling convert_move. * stmt.c (tail_recursion_args): Call promote_mode to set unsignedp flag correctly before calling convert_move. From-SVN: r64501
2003-03-17loop-unroll.c (decide_peel_completely, [...]): Set loop->has_desc.Zdenek Dvorak2-5/+27
* loop-unroll.c (decide_peel_completely, decide_unroll_constant_iterations, decide_unroll_stupid, decide_unroll_runtime_iterations, decide_peel_simple): Set loop->has_desc. From-SVN: r64500
2003-03-17Update comment for ggc_alloc - to match API change made 2000-6-9.Per Bothner1-2/+1
From-SVN: r64497
2003-03-17ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.Jan Hubicka2-1/+5
* ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize. * hashtab.h (htab_traverse_noresize): Declare. * hashtab.c (htab_traverse_noresize): Break out from ... * hashtab.c (htab_traverse): ... here. From-SVN: r64496
2003-03-17re PR c++/9639 ([New parser] Namespace std in constructor argument lists on ↵Mark Mitchell4-1/+15
illegal code causes an ICE) PR c++/9639 * parser.c (cp_parser_declarator_id): Clear parser->scope. PR c++/9639 * g++.dg/parse/crash1.C: New test. From-SVN: r64495
2003-03-17function.c (assign_parms): For a struct value address passed as first ↵Olivier Hainque2-18/+26
argument... * function.c (assign_parms): For a struct value address passed as first argument, delay the function's result RTL setup code until after the emission of parameter conversions. From-SVN: r64493
2003-03-17re PR c++/9993 (destructor not called for local object created within and ↵Jason Merrill3-3/+45
returned from infinite loop) PR c++/9993 * decl.c (finish_function): Only allow the NRVO to use variables declared at function scope. From-SVN: r64488
2003-03-17Fixed attribution of last checkin.Dave Love1-1/+2
From-SVN: r64484
2003-03-17osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__, __arch64__ to match ↵Dave Love2-0/+7
Compaq cc. * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__, __arch64__ to match Compaq cc. From-SVN: r64480
2003-03-17c-opts.c: Default TARGET_EBCDIC to 0 if not defined.Neil Booth4-24/+49
* c-opts.c: Default TARGET_EBCDIC to 0 if not defined. (c_common_init): Set EBCDIC in cpp options. * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option, not conditional compilation. * cpplib.h (struct cpp_options): New entry EBCDIC. From-SVN: r64471
2003-03-17* fix-header.c (read_scan_file): Need to malloc arguments to add_path.Neil Booth2-9/+14
From-SVN: r64470
2003-03-17function.c (thread_prologue_and_epilogue_insns): Set delete_unused argument ↵Michael Hayes2-1/+7
to 0 for redirect_jump. * function.c (thread_prologue_and_epilogue_insns): Set delete_unused argument to 0 for redirect_jump. From-SVN: r64468
2003-03-17re PR c++/8805 (compile time regression with many member variables)Mark Mitchell4-4/+445
PR c++/8805 * except.c (eh_region_u_cleanup): Add prev_try. (expand_eh_region_end_cleanup): Set it. (reachable_handlers): Use it to skip over cleanup blocks. PR c++/8805 * g++.dg/eh/cleanup1.C: New test. From-SVN: r64465
2003-03-17* Makefile.in (TAGS): Remove obsolete handling of =*.[chy].Andreas Jaeger2-1/+5
From-SVN: r64464
2003-03-17Make-lang.in (treelang.tags): Remove duplicate entry.Andreas Jaeger4-51/+41
Treelang: 2003-03-17 Andreas Jaeger <aj@suse.de> * Make-lang.in (treelang.tags): Remove duplicate entry. cp: 2003-03-17 Andreas Jaeger <aj@suse.de> * Make-lang.in (cp/TAGS): Remove. From-SVN: r64463
2003-03-17linux64.h (TARGET_64BIT): Redefine.Alan Modra2-0/+57
* config/rs6000/linux64.h (TARGET_64BIT): Redefine. (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise. (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise. (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise. From-SVN: r64462
2003-03-17Daily bump.GCC Administrator1-1/+1
From-SVN: r64460
2003-03-16simplify-rtx (simplify_binary_operation): Don't abort for SS_PLUS, US_PLUS, ↵Richard Henderson2-0/+12
SS_MINUS, US_MINUS. * simplify-rtx (simplify_binary_operation): Don't abort for SS_PLUS, US_PLUS, SS_MINUS, US_MINUS. From-SVN: r64452
2003-03-16i386.md (movstrictqi, [...]): Check optimize_size as well.Richard Henderson2-2/+7
* config/i386/i386.md (movstrictqi, movstrictqi_1): Check optimize_size as well. From-SVN: r64451
2003-03-16m68hc11.c (print_operand): Handle 'b' modifier for D register to specify the ↵Stephane Carrez2-4/+67
low part of it, aka B. * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier for D register to specify the low part of it, aka B. (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement the register if we are loading 1 or -1 to it; avoid using temp register when moving X/Y to Y/X. (m68hc11_gen_movqi): Likewise. (m68hc11_check_z_replacement): Fix last insn setting for compare case. From-SVN: r64447
2003-03-16re PR rtl-optimization/9016 (Failure to consistently constant fold ↵Mark Mitchell2-3/+17
"constant" C++ objects) PR optimization/9016 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs into the constant pool. From-SVN: r64445
2003-03-16re PR target/9164 ([Alpha] improper code generation)Falk Hueffner4-1/+24
PR target/9164 * tree.c (get_narrower): For extensions with unchanged bit number, return the unsignedness of the outer mode. * gcc.c-torture/execute/20030316-1.c: New test case. From-SVN: r64440
2003-03-16re PR c++/9629 (virtual inheritance segfault)Nathan Sidwell8-21/+104
cp: PR c++/9629 * cp-tree.h (struct language_function): Add in_base_initializer. (in_base_initializer): define it. (expand_member_init): Remove INIT param. * init.c (expand_member_init): Remove INIT param, return the member. (emit_mem_initializers): Set in_base_initializer. * class.c (build_base_path): Check in_base_initializer. * parser.c (cp_parser_mem_initializer): Set in_base_initializer. * pt.c (tsubst_initializer_list): Likewise. testsuite: PR c++/9629 * g++.dg/init/ctor2.C: New test. From-SVN: r64438
2003-03-16c-typeck.c (build_component_ref): Turn "for" into "do ..Roger Sayle3-1/+11
* c-typeck.c (build_component_ref): Turn "for" into "do .. while" to avoid "may be used uninitialized" warning on ia64-hpux. * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes. From-SVN: r64434
2003-03-16Add missing ChangeLog entry for:Andreas Jaeger1-0/+5
* configure.in: Improve check for memcheck.h. * configure: Regenerated. From-SVN: r64433
2003-03-16* doc/cppopts.texi: Remove documentation of -A-.Neil Booth2-7/+4
From-SVN: r64432
2003-03-16Fix rethinko.Gabriel Dos Reis1-1/+1
From-SVN: r64431
2003-03-16configure.in: Improve check for memcheck.h.Andreas Jaeger2-4/+4
* configure.in: Improve check for memcheck.h. * configure: Regenerated. From-SVN: r64430
2003-03-16* decl.c (binding_for_name): Fix initialization thinko.Gabriel Dos Reis2-0/+7
From-SVN: r64429
2003-03-16Daily bump.GCC Administrator1-1/+1
From-SVN: r64427
2003-03-15* doc/libgcc.texi: Remove @tie.Zack Weinberg2-1/+5
From-SVN: r64420
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