Commit Graph

64109 Commits

Author SHA1 Message Date
Jakub Jelinek b78b8bd83e re PR rtl-optimization/17825 (ICE in reg_bitfield_target_p)
PR rtl-optimization/17825
	* combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
	or not.

	* gcc.c-torture/compile/20041119-1.c: New test.

From-SVN: r91369
2004-11-27 10:39:00 +01:00
Paolo Carlini fcfbdb74da 2.cc: Fix typo.
2004-11-27  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/27_io/basic_istream/getline/wchar_t/2.cc: Fix typo.
	* testsuite/27_io/basic_istream/getline/wchar_t/4.cc: Likewise.

	* testsuite/22_locale/time_put/put/char/17038.cc: Use VERIFY.
	* testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: Likewise.
	* testsuite/27_io/basic_ios/exceptions/char/2.cc: Likewise.

From-SVN: r91368
2004-11-27 09:34:06 +00:00
John David Anglin de2fc4db61 target-libpath.exp (restore_ld_library_path_env_vars): Check existence of ld library path variables before unsetting.
* lib/target-libpath.exp (restore_ld_library_path_env_vars):
	Check existence of ld library path variables before unsetting.

From-SVN: r91367
2004-11-27 05:19:33 +00:00
Andreas Schwab ed986c8e6e * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
From-SVN: r91365
2004-11-27 01:53:46 +00:00
Alan Modra 3eb4e360ee 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
2004-11-27 11:36:55 +10:30
Richard Kenner 360e353587 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
2004-11-26 20:01:12 -05:00
GCC Administrator 23d5143200 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91358.2
2004-11-27 00:16:36 +00:00
GCC Administrator fabc785906 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91357.2
2004-11-27 00:16:29 +00:00
Di-an Jan 85136eb493 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
From-SVN: r91355
2004-11-26 23:40:50 +00:00
Mark Mitchell 3de878170d badalloc1.C: Robustify.
2004-11-26  Mark Mitchell  <mark@codesourcery.com>

	* g++.old-deja/g++.eh/badalloc1.C: Robustify.

From-SVN: r91352
2004-11-26 22:02:34 +00:00
Mark Mitchell 9fcc7481f8 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
2004-11-26 22:00:51 +00:00
Robert Millan 44379973a5 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
2004-11-26 21:37:24 +00:00
Paolo Carlini 75a25e3f65 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
2004-11-26 20:34:27 +00:00
Jeff Law b5c3569b07 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
2004-11-26 13:18:34 -07:00
Eric Botcazou e54c747181 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
2004-11-26 19:21:16 +00:00
Alexandre Oliva 077094ace3 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
2004-11-26 19:06:07 +00:00
Alexandre Oliva 9a228f097b 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
2004-11-26 18:53:47 +00:00
Andrew Pinski 532815a787 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
2004-11-26 10:04:45 -08:00
Kriang Lerdsuwanakij e57df6fed9 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
2004-11-26 17:15:39 +00:00
Kazu Hirata 7510740de1 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
From-SVN: r91341
2004-11-26 17:02:49 +00:00
Kazu Hirata 276318a57f * typeck.c: Fix a comment typo.
From-SVN: r91340
2004-11-26 15:45:47 +00:00
Kazu Hirata 6668f6a735 * cse.c, tree-ssa-operands.c: Fix comment typos.
From-SVN: r91339
2004-11-26 15:42:36 +00:00
James A. Morrison c5145ceba1 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
2004-11-26 13:18:14 +00:00
Richard Sandiford a0fec0003a * gcc.dg/sibcall-[34].c: Remove MIPS xfails.
From-SVN: r91337
2004-11-26 10:19:28 +00:00
Richard Sandiford 2a5137807f * g++.old-deja/g++.jason/thunk3.C: Remove mips*-*-* xfail.
From-SVN: r91336
2004-11-26 10:16:13 +00:00
Kazu Hirata 3aeee1b434 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
2004-11-26 07:07:00 +00:00
Kazu Hirata 6a66a8a7a2 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
2004-11-26 06:54:13 +00:00
Jeff Law 87c111349f 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
2004-11-25 23:42:25 -07:00
Ben Elliston 2557bee03d 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
2004-11-26 17:15:20 +11:00
Ben Elliston f50a5f61c9 * gcc.dg/pr17957.c: Pass --param, not -param.
From-SVN: r91331
2004-11-26 17:09:50 +11:00
Bryce McKinlay 504832c13e 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
2004-11-26 05:31:48 +00:00
Alan Modra e2ba236a2f fix weird changelog damage in last commit
From-SVN: r91326
2004-11-26 15:13:35 +10:30
Alan Modra 994cf17344 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
2004-11-26 15:08:11 +10:30
Bob Wilson 9dad6498e8 xtensa.h (STARTFILE_SPEC): Add crt0.
* config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
	(GCC_DRIVER_HOST_INITIALIZATION): Define.

From-SVN: r91323
2004-11-26 03:57:43 +00:00
Andrew Pinski 5f0be3d01a 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
2004-11-25 19:55:10 -08:00
Bob Wilson c0b57a5aad 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
2004-11-26 03:39:20 +00:00
Tom Tromey 7cb21c1c12 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
2004-11-26 02:27:54 +00:00
Richard Henderson e0c0490bfe 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
2004-11-25 18:21:38 -08:00
Richard Henderson 58767f002a 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
2004-11-25 18:04:11 -08:00
Kaz Kojima c9ffaa8d79 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
2004-11-26 01:56:36 +00:00
Kazu Hirata fbafc26fb7 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
2004-11-26 01:25:14 +00:00
John David Anglin 3e732ba0ee 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
2004-11-26 01:24:42 +00:00
John David Anglin f7fdebfbf6 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
2004-11-26 00:18:02 +00:00
GCC Administrator 3a4e7e8f5d Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91312.2
2004-11-26 00:16:19 +00:00
GCC Administrator 040ffc0ec0 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r91311.2
2004-11-26 00:16:13 +00:00
Andrew Pinski 03c8e7dda7 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
2004-11-25 16:01:35 -08:00
Andrew Pinski b7ca416f49 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
2004-11-25 15:10:27 -08:00
Kazu Hirata d2e398dfc8 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
2004-11-25 22:31:09 +00:00
Nathan Sidwell 9f8e747867 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
2004-11-25 21:18:55 +00:00
Andrew MacLeod e288e2f51b 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
2004-11-25 20:24:59 +00:00