Commit Graph

70725 Commits

Author SHA1 Message Date
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
Lawrence Lim a35f1a13b9 re PR libstdc++/23550 (char_traits requirements/1.cc test bad math)
2005-08-24  Lawrence Lim  <llim@redhat.com>
            Jakub Jelinek  <jakub@redhat.com>
	    Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/23550
	* testsuite/21_strings/char_traits/requirements/char/1.cc
	(test01): Simplify counting.
	* testsuite/21_strings/char_traits/requirements/wchar_t/1.cc
	(test02): Same.

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r103451
2005-08-24 20:29:27 +00:00
Pete Steinmetz 6f48c21a63 params.def (PARAM_MIN_SPEC_PROB): New.
2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>

        * params.def (PARAM_MIN_SPEC_PROB): New.
        * sched-rgn.c (MIN_PROBABILITY): Delete.
        (compute_trg_info): Convert to PARAM_VALUE.
        * doc/invoke.texi (param): Document min-spec-prob.

From-SVN: r103450
2005-08-24 16:28:07 -04:00
Thomas Koenig fe58e07668 re PR fortran/17758 (gfortran_abort and some others should be marked as noreturn)
2005-08-24  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/17758
	* gfortran.h (symbol_attribute):  Add noreturn to the structure.
	(gfc_intrinsic_sym):  Add noreturn to the structure.
	* intrinsic.c (make_noreturn):  New function.
	(add_subroutines):  Mark subroutines abort and exit as noreturn.
	(gfc_intrinsic_sub_interface):  Copy noreturn attribute from
	isym to the resolved symbol.
	* trans-decl.c (gfc_get_extern_function_decl): Set function
	as VOLATILE (== noreturn) if the noreturn attribute is set.

2005-08-24  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/17758
	gfortran.dg/nonreturning_statements.f90: New test.

From-SVN: r103449
2005-08-24 20:04:20 +00:00
Fariborz Jahanian 1a1e6a9d4a Define __PIC__ for darwin targets.
OKed by Mike Stump.

From-SVN: r103447
2005-08-24 18:22:12 +00:00
Paolo Bonzini 130869aa42 rs6000.md: Fix thinko in the peephole2 I added yesterday.
2005-08-24  Paolo Bonzini  <bonzini@gnu.org>

	* config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
	yesterday.

From-SVN: r103443
2005-08-24 15:46:36 +00:00
Paolo Carlini bb7d32a918 re PR libstdc++/23465 (Assignment fails on TR1 unordered containers)
2005-08-24  Paolo Carlini  <pcarlini@suse.de>
	    Chris Jefferson  <chris@bubblescope.net>

	PR libstdc++/23465
	* include/tr1/hashtable (hash_code_base::m_swap): Use
	std::swap.
	(hashtable<>::hashtable(const hashtable&)): Use copy_code;
	fix m_allocate_node call.
	* testsuite/tr1/6_containers/unordered/hashtable/23465.cc: New.

Co-Authored-By: Chris Jefferson <chris@bubblescope.net>

From-SVN: r103441
2005-08-24 15:00:19 +00:00
Nathan Sidwell 863a331486 re PR c++/22454 (ICE with operator in default argument in template class)
cp:
	PR c++/22454
	* parser.c (cp_lexer_peek_nth_token): Relax assert.
testsuite:
	PR c++/22454
	* g++.dg/parse/crash29.C: New.

From-SVN: r103438
2005-08-24 10:21:46 +00:00
Zdenek Dvorak b9a6624012 bb-reorder.c (copy_bb, [...]): Add argument to duplicate_block.
* bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
	to duplicate_block.
	* cfghooks.c (duplicate_block): Added position where to place
	new block as argument.
	* cfghooks.h (duplicate_block): Declaration changed.
	* cfglayout.c (copy_bbs): Add argument after.  Pass it to
	duplicate_block.
	* cfglayout.h (copy_bbs): Declaration changed.
	* cfgloop.h (loop_version): Declaration changed.
	* cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
	position to copy_bbs.
	(loop_version): Pass position to duplicate_loop_to_header_edge.
	Add place_after argument and position new blocks according to
	it.
	* modulo-sched.c (sms_schedule): Pass place_after argument
	to loop_version.
	* tracer.c (tail_duplicate): Pass argument to duplicate_block.
	* tree-cfg.c (split_edge_bb_loc): New function.
	(tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
	to determine position of new blocks.
	* tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
	to loop_version.
	* tree-ssa-threadupdate.c (create_block_for_threading): Pass
	argument to duplicate_block.
	* tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
	Pass position to copy_bbs.

From-SVN: r103437
2005-08-24 07:56:56 +00:00
Zdenek Dvorak 87de2376fd fold-const.c (ptr_difference_const): Use cst_and_fits_in_hwi instead of host_integerp.
* fold-const.c (ptr_difference_const): Use
	cst_and_fits_in_hwi instead of host_integerp.

From-SVN: r103436
2005-08-24 07:53:42 +00:00
Paolo Bonzini 14a07c9282 darwin.c (gen_pic_offset): New.
2005-08-24  Paolo Bonzini  <bonzini@gnu.org>

	* config/darwin.c (gen_pic_offset): New.
	(machopic_indirect_data_reference,  machopic_legitimize_pic_address):
	Use it.

From-SVN: r103434
2005-08-24 07:48:45 +00:00
Zdenek Dvorak d49195a31b re PR tree-optimization/23486 (ICE in execute_todo, at passes.c:677)
PR tree-optimization/23486
	* tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.

From-SVN: r103433
2005-08-24 07:46:24 +00:00
Phil Edwards 2eab15c974 config.gcc (*-*-vxworks*): Update tm_file, add extra_options, remove use_collect2.
2005-08-22  Phil Edwards  <phil@codesourcery.com>

	* config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
	remove use_collect2.
	(powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.

	* target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
	configuration files to override the default value.

	* config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
	EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
	* config/vx-common.h:  New file, split out from...
	* config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
	* config/vxworksae.h:  New file, for VxWorks AE.
	* config/vxworks.opt:  New file.
	* config/vxlib.c:  Update for VxWorks 6.

	* config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
	other MULTILIB_* variables appropriately.
	(LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
	* config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
	* config/rs6000/vxworks.h:  Update for VxWorks 6.
	* config/rs6000/vxworksae.h:  New file, mostly placeholder for now.

From-SVN: r103432
2005-08-24 07:13:10 +00:00
Andreas Tobler 7307936052 configure.ac (extra_ldflags_libjava): Enable -single_module only for darwin < 8.
2005-08-24  Andreas Tobler  <a.tobler@schweiz.ch>

	* configure.ac (extra_ldflags_libjava): Enable -single_module only for
	darwin < 8.
	* configure: Regenerate.

From-SVN: r103430
2005-08-24 07:54:22 +02:00
Andrew Pinski 2501b16706 re PR target/20799 (bad relocs for new/delete overrides)
2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/20799
        * config/darwin.c (machopic_select_section): Remove the hack to
        mark "::operator new" and "::operator delete" for coalescing
        even though they are not weak.

From-SVN: r103426
2005-08-23 18:50:54 -07:00
Alan Modra d82bf74753 configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
* configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
	* configure: Regenerate.

From-SVN: r103425
2005-08-24 11:08:05 +09:30
GCC Administrator d984318c95 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r103419.2
2005-08-24 00:16:15 +00:00
Kelley Cook b71ed55244 re PR libstdc++/23462 (27_io/basic_filebuf/sgetn/char/[12]-i[no].cc execution tests fail)
2005-08-23  Kelley Cook  <kcook@gcc.gnu.org>

	PR libstdc++/23462
	* testsuite/data/sgetn.txt: Revert to previous FSF address.

From-SVN: r103415
2005-08-23 23:05:38 +00:00