Commit Graph

70842 Commits

Author SHA1 Message Date
Andreas Jaeger 1e106b724c * gcc.target/i386/pr23575.c: Run only on 32-bit x86.
From-SVN: r103591
2005-08-29 06:46:20 +02:00
GCC Administrator 1814d7e4d3 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103588.2
2005-08-29 00:16:35 +00:00
Daniel Berlin 46c5394b31 re PR middle-end/22455 (ICE tree check: expected function_decl, have type_decl in fold_checksum_tree, at fold-const.c:10282)
2005-08-28  Daniel Berlin  <dberlin@dberlin.org>

	Fix PR middle-end/22455

	* fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
	Checksum only the parts of the tree that exist for the tree code.

From-SVN: r103586
2005-08-29 00:12:19 +00:00
Dale Johannesen ea407814d0 i386.c (nocona_cost): Increase MOVE_RATIO.
2005-08-28  Dale Johannesen  <dalej@apple.com>

        * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.

From-SVN: r103585
2005-08-28 23:28:57 +00:00
Andrew Pinski 87e71ff43b tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.

From-SVN: r103584
2005-08-28 14:08:28 -07:00
Richard Henderson 490272b474 stor-layout.c (finalize_type_size): Revert workaround from 08-26.
* stor-layout.c (finalize_type_size): Revert workaround from 08-26.
        * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
        of char_type_node.

From-SVN: r103583
2005-08-28 09:28:59 -07:00
Jakub Jelinek a6017253cb re PR ada/23593 (5 ACATS compiler SEGV c371002 c371003 c52008b cc51004 cc51b03)
PR ada/23593
	* builtins.c (get_memory_rtx): Don't strip nops
	in between COMPONENT_REFs.

From-SVN: r103578
2005-08-28 13:01:31 +02:00
Jakub Jelinek 0305ea8ce4 20050316-2.c: New test.
* gcc.c-torture/execute/20050316-2.c: New test.
	* gcc.c-torture/execute/20050316-3.c: New test.
	* gcc.dg/torture/pr16104-1.c: New test.

From-SVN: r103577
2005-08-28 12:59:39 +02:00
GCC Administrator f90ef45657 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103573.2
2005-08-28 00:16:27 +00:00
Andrew Pinski 412f898605 re PR middle-end/23463 (va-arg-22.c execution fails)
2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23463
        * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
        types.
        (gimplify_modify_expr): Check for zero sized types and gimplify the
        rhs and lhs as statements.

2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/23463
        * gcc.c-torture/execute/zero-struct-1.c: New test.

From-SVN: r103571
2005-08-27 14:37:53 -07:00
John David Anglin 147a8fb1ca re PR target/23508 (FAIL: PR218)
PR libgcj/23508
	* pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
	state for return address column of signal frames.

From-SVN: r103568
2005-08-27 18:36:46 +00:00
Francois-Xavier Coudert 10c682a0cb acinclude.m4 (LIBGFOR_CHECK_UNLINK_OPEN_FILE): Add check to see if target can unlink open files.
* acinclude.m4 (LIBGFOR_CHECK_UNLINK_OPEN_FILE): Add check to see
	if target can unlink open files.
	* configure.ac: Use this new test.
	* config.h.in: Regenerate.
	* configure: Regenerate.
	* Makefile.in: Regenerate.
	* aclocal.ac: Regenerate.
	* io/io.h: Add prototype for unpack_filename.
	* io/close.c (st_close): Delete file after closing unit if
	HAVE_UNLINK_OPEN_FILE is not defined.
	* io/unix.c (unpack_filename): Unlink scratch file after opening
	it only if HAVE_UNLINK_OPEN_FILE is defined.

From-SVN: r103566
2005-08-27 16:01:54 +00:00
David Edelsohn ec53fc93d0 re PR target/23539 (C & C++ compiler generating misaligned references regardless of compiler flags)
PR target/23539
        * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
        bytes >= 2 not bytes == 2.
        (expand_block_move): Same.

From-SVN: r103564
2005-08-27 11:44:26 -04:00
Richard Guenther f013cadc88 re PR target/23575 (ICE: output_operand: unterminated assembly dialect alternative)
2005-08-27  Richard Guenther  <rguenther@gcc.gnu.org>

	PR target/23575
	* config/i386/sse.md (sse2_movsd): Add missing closing
	braces.

	* gcc.target/i386/pr23575.c: New testcase.

From-SVN: r103559
2005-08-27 12:04:28 +00:00
Tobias Schlüter 4f8ea09e0b [multiple changes]
2005-08-27  Erik Edelmann  <erik.edelmann@iki.fi>

	* trans-array.c (gfc_trans_deferred_array): Fix comments.

2005-08-27  Erik Schnetter  <schnetter@aei.mpg.de>

	* primary.c (match_charkind_name): Fix typo in comment leading to
	function.

From-SVN: r103558
2005-08-27 13:28:51 +02:00
Paul Brook 0cd6c85a31 genrecog.c (enum decision_type): Add DT_num_insns.
2005-08-27  Paul Brook  <paul@codesourcery.com>

	* genrecog.c (enum decision_type): Add DT_num_insns.
	(struct decision_test): Add u.num_insns.
	(add_to_sequence): Add DT_num_insns test.
	(maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
	(write_cond, debug_decision_2): Ditto.
	(change_state): Assume peep2_next_insn never fails.
	Remove "afterward" argument.
	(write afterward, write_tree): Update to match.
	* recog.c (peep2_current_count): New variable.
	(peep2_next_insn): Check it.
	(peephole2_optimize): Set peep2_current_count.
	* recog.h (peep2_current_count): Declare.

From-SVN: r103553
2005-08-27 02:08:29 +00:00
GCC Administrator e0af6cb720 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103550.2
2005-08-27 00:16:15 +00:00
Josh Conner 1b0d2d1789 re PR tree-optimization/23584 (ipa-pure-const pass ignores dereferencing a volatile pointer type)
PR middle-end/23584
        * ipa-pure-const.c (check_tree): Check for volatile-ness
        when considering a dereference.

From-SVN: r103546
2005-08-26 22:42:44 +00:00
Jakub Jelinek 24b7d7c318 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
From-SVN: r103542
2005-08-27 00:05:57 +02:00
Jakub Jelinek 435bb2a125 re PR rtl-optimization/23561 (nonoverlapping_memrefs_p returns true even for overlapping memory references)
PR rtl-optimization/23561
	* builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
	a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
	at most LEN bytes long memory fits into the field.
	(expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
	expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
	expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.

	* gcc.c-torture/execute/20050826-1.c: New test.

From-SVN: r103541
2005-08-27 00:02:44 +02:00
Jakub Jelinek ff8afde0ea re PR rtl-optimization/23560 (Strength-reduction breaking unsigned COMPARE)
PR rtl-opt/23560
	* gcc.c-torture/execute/20050826-2.c: New test.

From-SVN: r103540
2005-08-26 23:59:25 +02:00
Richard Henderson 52e772ba4b re PR rtl-optimization/23560 (Strength-reduction breaking unsigned COMPARE)
PR rtl-opt/23560
	* loop.c (biased_biv_may_wrap_p): New.
	(maybe_eliminate_biv_1): Use it to suppress non-equality
	comparison transformations.  Delete disabled code.

From-SVN: r103539
2005-08-26 23:57:25 +02:00
Dale Johannesen 12d347da5c 20030711-1.c: Modify to work on Darwin.
2005-08-26  Dale Johannesen  <dalej@apple.com>

        * gcc.dg/20030711-1.c:  Modify to work on Darwin.
        * gcc.dg/20050826-1.c:  New.

From-SVN: r103538
2005-08-26 21:57:18 +00:00
Ian Lance Taylor 8f34bde689 combine.c (make_extraction): Avoid reference outside object.
2005-08-26  Ian Lance Taylor  <ian@airs.com>

        * combine.c (make_extraction): Avoid reference outside object.

From-SVN: r103537
2005-08-26 21:52:23 +00:00
Benjamin Kosnik 277d42e27f PR libstdc++/20534 (contd)
2005-08-26  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/20534 (contd)
	* src/debug.cc (__gnu_debug): Remove __fancy_abort definition.
	Remove cstdio and cstdlib includes.
	* include/debug/debug.h: Define inline here. Remove
	_GLIBCXX_DEBUG_ABORT.
	* include/debug/macros.h: Remove __fancy_abort declaration,
	_GLIBXX_DEBUG_ABORT definition.
	* config/linker-map.gnu: Remove export.

From-SVN: r103535
2005-08-26 21:10:59 +00:00
Benjamin Kosnik 327d749cf8 check_compile (UNIQUE_ID): New.
2005-08-26  Benjamin Kosnik  <bkoz@redhat.com>

	* scripts/check_compile (UNIQUE_ID): New. Use to name output files.

From-SVN: r103534
2005-08-26 20:31:48 +00:00
Mark Mitchell b207d6e26f re PR c++/19004 (ICE in uses_template_parms at cp/pt.c:4860)
PR c++/19004
	* pt.c (uses_template_parms): Handle IDENTIFIER_NODE.
	(type_dependent_expression_p): Allow BASELINKs whose associated
	functions are simply a FUNCTION_DECL.

	PR c++/19004
	* g++.dg/template/nontype13.C: New test.

From-SVN: r103531
2005-08-26 19:35:13 +00:00
Mark Mitchell b84f46516b re PR c++/23491 (new declarator with constant expression gives "error: invalid use of array with unspecified bounds")
PR c++/23491
	* cp-tree.h (build_vec_init): Adjust prototype.
	* init.c (perform_member_init): Adjust call to build_vec_init.
	(build_aggr_init): Likewise.
	(build_new_1): Do not call build_default_init for array types.
	(build_vec_init): Add explicit_default_init_p parameter.  Perform
	default initialization of vector elements when set.
	* typeck.c (build_modify_expr): Adjust call to build_vec_init.

	PR c++/23491
	* g++.dg/init/new14.C: New test.
	* g++.dg/expr/anew1.C: Do not XFAIL.
	* g++.dg/expr/anew2.C: Likewise.
	* g++.dg/expr/anew3.C: Likewise.

From-SVN: r103530
2005-08-26 19:32:31 +00:00
J"orn Rennecke d6cde48033 stor-layout.c (finalize_type_size): Restore behaviour for non-aggregate types to the status quo ante of the patch...
* stor-layout.c (finalize_type_size): Restore behaviour for
	non-aggregate types to the status quo ante of the patch for
	pr 23467.  Document why it matters.

From-SVN: r103527
2005-08-26 18:17:05 +01:00
Jakub Jelinek 39627fed89 re PR c/23506 (Bad array access in DEF_GCC_BUILTIN)
PR c/23506
	* c-common.c (c_common_nodes_and_builtins): Increase builtin_types
	array by one element, initialize the BT_LAST element with NULL.

From-SVN: r103526
2005-08-26 18:26:50 +02:00
Paolo Carlini 5a2ab2c36d re PR libstdc++/23081 (Finish the implementation of tr1::array)
2005-08-26  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/23081
	* include/tr1/array: Implement members back(), front(), data(),
	and the tuple interface; tidy.
	* testsuite/tr1/6_containers/array/element_access/back.cc: New.
	* testsuite/tr1/6_containers/array/element_access/data.cc: Likewise.
	* testsuite/tr1/6_containers/array/element_access/front.cc: Likewise.
	* testsuite/tr1/6_containers/array/tuple_interface/get.cc: Likewise.
	* testsuite/tr1/6_containers/array/tuple_interface/tuple_element.cc:
	Likewise.
	* testsuite/tr1/6_containers/array/tuple_interface/tuple_size.cc:
	Likewise.

From-SVN: r103525
2005-08-26 15:52:53 +00:00
Andrew Pinski d7ae6cfb81 re PR middle-end/22439 (ICE with char VLA and __SIZE_TYPE__ argument (so no cast))
2005-08-26  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/22439
        * gcc.dg/vla-3.c: New test.

From-SVN: r103524
2005-08-26 08:14:13 -07:00
David Edelsohn 297abd0d40 rs6000.md (eq<mode>_compare): Only enable when optimizing for size.
* config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
	optimizing for size.
	(plus_eqsi): Same.
	(compare_plus_eqsi): Same.
	(plus_eqsi_compare): Same.
	(neg_eq0<mode>): Same.
	(neg_eq<mode>): Same.

	* config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
	PROCESSOR_POWER4.

From-SVN: r103522
2005-08-26 10:24:20 -04:00
Nick Clifton 2ec6cd51b6 v850.c (ep_memory_operand): Return FALSE if TARGET_EP is not defined.
* config/v850/v850.c (ep_memory_operand): Return FALSE if TARGET_EP is not
  defined.
* config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if TARGET_EP is
  enabled.
  (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
* config/v850/v850.md (save_all_interrupt): Only use the EP register if
  TARGET_EP is defined.
  (restore_all_interrupt): Likewise.
* config/v850/lib1funcs.asm: Update functions so that the EP register is only
  used if __EP__ is defined.

From-SVN: r103520
2005-08-26 13:45:42 +00:00
David Ung e296c00c32 mips.c (mips_expand_prologue): Handle case when generating for MIPS16 and the outgoing argument area is more...
* config/mips/mips.c (mips_expand_prologue): Handle case when
generating for MIPS16 and the outgoing argument area is more than
SMALL_OPERAND. Use the frame pointer as temporary to generate the
add instruction.

From-SVN: r103519
2005-08-26 13:15:14 +00:00
Paul Woegerer 55d61dbacc crx.md: Make doloop_end pattern usage controllable via mloop-nesting=<max-nesting>...
* config/crx/crx.md: Make doloop_end pattern usage controllable
	via mloop-nesting=<max-nesting> command line switch. Make sure
	the combiner cannot use doloop_end_<mode> in an illegal way.
	* config/crx/crx.c: Use regs up to r6 for argument passing.
	Refine crx_address_cost (non cst4 displacements are expensive).
	* config/crx/crx.opt: Add switch for mloop-nesting=.

From-SVN: r103518
2005-08-26 08:20:55 +00:00
Adrian Straetling 742090fc6f s390.md: ("movstr", "*movstr"): Add patterns.
2005-08-26  Adrian Straetling  <straetling@de.ibm.com>

	* config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
	(UNSPEC_MVST): New constant.

From-SVN: r103516
2005-08-26 06:49:57 +00:00
Andreas Krebbel db21e1d01a predicates.md ("shift_count_operand", [...]): Reject operands containing eliminable registers.
2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
	Reject operands containing eliminable registers.
	* testsuite/gcc.dg/20050825-1.c: New testcase.

From-SVN: r103515
2005-08-26 06:45:09 +00:00
GCC Administrator 4e0d0e3367 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103505.2
2005-08-26 00:16:26 +00:00
Erik Edelmann 9e35b3869c re PR fortran/20363 (interface body has incorrect scope)
2005-08-25  Erik Edelmann  <eedelman@acclab.helsinki.fi>
fortran/
	PR fortran/20363
	* symbol.c (find_special): Remove.
	(build_sym, add_init_expr, attr_decl1): Remove calls to
	find_special in favor of calls to gfc_get_symbol.
testsuite/
	PR fortran/20363
	* gfortran.dg/named_interface.f90: New.

From-SVN: r103486
2005-08-25 13:57:36 +02:00
Maciej W. Rozycki a5e668d53d * gcc.c-torture/execute/frame-address.c: New test.
From-SVN: r103485
2005-08-25 11:30:19 +00:00
Paolo Carlini 40f1508996 hashtable: Use __throw_exception_again, not naked throw, in the catch clauses.
2005-08-25  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/hashtable: Use __throw_exception_again,
	not naked throw, in the catch clauses.

From-SVN: r103483
2005-08-25 09:34:49 +00:00
Nathan Sidwell 5ebbc0ee56 re PR c++/20817 (ICE for tree check in build_offset_type)
cp:
	PR c++/20817
	* typeck.c (build_x_unary_op): Make sure OFFSET_REF is not for a
	->*.
testsuite:
	PR c++/20817
	* g++.old-deja/g++.benjamin/13908.C: Robustify expected error.

From-SVN: r103481
2005-08-25 09:06:45 +00:00
Alan Modra 9ebbe8cc17 * gcc.dg/vect/vect-52.c: Increase b[] and c[] size by one.
From-SVN: r103480
2005-08-25 18:16:32 +09:30
Alan Modra 99f4c49e8a 20020103-1.c: Scan for LC[0-9], not LC.
* gcc.dg/20020103-1.c: Scan for LC[0-9], not LC.
	* gcc.dg/altivec-22.c: Rename from..
	* gcc.dg/altivec-nomfcr.c: ..this.

From-SVN: r103479
2005-08-25 18:12:01 +09:30
Paolo Bonzini 1b8299747e re PR tree-optimization/23546 (ICE in for_each_index, at tree-ssa-loop-im.c:202)
2005-08-24  Paolo Bonzini  <bonzini@gnu.org>

	PR tree-optimization/23546
	* gcc.dg/tree-ssa/pr23546.c: New test.

From-SVN: r103473
2005-08-25 07:02:58 +00:00
Paolo Bonzini 0621d71a5c regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
	    Jan Hubicka  <jh@suse.cz>

	* regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.

Co-Authored-By: Jan Hubicka <jh@suse.cz>

From-SVN: r103472
2005-08-25 06:44:09 +00:00
Paolo Bonzini e288982373 re PR tree-optimization/23546 (ICE in for_each_index, at tree-ssa-loop-im.c:202)
2005-08-24  Paolo Bonzini  <bonzini@gnu.org>

	PR tree-optimization/23546
	* tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
	and REAL_CST nodes.

From-SVN: r103471
2005-08-25 06:40:14 +00:00
Alan Modra 2d9c5743d6 re PR target/23404 (gij trashes args of functions with more than 8 fp args)
PR target/23404
	* src/powerpc/ffi.c (ffi_prep_args_SYSV): Correct placement of stack
	homed fp args.
	(ffi_status ffi_prep_cif_machdep): Correct stack sizing for same.

From-SVN: r103462
2005-08-25 10:24:54 +09:30
GCC Administrator 91432782c4 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103458.2
2005-08-25 00:16:16 +00:00