Alan Modra [Sat, 27 Nov 2004 01:06:55 +0000 (01:06 +0000)]
re PR middle-end/12769 (-mlongcall doesn't convert all calls to long calls for builtin functions)
PR target/12769
* config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
from rs6000_default_long_calls for libcalls.
From-SVN: r91362
Richard Kenner [Sat, 27 Nov 2004 01:01:12 +0000 (01:01 +0000)]
expmed.c (extract_bit_field): When extracting from non-integer mode...
* expmed.c (extract_bit_field): When extracting from non-integer mode,
force a SUBREG into a register because we may be taking a further
SUBREG of it.
From-SVN: r91361
GCC Administrator [Sat, 27 Nov 2004 00:16:36 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r91358.2
GCC Administrator [Sat, 27 Nov 2004 00:16:29 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r91357.2
Di-an Jan [Fri, 26 Nov 2004 23:40:50 +0000 (23:40 +0000)]
* doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
From-SVN: r91355
Mark Mitchell [Fri, 26 Nov 2004 22:02:34 +0000 (22:02 +0000)]
badalloc1.C: Robustify.
2004-11-26 Mark Mitchell <mark@codesourcery.com>
* g++.old-deja/g++.eh/badalloc1.C: Robustify.
From-SVN: r91352
Mark Mitchell [Fri, 26 Nov 2004 22:00:51 +0000 (22:00 +0000)]
inclhack.def (gnu_types): Do not use on Solaris 2.1x.
2004-11-26 Mark Mitchell <mark@codesourcery.com>
* inclhack.def (gnu_types): Do not use on Solaris 2.1x.
(stdio_va_list): Likewise.
(stdio_stdarg.h): Likewise.
(solaris_stdio_tag): Add bypass.
* fixincl.x: Regenerated.
From-SVN: r91351
Robert Millan [Fri, 26 Nov 2004 21:37:24 +0000 (21:37 +0000)]
Changes for k*bsd-gnu support.
* config/i386/linux.h: Define REG_NAME to allow overriding of
register names in sc structure.
* config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
of sc->reg.
* config.gcc: Detect x86_64-k*bsd-gnu systems.
From-SVN: r91350
Paolo Carlini [Fri, 26 Nov 2004 20:34:27 +0000 (20:34 +0000)]
DR 243.
2004-11-26 Paolo Carlini <pcarlini@suse.de>
DR 243. get and getline when sentry reports failure [WP]
* include/bits/istream.tcc (istream<>::get, istream<>::getline):
Store a null character only if the array has a non-zero size.
* src/istream.cc (istream<char>::getline, istream<wchar_t>::getline):
Likewise.
* testsuite/27_io/basic_istream/get/char/3.cc: New.
* testsuite/27_io/basic_istream/getline/char/6.cc: New.
* testsuite/27_io/basic_istream/getline/wchar_t/6.cc: New.
* docs/html/ext/howto.html: Add an entry for DR 243.
* testsuite/27_io/basic_istream/getline/wchar_t/1.cc: New.
* testsuite/27_io/basic_istream/getline/wchar_t/2.cc: New.
* testsuite/27_io/basic_istream/getline/wchar_t/3.cc: New.
* testsuite/27_io/basic_istream/getline/wchar_t/4.cc: New.
* testsuite/27_io/basic_istream/getline/wchar_t/5.cc: New.
From-SVN: r91348
Jeff Law [Fri, 26 Nov 2004 20:18:34 +0000 (13:18 -0700)]
tree-ssa.c (verify_flow_sensitive_alias_info): Don't retrieve annotations or pointer info before it's necessary.
* tree-ssa.c (verify_flow_sensitive_alias_info): Don't
retrieve annotations or pointer info before it's necessary.
Reorder tests for early continue of the loop. Manually CSE
SSA_NAME_VAR.
From-SVN: r91347
Eric Botcazou [Fri, 26 Nov 2004 19:21:16 +0000 (20:21 +0100)]
target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
* target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
* target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
(TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
* dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
to a fixed reg if the source is the Return Address register.
Implement new Rule 15.
* doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
* config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
sparc_dwarf_handle_frame_unspec.
(gen_save_register_window): New function.
(emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
(emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
(expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
(sparc_asm_function_prologue): Do not emit call frame debugging info.
(emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
(sparc_expand_epilogue): Likewise.
(sparc_dwarf_handle_frame_unspec): New function.
* config/sparc/sparc.md (save_register_window): Remove.
(save_register_windowdi): Rewrite modelled on the callframe debug info.
(save_register_windowsi): Likewise.
From-SVN: r91346
Alexandre Oliva [Fri, 26 Nov 2004 19:06:07 +0000 (19:06 +0000)]
frv-protos.h: Guard ifcvt functions declarations with BB_HEAD, not BLOCK_HEAD.
* config/frv/frv-protos.h: Guard ifcvt functions declarations with
BB_HEAD, not BLOCK_HEAD.
From-SVN: r91345
Alexandre Oliva [Fri, 26 Nov 2004 18:53:47 +0000 (18:53 +0000)]
frv.c (frv_ifcvt_modify_insn): Don't leave alone scratch insns that set a register live at the join point.
* config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
scratch insns that set a register live at the join point.
From-SVN: r91344
Andrew Pinski [Fri, 26 Nov 2004 18:04:45 +0000 (18:04 +0000)]
re PR java/18305 (Class initialization optimization is not done when compiled from .class)
2004-11-26 Andrew Pinski <pinskia@physics.uc.edu>
PR java/18305
* decl.c (end_java_method): Call
attach_init_test_initialization_flags on all the init_decls.
* parse.y (attach_init_test_initialization_flags): Move to ...
* expr.c (attach_init_test_initialization_flags): here and
support BIND_EXPR also.
* java-tree.h (attach_init_test_initialization_flags): Prototype.
* jcf-parse.c (parse_class_file): Don't disable class init
optimization.
From-SVN: r91343
Kriang Lerdsuwanakij [Fri, 26 Nov 2004 17:15:39 +0000 (17:15 +0000)]
Friend class name lookup 4/n
Friend class name lookup 4/n
* class.c (pushclass): Don't call cxx_remember_type_decls.
* cp-tree.h (clear_anon_tags): Remove declaration.
* decl.c (grokdeclarator): Don't call lookup_tag_reverse.
* name-lookup.c (binding_entry_free, binding_table_free): Comment
out functions.
(binding_table_find_anon_type, binding_table_reverse_maybe_remap,
binding_table_remove_anonymous_types, cxx_remember_type_decls,
bt_print_entry, clear_anon_tags, follow_tag_typedef, lookup_tag,
lookup_tag_reverse): Remove
(begin_scope, leave_scope, kept_level_p, print_binding_level):
Don't use type_decls field in cp_binding_level.
(maybe_process_template_type_declaration, pushtag): Set
CLASSTYPE_NESTED_UTDS directly.
* name-lookup.h (binding_table_remove_anonymous_types,
cxx_remember_type_decls, lookup_tag, lookup_tag_reverse): Remove
declaration.
(cp_binding_level): Remove type_decls field.
From-SVN: r91342
Kazu Hirata [Fri, 26 Nov 2004 17:02:49 +0000 (17:02 +0000)]
* tree-cfg.c (tree_split_edge): Speed up by using find_edge.
From-SVN: r91341
Kazu Hirata [Fri, 26 Nov 2004 15:45:47 +0000 (15:45 +0000)]
* typeck.c: Fix a comment typo.
From-SVN: r91340
Kazu Hirata [Fri, 26 Nov 2004 15:42:36 +0000 (15:42 +0000)]
* cse.c, tree-ssa-operands.c: Fix comment typos.
From-SVN: r91339
James A. Morrison [Fri, 26 Nov 2004 13:18:14 +0000 (13:18 +0000)]
re PR target/18510 (GCC should have instrinsics for SPARC VIS instructions)
2004-11-26 James A. Morrison <phython@gcc.gnu.org>
PR target/18510
* doc/extend.texi (SPARC VIS Built-in Functions): New section.
From-SVN: r91338
Richard Sandiford [Fri, 26 Nov 2004 10:19:28 +0000 (10:19 +0000)]
* gcc.dg/sibcall-[34].c: Remove MIPS xfails.
From-SVN: r91337
Richard Sandiford [Fri, 26 Nov 2004 10:16:13 +0000 (10:16 +0000)]
* g++.old-deja/g++.jason/thunk3.C: Remove mips*-*-* xfail.
From-SVN: r91336
Kazu Hirata [Fri, 26 Nov 2004 07:07:00 +0000 (07:07 +0000)]
bitmap.c (bitmap_find_bit): Speed up by traversing from head->first if that seems profitable.
* bitmap.c (bitmap_find_bit): Speed up by traversing from
head->first if that seems profitable.
From-SVN: r91335
Kazu Hirata [Fri, 26 Nov 2004 06:54:13 +0000 (06:54 +0000)]
cfgrtl.c (try_redirect_by_replacing_jump): Speed up the check that tests if all edges go to the same destination.
* cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
check that tests if all edges go to the same destination.
From-SVN: r91334
Jeff Law [Fri, 26 Nov 2004 06:42:25 +0000 (23:42 -0700)]
timevar.def (TV_TREE_LOOP_INIT, [...]): New timevars.
* timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
* tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
(pass_loop_done): Use TV_TREE_LOOP_FINI.
From-SVN: r91333
Ben Elliston [Fri, 26 Nov 2004 06:15:20 +0000 (06:15 +0000)]
isysroot-2.c: Move target selector from dg-options to dg-do directive.
* gcc.dg/cpp/isysroot-2.c: Move target selector from dg-options to
dg-do directive.
From-SVN: r91332
Ben Elliston [Fri, 26 Nov 2004 06:09:50 +0000 (06:09 +0000)]
* gcc.dg/pr17957.c: Pass --param, not -param.
From-SVN: r91331
Bryce McKinlay [Fri, 26 Nov 2004 05:31:48 +0000 (05:31 +0000)]
Fix "PACKAGE_NAME redefined" errors.
2004-11-26 Bryce McKinlay <mckinlay@redhat.com>
Fix "PACKAGE_NAME redefined" errors.
* configure.ac (AC_CONFIG_HEADERS): Build both include/config.h
and include/gc_config.h.
* configure: Regenerated.
* include/gc_config.h.in: No longer auto-generated. Define only the
macros needed by libjava.
* include/config.h.in: Generated by autoheader.
* include/gc.h: Include config.h, not gc_config.h.
From-SVN: r91330
Alan Modra [Fri, 26 Nov 2004 04:43:35 +0000 (15:13 +1030)]
fix weird changelog damage in last commit
From-SVN: r91326
Alan Modra [Fri, 26 Nov 2004 04:38:11 +0000 (15:08 +1030)]
re PR rtl-optimization/16356 (Failure to use count register (branch on count register))
PR rtl-optimization/16356
* config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
separate output register and one less jump. Enable for powerpc64.
(floatdisf2): Adjust for above.
From-SVN: r91324
Bob Wilson [Fri, 26 Nov 2004 03:57:43 +0000 (03:57 +0000)]
xtensa.h (STARTFILE_SPEC): Add crt0.
* config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
(GCC_DRIVER_HOST_INITIALIZATION): Define.
From-SVN: r91323
Andrew Pinski [Fri, 26 Nov 2004 03:55:10 +0000 (03:55 +0000)]
re PR middle-end/17957 (vector type node used after garbage-collected)
2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/17957
* testsuite/gcc.dg/pr17957.c: New test.
2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/17957
* tree-complex.c (vector_inner_type): New variable moved from
build_word_mode_vector_type.
(vector_last_type): Likewise.
(vector_last_nunits): Likewise.
(build_word_mode_vector_type): Use the new variables.
* Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
(GTFILES): Add tree-complex.c.
(gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
From-SVN: r91322
Bob Wilson [Fri, 26 Nov 2004 03:39:20 +0000 (03:39 +0000)]
xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __XTENSA_WINDOWED_ABI__.
* config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
__XTENSA_WINDOWED_ABI__.
From-SVN: r91321
Tom Tromey [Fri, 26 Nov 2004 02:27:54 +0000 (02:27 +0000)]
natDebug.cc (getField): Don't qualify name.
* gnu/gcj/util/natDebug.cc (getField): Don't qualify name.
* java/lang/Class.h (_Jv_Linker): Declare.
(Class): Fix names of friends.
(_Jv_getInterfaceMethod): Declare.
From-SVN: r91320
Richard Henderson [Fri, 26 Nov 2004 02:21:38 +0000 (18:21 -0800)]
dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument.
* dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
args_size adjustments for calls even with cfa as stack pointer.
Search calls for stack adjustments after the insn is issued.
(dwarf2out_frame_debug): Add after_p argument; pass it on.
* dwarf2out.h (dwarf2out_frame_debug): Update to match.
* final.c (final_start_function, final_scan_insn): Likewise.
From-SVN: r91319
Richard Henderson [Fri, 26 Nov 2004 02:04:11 +0000 (18:04 -0800)]
re PR c++/6764 (Throwing exception causes crash with '-O2 -fomit-frame-pointer')
PR c++/6764
* reload1.c (set_initial_eh_label_offset): New.
(set_initial_label_offsets): Use it.
From-SVN: r91318
Kaz Kojima [Fri, 26 Nov 2004 01:56:36 +0000 (01:56 +0000)]
sh.c (sh_output_mi_thunk): Initialize bitmap obstacks before calling life_analysis and release them after.
* config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
before calling life_analysis and release them after.
From-SVN: r91317
Kazu Hirata [Fri, 26 Nov 2004 01:25:14 +0000 (01:25 +0000)]
tree-ssa-forwprop.c (substitute_single_use_vars): Remove duplicate code.
* tree-ssa-forwprop.c (substitute_single_use_vars): Remove
duplicate code.
From-SVN: r91316
John David Anglin [Fri, 26 Nov 2004 01:24:42 +0000 (01:24 +0000)]
configure.in (hppa*-*-linux*): Don't add libgcj to noconfigdirs.
* configure.in (hppa*-*-linux*): Don't add libgcj to noconfigdirs.
(hppa*64*-*-*): Delete incorrect comment.
* configure: Rebuilt.
From-SVN: r91315
John David Anglin [Fri, 26 Nov 2004 00:18:02 +0000 (00:18 +0000)]
libjava.exp (libjava_arguments): Add new global variable libjava_ld_library_path.
* testsuite/lib/libjava.exp (libjava_arguments): Add new global
variable libjava_ld_library_path.
(gcj_invoke, libjava_invoke): Use it to set ld_library_path.
From-SVN: r91314
GCC Administrator [Fri, 26 Nov 2004 00:16:19 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r91312.2
GCC Administrator [Fri, 26 Nov 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r91311.2
Andrew Pinski [Fri, 26 Nov 2004 00:01:35 +0000 (00:01 +0000)]
bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not BITMAP_OBSTACK_ALLOC.
2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
* bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
BITMAP_OBSTACK_ALLOC.
(BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
From-SVN: r91309
Andrew Pinski [Thu, 25 Nov 2004 23:10:27 +0000 (23:10 +0000)]
parts of PR rtl-opt/18463, rtl-opt/17647
2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
parts of PR rtl-opt/18463, rtl-opt/17647
* cse.c (canon_for_address): New function.
(find_best_addr): Call canon_for_address before getting the
address's cost when checking if we should take that address.
From-SVN: r91308
Kazu Hirata [Thu, 25 Nov 2004 22:31:09 +0000 (22:31 +0000)]
tree-phinodes.c (add_phi_arg): Take "tree" instead of "tree *" as the first argument.
* tree-phinodes.c (add_phi_arg): Take "tree" instead of
"tree *" as the first argument.
* tree-flow.h: Update the prototype of add_phi_arg.
* lambda-code.c, tree-cfg.c, tree-into-ssa.c,
tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
tree-vectorizer.c: Update all call sites of add_phi_arg.
From-SVN: r91307
Nathan Sidwell [Thu, 25 Nov 2004 21:18:55 +0000 (21:18 +0000)]
bitmap.c (bitmap_malloc_alloc, [...]): Remove.
* bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
* bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
(BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
(BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
From-SVN: r91306
Andrew MacLeod [Thu, 25 Nov 2004 20:24:59 +0000 (20:24 +0000)]
re PR tree-optimization/18587 (build_v_may_defs and build_vuses can be improved when adding)
2004-11-25 Andrew Macleod <amacleod@redhat.com>
PR tree-optimization/18587
* tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
call clobbered caches as invalid.
* tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
indicating whether the call clobbered operand cache is valid.
(ssa_ro_call_cache_valid): New. Flag indicating whether the pure/const
call operand cache is valid.
(clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New.
cached list of operands for cached call virtual operands.
(clobbered_aliased_loads, clobbered_aliased_stores,
ro_call_aliased_load): New. flags caching whether alias bits are to be
set in call stmt's. */
(fini_ssa_operands): Remove call operand caches if present.
(get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands):
Pass stmt annotation to add_stmt_operand.
(get_call_expr_operands): Add call clobbered variables first.
(add_stmt_operand): Take stmt annotation rather than stmt as a param.
(add_call_clobber_ops, add_call_read_ops): Use the call operand cache
if it is valid, otherise fill the cache.
* tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
* tree-flow.h (struct var_ann_d): Add in_vuse_list and in_v_may_def_list
bits.
* tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the in_list bits
for the v_may_def elements and empty the operand build array.
(finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant VUSES
by checking the in_v_may_def_list bit.
(append_v_may_def, append_vuse): Use the in_list bit rather than
scanning the array for duplicates.
From-SVN: r91305
Bryce McKinlay [Thu, 25 Nov 2004 19:20:17 +0000 (19:20 +0000)]
ResourceBundle.java (BundleKey): Don't implement Cloneable.
2004-11-25 Bryce McKinlay <mckinlay@redhat.com>
* java/util/ResourceBundle.java (BundleKey): Don't implement
Cloneable.
(BundleKey.clone): Removed.
(getBundle): Copy BundleKey using constructor, not clone().
From-SVN: r91304
Ulrich Weigand [Thu, 25 Nov 2004 17:30:25 +0000 (17:30 +0000)]
s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF displacements are not short.
* config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
displacements are not short.
From-SVN: r91303
Ulrich Weigand [Thu, 25 Nov 2004 17:28:10 +0000 (17:28 +0000)]
s390.c (legitimize_pic_address): Use s390_load_address to load addresses.
* config/s390/s390.c (legitimize_pic_address): Use s390_load_address
to load addresses.
From-SVN: r91302
Mark Mitchell [Thu, 25 Nov 2004 17:11:37 +0000 (17:11 +0000)]
re PR c++/18001 (Badly formatted error message (quotation problem))
PR c++/18001
* c-common.h (lvalue_use): Move here from c-ctypeck.c.
(lvalue_or_else): Declare.
* c-common.c (lvalue_or_else): Move here from c-typeck.c.
* c-typeck.c (lvalue_use): Remove.
(lvalue_or_else): Remove.
PR c++/18556
* toplev.c (check_global_declarations): Set DECL_IGNORED_P on
unemitted variables with static storage duration.
PR c++/18445
* class.c (instantiate_type): Treat NON_DEPENDENT_EXPRs with
unknown_type as non matching. Tidy up.
* pt.c (build_non_dependent_expr): Do not build a
NON_DEPENDENT_EXPR for a VAR_DECL.
PR c++/18001
* cp-tree.h (lvalue_or_else): Remove declaration.
* tree.c (lvalue_or_else): Remove.
* typeck.c (build_unary_op): Adjust call to lvalue_or_else.
(build_modify_expr): Likewise.
PR c++/18625
* decl.c (duplicate_decls): Return error_mark_node on error, as
specified.
PR c++/18466
* decl.c (grokvardecl): Keep track of whether or not a there was
explicit qualification.
* name-lookup.c (set_decl_namespace): Complain about explicit
qualification of a name within its own namespace.
PR c++/18545
* typeck.c (check_return_expr): Robustify.
PR c++/18445
* g++.dg/template/crash28.C: Likewise.
PR c++/18001
* g++.dg/expr/unary2.C: Adjust lvalue messages.
* g++.dg/ext/lvaddr.C: Likewise.
* g++.dg/opt/pr7503-3.C: Likewise.
PR c++/18466
* g++.dg/parse/qualified3.C: New test.
* g++.old-deja/g++.other/friend7.C: Remove bogus qualification.
PR c++/18545
* g++.dg/expr/return1.C: New test.
From-SVN: r91301
Kriang Lerdsuwanakij [Thu, 25 Nov 2004 17:05:38 +0000 (17:05 +0000)]
Friend class name lookup 3/n, PR c++/3332
Friend class name lookup 3/n, PR c++/3332
* name-lookup.c (push_inner_scope, pop_inner_scope): New functions.
(lookup_type_scope): Don't deal with name from user declaration
specially.
* name-lookup.h (push_inner_scope, pop_inner_scope): Add declarations.
* parser.c (cp_parser_class_specifier): Use push_inner_scope and
pop_inner_scope.
* g++.dg/lookup/friend3.C: New test.
* g++.dg/lookup/friend4.C: Likewise.
* g++.dg/lookup/friend5.C: Likewise.
From-SVN: r91300
Kriang Lerdsuwanakij [Thu, 25 Nov 2004 16:55:34 +0000 (16:55 +0000)]
Friend class name lookup 2/n, PR c++/14513, c++/15410
Friend class name lookup 2/n, PR c++/14513, c++/15410
* name-lookup.c (lookup_name_real): Simplify.
(lookup_type_scope): Add SCOPE parameter. Handle friend class
lookup.
* name-lookup.h (tag_scope): New enum type.
(lookup_type_scope): Adjust declaration.
* decl.c (lookup_and_check_tag, xref_tag, xref_tag_from_type):
Change bool parameter GLOBALIZED to TAG_SCOPE parameter SCOPE.
(start_enum): Likewise. Add assertion test that NAME is
IDENTIFIER_NODE. Use anonymous name for dummy ENUMERAL_TYPE in
case of error.
* cp-tree.h (xref_tag, xref_tag_from_type): Adjust declarations.
* parser.c (cp_parser_elaborated_type_specifier,
cp_parser_class_head): Adjust call to xref_tag.
* pt.c (lookup_template_class, instantiate_class_template):
Likewise.
* rtti.c (init_rtti_processing, build_dynamic_cast_1,
tinfo_base_init, emit_support_tinfos): Likewise.
* g++.dg/lookup/friend2.C: New test.
* g++.dg/template/friend31.C: Likewise.
From-SVN: r91299
Arnaud Charlet [Thu, 25 Nov 2004 16:17:13 +0000 (17:17 +0100)]
Resync.
From-SVN: r91298
Arnaud Charlet [Thu, 25 Nov 2004 16:14:01 +0000 (17:14 +0100)]
g-socthi-mingw.ads, [...]: Remove C_Read and C_Write from internal implementation unit GNAT.Sockets.Thin...
* g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
internal implementation unit GNAT.Sockets.Thin,
as their usage for sockets is non-portable (using the read and write
functions from the system runtime library is fine on UNIX but won't
work under Windows).
* mingw32.h: Update copyright notice.
From-SVN: r91297
Arnaud Charlet [Thu, 25 Nov 2004 16:08:51 +0000 (16:08 +0000)]
ada-tree.h: Minor reformatting of previous change to avoid lines longer than 79 characters.
* ada-tree.h: Minor reformatting of previous change to avoid lines
longer than 79 characters.
From-SVN: r91296
Benjamin Kosnik [Thu, 25 Nov 2004 16:07:47 +0000 (16:07 +0000)]
ChangeLog: Remove duplicate lines.
2004-11-24 Benjamin Kosnik <bkoz@redhat.com>
* ChangeLog: Remove duplicate lines.
From-SVN: r91295
Kelley Cook [Thu, 25 Nov 2004 13:43:43 +0000 (13:43 +0000)]
libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Revert previous change.
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Revert previous change.
* boehm-gc/configure: Regenerate.
* libffi/configure: Regenerate.
* libgfortran/configure: Regenerate.
* libjava/configure: Regenerate.
* libobjc/configure: Regenerate.
* libstdc++-v3/configure: Regenerate.
* zlib/configure: Regenerate.
From-SVN: r91293
Kelley Cook [Thu, 25 Nov 2004 13:35:35 +0000 (13:35 +0000)]
Makefile.am: Revert previous.
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.am: Revert previous.
* acinclude.m4: Restore.
* aclocal.m4, configure, Makefile.in: Regenerate.
* testsuite/Makefile.in: Likewise.
From-SVN: r91292
Gerald Pfeifer [Thu, 25 Nov 2004 13:31:47 +0000 (13:31 +0000)]
tree-cfg.c (tree_verify_flow_info): Do not terminate error() message with \n.
* tree-cfg.c (tree_verify_flow_info): Do not terminate error()
message with \n.
From-SVN: r91291
Olivier Hainque [Thu, 25 Nov 2004 13:11:09 +0000 (13:11 +0000)]
tb-gcc.c: GCC infrastructure based implementation of __gnat_backtrace.
* tb-gcc.c: GCC infrastructure based implementation of
__gnat_backtrace.
From-SVN: r91290
Arnaud Charlet [Thu, 25 Nov 2004 13:07:56 +0000 (14:07 +0100)]
Complete previous check-in: add Style_Check_Xtra_Parens.
From-SVN: r91289
Michael Koch [Thu, 25 Nov 2004 12:54:38 +0000 (12:54 +0000)]
Makefile.am: Added most of javax.print again.
2004-11-25 Michael Koch <konqueror@gmx.de>
* Makefile.am: Added most of javax.print again.
* Makefile.in: Regenerated.
From-SVN: r91288
Nathan Sidwell [Thu, 25 Nov 2004 12:43:39 +0000 (12:43 +0000)]
altivec.md (VIshort): New mode macro.
* config/rs6000/altivec.md (VIshort): New mode macro.
(altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
with ...
(altivec_vaddu<VI_char>s): ... this.
(altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
with ...
(altivec_vadds<VI_char>s): ... this.
(altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
with ...
(altivec_vsubu<VI_char>s): ... this.
(altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
with ...
(altivec_vsubs<VI_char>s): ... this.
(altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
with ...
(altivec_vavgu<VI_char>): ... this.
(altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
with ...
(altivec_vavgs<VI_char>): ... this.
(altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
(altivec_vmsumu<VI_char>m): ... this.
(altivec_vmsummbm, altivec_vmsummhm): Replace
with ...
(altivec_vmsumm<VI_char>m): ... this.
(altivec_vandc): Remove.
(*andc<mode>3): Renamed to ...
(andc<mode>3): ... here. Swap operand 1 and 2 numbering.
(altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
with ...
(altivec_vrl<VI_char>): ... this.
(altivec_vslb, altivec_vslh, altivec_vslw): Replace
with ...
(altivec_vsl<VI_char>): ... this.
(altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
with ...
(altivec_vsr<VI_char>): ... this.
(altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
with ...
(altivec_vsra<VI_char>): ... this.
(altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
(altivec_vsum4s<VI_char>s): ... this.
(altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
with ...
(altivec_vperm_<mode>): ... this.
(altivec_vsel_4sf): Rename to ...
(altivec_vsel_v4sf): ... here.
(altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
with ...
(altivec_vsel_<mode>): ... this.
(altivec_vsldoi_4si, altivec_vsldoi_8hi,
altivec_vsldoi_16qi): Rename to ...
(altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
altivec_vsldoi_v16qi): ... here.
(altivec_vsldoi_4sf): Rename to ...
(altivec_vsldoi_v4sf): ... here.
(altivec_predicate_v4si, altivec_predicate_v8hi,
altivec_predicate_v16qi): Replace with ...
(altivec_predicate_<mode>): ... this.
(altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
with ...
(altivec_lve<VI_char>x): ... this.
(altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
with ...
(altivec_stve<VI_char>x): ... this.
(absv16qi2, absv8hi2, absv4si2): Replace
with ...
(abs<mode>2): ... this.
(altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
with ...
(altivec_abss_<mode>): ... this.
(vec_realign_load_v16qi, vec_realign_load_v8hi,
vec_realign_load_v4si): Replace with ...
(vec_realign_load_<mode>): ... this.
* config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
insn names.
(rs6000_expand_ternop_builtin): Likewise.
From-SVN: r91287
Michael Koch [Thu, 25 Nov 2004 12:29:22 +0000 (12:29 +0000)]
Makefile.am: Added most of javax.print again.
2004-11-25 Michael Koch <konqueror@gmx.de>
* Makefile.am: Added most of javax.print again.
* Makefile.in: Regenerated.
From-SVN: r91286
Andrew Haley [Thu, 25 Nov 2004 11:54:53 +0000 (11:54 +0000)]
Add missing file from gcj-abi-2-dev-branch merge
From-SVN: r91285
Andrew Haley [Thu, 25 Nov 2004 11:50:45 +0000 (11:50 +0000)]
Add missing file from gcj-abi-2-dev-branch merge.
From-SVN: r91284
Andrew Haley [Thu, 25 Nov 2004 11:44:46 +0000 (11:44 +0000)]
gcc.c (process_command): Don't supply -v to linker.
2004-11-25 Andrew Haley <aph@redhat.com>
* gcc.c (process_command): Don't supply -v to linker.
From-SVN: r91283
Joseph Myers [Thu, 25 Nov 2004 11:13:38 +0000 (11:13 +0000)]
darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs instead of `%s' in diagnostic.
* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
instead of `%s' in diagnostic.
cp:
* g++spec.c, lex.c: Avoid ` as left quote in diagnostics.
fortran:
* f95-lang.c, gfortranspec.c, trans-decl.c: Avoid ` as left quote
in diagnostics.
java:
* gjavah.c, jcf-dump.c, jv-scan.c, jvspec.c: Avoid ` as left quote
in diagnostics.
From-SVN: r91282
Nathan Sidwell [Thu, 25 Nov 2004 10:31:38 +0000 (10:31 +0000)]
basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
* basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
(FREE_REG_SET): Adjust.
* bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
* bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
(BITMAP_ALLOC): ... here.
(BITMAP_OBSTACK_FREE): Rename to ...
(BITMAP_FREE): Don't check for NULL bitmap here.
* tree-ssa-pre.c (value_insert_into_set_bitmap,
bitmap_set_new): Use new names.
From-SVN: r91281
Nathan Sidwell [Thu, 25 Nov 2004 10:28:01 +0000 (10:28 +0000)]
bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
* bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
* df.c (df_free): Likewise.
* ra-build.c (ra_build_free, ra_build_free_all): Likewise.
* tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
From-SVN: r91280
Nathan Sidwell [Thu, 25 Nov 2004 09:30:04 +0000 (09:30 +0000)]
basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
* basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
(ALLOC_REG_SET): ... here.
(FREE_REG_SET): Adjust.
(XMALLOC_REG_SET, XFREE_REG_SET): Remove.
* bb-reorder.c (fix_crossing_conditional_branches): Adjust.
* cfglayout.c (cfg_layout_duplicate_bb): Adjust.
* cfgrtl.c (rtl_split_block, rtl_split_edge,
safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
* flow.c (update_life_info, calculate_global_regs_live,
allocate_bb_life_data, init_propagate_block_info): Adjust.
* global.c (build_insn_chain): Adjust.
* ifcvt.c (dead_or_predicable): Adjust.
* loop-iv.c (simplify_using_initial_values): Adjust.
* recog.c (peephole2_optimize): Adjust.
* sched-deps.c (init_deps_global): Adjust.
From-SVN: r91279
Richard Henderson [Thu, 25 Nov 2004 08:00:33 +0000 (00:00 -0800)]
verify-glue.c (vfy_init_name, [...]): Use ANSI declaration form.
* verify-glue.c (vfy_init_name, vfy_clinit_name, vfy_object_type,
vfy_string_type, vfy_throwable_type): Use ANSI declaration form.
From-SVN: r91278
Tom Tromey [Thu, 25 Nov 2004 07:03:55 +0000 (07:03 +0000)]
verify.c (defer_merging): Don't use C++-style comment.
* verify.c (defer_merging): Don't use C++-style comment.
* verify.h (java_opcode): Added java_opcode_end.
* class.c (build_class_ref): Remove C++ comment and old FIXME.
From-SVN: r91277
Tom Tromey [Thu, 25 Nov 2004 05:14:25 +0000 (05:14 +0000)]
verify-impl.c (vfy_push_type): Removed bogus "return".
* verify-impl.c (vfy_push_type): Removed bogus "return".
(initialize_stack): Use vfy_alloc and vfy_free.
(verify_instructions_0): Likewise.
From-SVN: r91276
Ralf Corsepius [Thu, 25 Nov 2004 04:49:30 +0000 (05:49 +0100)]
config.gcc (avr-*-rtems*): Fix typo.
2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
* config.gcc (avr-*-rtems*): Fix typo.
From-SVN: r91274
J"orn Rennecke [Thu, 25 Nov 2004 04:29:31 +0000 (04:29 +0000)]
sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
* sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
From-SVN: r91273
John David Anglin [Thu, 25 Nov 2004 04:27:13 +0000 (04:27 +0000)]
* lib/target-libpath.exp (orig_ld_library_path_saved): Add missing set.
From-SVN: r91272
Jeff Law [Thu, 25 Nov 2004 03:54:07 +0000 (20:54 -0700)]
tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce the number of queries to random elements in the ai->written_vars bitmap.
* tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
the number of queries to random elements in the ai->written_vars
bitmap.
From-SVN: r91271
Tom Tromey [Thu, 25 Nov 2004 03:47:08 +0000 (03:47 +0000)]
* Merged gcj-abi-2-dev-branch to trunk.
(Actual changes too large to list in the commit message;
see ChangeLog.)
From-SVN: r91270
Roger Sayle [Thu, 25 Nov 2004 02:05:21 +0000 (02:05 +0000)]
i386.c (override_options): Disable x87 fancy math intrinsics if -mfpmath= doesn't include 387 (default on...
* config/i386/i386.c (override_options): Disable x87 fancy math
intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
From-SVN: r91267
Roger Sayle [Thu, 25 Nov 2004 01:41:20 +0000 (01:41 +0000)]
configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a system header conflict on AIX 5.2.
* configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
system header conflict on AIX 5.2.
* configure: Regenerate.
From-SVN: r91266
John David Anglin [Thu, 25 Nov 2004 00:40:19 +0000 (00:40 +0000)]
* ChangeLog: Remove duplication.
From-SVN: r91265
Kazu Hirata [Thu, 25 Nov 2004 00:34:35 +0000 (00:34 +0000)]
tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge with e->dest_idx.
* tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
with e->dest_idx.
From-SVN: r91264
GCC Administrator [Thu, 25 Nov 2004 00:16:28 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r91262.2
GCC Administrator [Thu, 25 Nov 2004 00:16:20 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r91261.2
Kazu Hirata [Thu, 25 Nov 2004 00:14:21 +0000 (00:14 +0000)]
tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx instead of calling phi_arg_from_edge.
* tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
instead of calling phi_arg_from_edge.
From-SVN: r91259
Ben Elliston [Wed, 24 Nov 2004 23:37:19 +0000 (23:37 +0000)]
i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
* config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
* config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
* config/i386/i386-protos.h (i386_dwarf_output_addr_const):
Likewise.
From-SVN: r91255
Mark Mitchell [Wed, 24 Nov 2004 23:18:56 +0000 (23:18 +0000)]
re PR c++/17473 (typedef redefinition in struct is accepted)
PR c++/17473
* name-lookup.c (supplement_binding): Do not allow typedefs to be
redefined in class scope.
PR c++/18285
* parser.c (cp_parser_set_decl_type_spec): Do not try to allow
redefinitions of builtin types other that "bool" or "wchar_t".
PR c++/17473
* g++.dg/tc1/dr56.C: Remove.
* g++.dg/template/typedef1.C: Add dg-error markers.
* g++.old-deja/g++.other/typedef7.C: Likewise.
PR c++/18285
* g++.dg/parse/typedef7.C: New test.
From-SVN: r91254
Kelley Cook [Wed, 24 Nov 2004 22:13:19 +0000 (22:13 +0000)]
Makefile.am: Define ACLOCAL_AMFLAGS.
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.am: Define ACLOCAL_AMFLAGS.
* acinclude.m4: Remove.
* aclocal.m4, configure, Makefile.in: Regenerate.
* testsuite/Makefile.in: Likewise.
From-SVN: r91209
R. Kelley Cook [Wed, 24 Nov 2004 22:07:04 +0000 (22:07 +0000)]
Undo mistaken commit
From-SVN: r91201
Kelley Cook [Wed, 24 Nov 2004 22:04:38 +0000 (22:04 +0000)]
libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Import linux-gnu case from CVS libtool to always pass_all.
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Import linux-gnu case
from CVS libtool to always pass_all.
* boehm-gc/configure: Regenerate.
* libffi/configure: Regenerate.
* libgfortran/configure: Regenerate.
* libjava/configure: Regenerate.
* libobjc/configure: Regenerate.
* libstdc++-v3/configure: Regenerate.
* zlib/configure: Regenerate.
From-SVN: r91200
Kelley Cook [Wed, 24 Nov 2004 21:53:28 +0000 (21:53 +0000)]
aclocal.m4: Regenerate.
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* aclocal.m4: Regenerate.
From-SVN: r91199
Kelley Cook [Wed, 24 Nov 2004 21:50:47 +0000 (21:50 +0000)]
aclocal.m4, [...]: Regenerate.
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* aclocal.m4, config.h.in: Regenerate.
From-SVN: r91198
Kelley Cook [Wed, 24 Nov 2004 21:12:26 +0000 (21:12 +0000)]
Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
* include/Makefile.in: Likewise.
* libmath/Makefile.in: Likewise.
* libsupc++/Makefile.in: Likewise.
* po/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
From-SVN: r91197
Kelley Cook [Wed, 24 Nov 2004 21:04:28 +0000 (21:04 +0000)]
Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
From-SVN: r91196
Kelley Cook [Wed, 24 Nov 2004 21:01:02 +0000 (21:01 +0000)]
Makefile.in: Regenrate with Automake 1.9.3.
2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.in: Regenrate with Automake 1.9.3.
* aclocal.m4: Likewise.
* configure: Regenerate.
From-SVN: r91195
Richard Kenner [Wed, 24 Nov 2004 20:43:44 +0000 (15:43 -0500)]
Fix indentation on line 3063.
From-SVN: r91194
Richard Kenner [Wed, 24 Nov 2004 20:21:29 +0000 (20:21 +0000)]
* tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
From-SVN: r91193
Richard Kenner [Wed, 24 Nov 2004 20:19:36 +0000 (20:19 +0000)]
tree-inline.c (copy_body_r): Explicitly copy a constant if the type will be remapped.
* tree-inline.c (copy_body_r): Explicitly copy a constant if the
type will be remapped.
From-SVN: r91192
Mark Mitchell [Wed, 24 Nov 2004 20:10:46 +0000 (20:10 +0000)]
re PR c++/18586 (ICE on invalid template member declaration)
PR c++/18586
* g++.dg/template/crash27.C: New test.
From-SVN: r91191