Commit Graph

111783 Commits

Author SHA1 Message Date
Georg-Johann Lay
6deb519753 avr.md: (umulqihi3, mulqihi3): Write as one pattern.
* config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
	(umulqi3_highpart, smulqi3_highpart): Ditto.
	(*maddqihi4.const, *umaddqihi4.uconst): Ditto.
	(*msubqihi4.const, *umsubqihi4.uconst): Ditto.
	(*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.

From-SVN: r178913
2011-09-16 18:28:32 +00:00
Georg-Johann Lay
1b65da7dfd re PR target/50358 (AVR: Implement [u]maddqihi4 [u]msubqihi4 patterns on the enhanced core)
PR target/50358
	* config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
	(*maddqi4, *maddqi4.const): New insns.
	(*msubqi4, *msubqi4.const): New insns.
	* config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
	PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
	HImode by 1 in the case of multiplying with a CONST_INT.
	Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.

From-SVN: r178912
2011-09-16 18:27:10 +00:00
Paolo Carlini
71743a68ec less_or_equal.cc: New.
2011-09-16  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/23_containers/array/comparison_operators/
	less_or_equal.cc: New.
	* testsuite/23_containers/array/comparison_operators/
	greater_or_equal.cc: Likewise.
	* testsuite/23_containers/array/comparison_operators/less.cc: Likewise.
	* testsuite/23_containers/array/comparison_operators/equal.cc: Likewise.
	* testsuite/23_containers/array/comparison_operators/not_equal.cc:
	Likewise.
	* testsuite/23_containers/array/comparison_operators/greater.cc:
	Likewise.
	* testsuite/23_containers/array/iterators/end_is_one_past.cc: Likewise.
	* testsuite/23_containers/array/capacity/empty.cc: Likewise.
	* testsuite/23_containers/array/capacity/max_size.cc: Likewise.
	* testsuite/23_containers/array/capacity/size.cc: Likewise.
	* testsuite/23_containers/array/tuple_interface/tuple_element.cc:
	Likewise.
	* testsuite/23_containers/array/tuple_interface/tuple_size.cc:
	Likewise.
	* testsuite/23_containers/array/element_access/at_out_of_range.cc:
	Likewise.
	* testsuite/23_containers/array/element_access/back.cc: Likewise.
	* testsuite/23_containers/array/element_access/front.cc: Likewise.
	* testsuite/23_containers/array/element_access/data.cc: Likewise.
	* testsuite/23_containers/array/cons/aggregate_initialization.cc:
	Likewise.
	* testsuite/23_containers/array/requirements/zero_sized_arrays.cc:
	Likewise.
	* testsuite/23_containers/array/requirements/contiguous.cc: Likewise.
	* testsuite/23_containers/array/requirements/member_swap.cc: Likewise.
	* testsuite/23_containers/array/specialized_algorithms/swap.cc:
	Likewise.
	* testsuite/23_containers/array/constexpr_get.cc: Move...
	* testsuite/23_containers/array/tuple_interface/constexpr_get.cc:
	... here.
	* testsuite/23_containers/array/requirements/get.cc: Move...
	* testsuite/23_containers/array/tuple_interface/get: ... here.
	* testsuite/23_containers/array/at_neg.cc: Move...
	* testsuite/23_containers/array/element_access: ... here.
	* testsuite/23_containers/array/requirements/constexpr_functions.cc:
	Move...
	* testsuite/23_containers/array/capacity: ... here.
	* testsuite/23_containers/array/requirements/
	constexpr_element_access.cc: Move...
	* testsuite/23_containers/array/element_access: ... here.

	* testsuite/20_util/duration/cons/1_neg.cc: Avoid -Wall warnings.
	* testsuite/20_util/tuple/creation_functions/constexpr.cc: Likewise.
	* testsuite/20_util/pair/make_pair/constexpr.cc: Likewise.
	* testsuite/20_util/time_point/nonmember/constexpr.cc: Likewise.
	* testsuite/23_containers/bitset/operations/constexpr.cc: Likewise.

	* testsuite/20_util/duration/cons/1_neg.cc: Discard bogus warning.
	* testsuite/20_util/forward/1_neg.cc: Likewise.

From-SVN: r178911
2011-09-16 16:28:31 +00:00
Ian Lance Taylor
adb0401dac Update Go library to r60.
From-SVN: r178910
2011-09-16 15:47:21 +00:00
Jan Hubicka
5548ca3540 re PR lto/50430 (Constructors of static external vars are throwed away leading to missed optimizations (and ipa-cp ICE).)
PR lto/50430
	* gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
	error_mark_node in the DECL_INITIAL of vtable.

From-SVN: r178908
2011-09-16 14:40:06 +00:00
Uros Bizjak
8549d9e16c * gcc.target/i386/avx-round-vec.c: Declare round.
From-SVN: r178907
2011-09-16 14:20:54 +02:00
Terry Guo
a7ff220a46 foldconst-3.c: Don't use short enums.
* gcc.dg/tree-ssa/foldconst-3.c: Don't use short enums.

From-SVN: r178906
2011-09-16 08:55:41 +00:00
Ian Lance Taylor
b9f04a8461 Fix defer when not calling recover in function with named results.
From-SVN: r178905
2011-09-16 05:47:20 +00:00
Paolo Carlini
fae3f4598a tuple (make_tuple, [...]): Declare constexpr.
2011-09-15  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/tuple (make_tuple, forward_as_tuple): Declare constexpr.
	(_Tuple_impl<>::_Tuple_impl(_Tuple_impl<>&&)): Likewise.
	* testsuite/20_util/tuple/creation_functions/constexpr.cc: Enable
	make_tuple test.
	* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-warning
	line number.

From-SVN: r178904
2011-09-16 00:41:33 +00:00
GCC Administrator
867e710a8d Daily bump.
From-SVN: r178902
2011-09-16 00:19:05 +00:00
Diego Novillo
c875f5966e Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from @SYSROOT_CFLAGS_FOR_TARGET@.
* Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
	@SYSROOT_CFLAGS_FOR_TARGET@.
	* configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from
	build-sysroot.
	* configure: Regenerate.
	(site.exp): Add definition of TEST_ALWAYS_FLAGS.
	Remove setting of GCC_UNDER_TEST.

testsuite/ChangeLog

	* lib/g++.exp (g++_init): Add $TEST_ALWAYS_FLAGS to
	ALWAYS_CXXFLAGS, if defined.
	* lib/gfortran.exp (gfortran_init): Add $TEST_ALWAYS_FLAGS to
	ALWAYS_GFORTRANFLAGS, if defined.
	* lib/go.exp (go_target_compile): Add $TEST_ALWAYS_FLAGS to
	ALWAYS_GOCFLAGS, if defined.
	* lib/obj-c++.exp (obj-c++_init): Add $TEST_ALWAYS_FLAGS to
	ALWAYS_OBJCXXFLAGS, if defined.
	* lib/gcc.exp (gcc_target_compile): Add $TEST_ALWAYS_FLAGS to
	additional_flags, if defined.
	* lib/gnat.exp (gnat_target_compile): Likewise.
	* lib/objc.exp (objc_target_compile): Likewise.
	* lib/target-supports-dg.exp (dg-add-options): Handle
	TEST_ALWAYS_FLAGS.

From-SVN: r178897
2011-09-15 17:00:03 -04:00
Tom de Vries
54f80b7edf re PR testsuite/50322 ([avr]: fail: gcc.dg/tree-ssa/ivopts-lt.c)
2011-09-15  Tom de Vries  <tom@codesourcery.com>

	PR testsuite/50322
	* gcc.dg/tree-ssa/ivopts-lt.c: require stdint_types. include stdint.h.
	Use uintptr_t in f1.  Undo avr xfails.

From-SVN: r178895
2011-09-15 20:44:30 +00:00
Uros Bizjak
167aa8cd3f i386.c (output_fp_compare): Return %v prefixed instruction mnemonics for TARGET_AVX.
* config/i386/i386.c (output_fp_compare): Return %v prefixed
	instruction mnemonics for TARGET_AVX.

	* config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
	"type" attribute calculation.
	(*movdf_internal): Ditto.
	(*movsf_internal): Ditto.

From-SVN: r178891
2011-09-15 21:11:45 +02:00
Janus Weil
f2ce74d157 re PR fortran/50401 (SIGSEGV in resolve_transfer)
2011-09-15  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/50401
	* resolve.c (resolve_transfer): Check if component 'ref' is defined.

	PR fortran/50403
	* symbol.c (gfc_use_derived): Check if argument 'sym' is defined.


2011-09-15  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/50401
	PR fortran/50403
	* gfortran.dg/function_types_3.f90: New.

From-SVN: r178889
2011-09-15 19:48:27 +02:00
James Greenhalgh
5d248b41e3 arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.

From-SVN: r178884
2011-09-15 14:41:46 +00:00
Jason Merrill
5a8c97d802 re PR c++/50365 (non-static data member error on valid code)
PR c++/50365
	* parser.c (cp_parser_late_return_type_opt): Check quals parameter
	for clearing current_class_ptr, too.

From-SVN: r178883
2011-09-15 10:33:37 -04:00
Jason Merrill
f298ca2696 re PR c++/50361 ([C++0x] [4.7 Regression] ICE with std::initializer_list and nullptr)
PR c++/50361
	* expr.c (count_type_elements): Handle NULLPTR_TYPE.

From-SVN: r178882
2011-09-15 10:33:24 -04:00
Jan Hubicka
a61bd0304c ipa-inline-analysis.c (add_condition): Add conditions parameter; simplify obviously true clauses.
* ipa-inline-analysis.c (add_condition): Add conditions parameter;
	simplify obviously true clauses.
	(and_predicates, or_predicates): Add conditions parameter.
	(inline_duplication_hoook): Update.
	(mark_modified): New function.
	(unmodified_parm): New function.
	(eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
	set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
	Use unmodified_parm.
	(estimate_function_body_sizes): Update.
	(remap_predicate): Update.

From-SVN: r178881
2011-09-15 12:15:43 +00:00
Ira Rosen
e0521991e4 tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow read-after-read dependencies in basic block SLP.
* tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
        read-after-read dependencies in basic block SLP.

From-SVN: r178880
2011-09-15 10:46:39 +00:00
Arnaud Charlet
4178104336 Update dependencies.
From-SVN: r178879
2011-09-15 12:31:13 +02:00
Arnaud Charlet
804ff4c33e [multiple changes]
2011-09-15  Robert Dewar  <dewar@adacore.com>

	* tree_io.ads: Minor reformatting.
	* a-intnam.ads: Fix bad header.

2011-09-15  Thomas Quinot  <quinot@adacore.com>

	* a-exexpr-gcc.adb: Minor reformatting.

2011-09-15  Yannick Moy  <moy@adacore.com>

	* sem_ch6.adb: Propagate information that an expression function comes
	from source (otherwise references to this entity are not stored).

From-SVN: r178878
2011-09-15 12:26:49 +02:00
Arnaud Charlet
0b5b2bbc71 [multiple changes]
2011-09-15  Robert Dewar  <dewar@adacore.com>

	* a-cdlili.adb, a-coinve.adb, a-stzunb-shared.ads, a-suezst.adb,
	a-suenco.adb, a-stwiun-shared.ads, a-cobove.adb, a-convec.adb,
	a-btgbso.adb, a-cbdlli.adb, a-suewst.adb: Minor reformatting.

2011-09-15  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch6.adb (Analyze_Expression_Function): Code cleanup:
	if the expression function is not a completion, create a
	new specification for the generated declaration, and keep the
	original specification in the generated body. Shorter code also
	ensures that proper warnings are generated for unused formals
	in all cases.

2011-09-15  Sergey Rybin  <rybin@adacore.com>

	* tree_io.ads: Update ASIS_Version_Number because of the changes
	in the tree structures for expression functions.

2011-09-15  Arnaud Charlet  <charlet@adacore.com>

	* s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
	s-osinte-hpux.ads, s-osinte-lynxos.ads, s-osinte-solaris-posix.ads,
	s-taprop-posix.adb (CLOCK_MONOTONIC): New constant.
	(CLOCK_REALTIME): Fix wrong value on some OSes.
	* s-taprop-posix.adb (Monotonic_Clock): Use CLOCK_MONOTONIC.

From-SVN: r178877
2011-09-15 12:22:54 +02:00
GCC Administrator
21f1e8ce72 Daily bump.
From-SVN: r178875
2011-09-15 00:19:11 +00:00
Ian Lance Taylor
ffe0891751 Fix handling of structs with embedded global types.
From-SVN: r178870
2011-09-14 22:28:10 +00:00
Richard Sandiford
fe0aee6ca0 sparc.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
	* config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
	throughout file.

From-SVN: r178869
2011-09-14 21:18:09 +00:00
Richard Sandiford
68ed2b9cb9 sh.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
	* config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
	throughout file.

From-SVN: r178868
2011-09-14 21:17:43 +00:00
Richard Sandiford
d7f99b2cc5 s390.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
	* config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
	throughout file.

From-SVN: r178867
2011-09-14 21:17:14 +00:00
Richard Sandiford
26b996c6ae rs6000.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
	* config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
	throughout file.
	* config/rs6000/constraints.md: Likewise.

From-SVN: r178866
2011-09-14 21:16:45 +00:00
Richard Sandiford
5cf6e736b8 microblaze.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
	* config/microblaze/microblaze.md: Use match_test rather than
	eq/ne symbol_ref throughout file.

From-SVN: r178865
2011-09-14 21:16:05 +00:00
Richard Sandiford
dd02d5eff6 bfin.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
	* config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
	throughout file.

From-SVN: r178864
2011-09-14 21:15:09 +00:00
François Dumont
7e5ac0a4f5 hashtable.h (_Hashtable<>::_M_rehash): Take and restore hash policy _M_prev_resize on exception.
2011-09-14  François Dumont  <fdumont@gcc.gnu.org>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/hashtable.h (_Hashtable<>::_M_rehash): Take and restore
	hash policy _M_prev_resize on exception.
	(_Hashtable<>::_M_insert_bucket): Capture hash policy next resize
	before using it and use latter method to have it restored on exception.
	(_Hashtable<>::_M_insert(_Arg&& __v, std::false_type): Likewise.
	(_Hashtable<>::insert(_InputIterator, _InputIterator): Likewise.
	(_Hashtable<>::rehash): Likewise.
	* testsuite/23_containers/unordered_set/insert/hash_policy.cc: New.
	* testsuite/23_containers/unordered_multiset/insert/hash_policy.cc:
	Likewise.


Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r178861
2011-09-14 19:50:20 +00:00
Diego Novillo
700cf92e75 name-lookup.c (lookup_arg_dependent): Use conditional timevars.
* name-lookup.c (lookup_arg_dependent): Use conditional
	timevars.
	* decl.c (xref_tag): Likewise.

From-SVN: r178860
2011-09-14 15:32:03 -04:00
Ian Lance Taylor
4d7b770603 Fix defer/recover at high optimization levels.
From-SVN: r178859
2011-09-14 18:48:08 +00:00
Paolo Carlini
ebb077fc77 re PR c++/50391 ([C++0x] ICE on invalid code, pair with incomplete type)
/cp
2011-09-14  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50391
	* pt.c (regenerate_decl_from_template): Don't pass an error_mark_node
	to build_exception_variant.

/testsuite
2011-09-14  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50391
	* g++.dg/cpp0x/noexcept15.C: New.

From-SVN: r178857
2011-09-14 16:19:59 +00:00
Tom de Vries
5699cf3dad MAINTAINERS (Write After Approval): Add myself.
2011-09-14  Tom de Vries  <tom@codesourcery.com>

	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r178856
2011-09-14 15:42:35 +00:00
Tom de Vries
37e76cf26a re PR middle-end/50251 (Revision 178353 caused many test failures)
2011-09-14  Tom de Vries  <tom@codesourcery.com>

	PR middle-end/50251
	* gcc.dg/pr50251.c: New test.

From-SVN: r178854
2011-09-14 14:33:35 +00:00
Tom de Vries
50025f916d re PR middle-end/50251 (Revision 178353 caused many test failures)
2011-09-14  Tom de Vries  <tom@codesourcery.com>

	PR middle-end/50251
	* explow.c (emit_stack_restore): Set crtl->need_drap if
	stack_restore is emitted.

From-SVN: r178853
2011-09-14 14:32:07 +00:00
Julian Brown
86b601168a arm.c (arm_override_options): Add unaligned_access support.
gcc/
	* config/arm/arm.c (arm_override_options): Add unaligned_access
	support.
	(arm_file_start): Emit attribute for unaligned access as
	appropriate.
	* config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
	(UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
	(insv, extzv): Add unaligned-access support.
	(extv): Change to expander. Likewise.
	(extzv_t1, extv_regsi): Add helpers.
	(unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
	(unaligned_storesi, unaligned_storehi): New.
	(*extv_reg): New (previous extv implementation).
	* config/arm/arm.opt (munaligned_access): Add option.
	* config/arm/constraints.md (Uw): New constraint.
	* expmed.c (store_bit_field_1): Adjust bitfield numbering according
	to size of access, not size of unit, when BITS_BIG_ENDIAN !=
	BYTES_BIG_ENDIAN. Don't use bitfield accesses for
	volatile accesses when -fstrict-volatile-bitfields is in effect.
	(extract_bit_field_1): Likewise.

From-SVN: r178852
2011-09-14 13:47:42 +00:00
Richard Sandiford
fafaf06fba simplify-rtx.c (simplify_subreg): Check that the inner mode is a scalar integer before applying integer-only...
gcc/
	* simplify-rtx.c (simplify_subreg): Check that the inner mode is
	a scalar integer before applying integer-only optimisations to
	inner arithmetic.

From-SVN: r178848
2011-09-14 12:17:03 +00:00
Bernd Schmidt
3551175193 mips.c (mips_expand_epilogue): Generate a simple_return only if the return address is in r31.
* config/mips/mips.c (mips_expand_epilogue): Generate a
	simple_return only if the return address is in r31.

From-SVN: r178847
2011-09-14 11:15:09 +00:00
Tobias Burnus
d4eb366841 Really add:
2011-09-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34547
        PR fortran/50375
        * gfortran.dg/null_5.f90: New.
        * gfortran.dg/null_6.f90: New.

From-SVN: r178842
2011-09-14 08:27:25 +02:00
Tobias Burnus
ea8ad3e527 re PR fortran/34547 (NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid)
2011-09-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34547
        PR fortran/50375
        * check.c (gfc_check_null): Allow allocatables as MOLD to NULL.
        * resolve.c (resolve_transfer): Reject NULL without MOLD.
        * interface.c (gfc_procedure_use): Reject NULL without MOLD
        if no explicit interface is known.
        (gfc_search_interface): Reject NULL without MOLD if it would
        lead to ambiguity.

2011-09-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34547
        PR fortran/50375
        * gfortran.dg/null_5.f90: New.
        * gfortran.dg/null_6.f90: New.

From-SVN: r178841
2011-09-14 08:26:07 +02:00
GCC Administrator
95a45b570d Daily bump.
From-SVN: r178839
2011-09-14 00:18:08 +00:00
Ian Lance Taylor
a39fd33d67 Always dereference nil receiver passed to value method.
From-SVN: r178835
2011-09-13 21:34:24 +00:00
Bernd Schmidt
43052d4586 cfgcleanup.c (try_head_merge_bb): If get_condition returns NULL for a jump that is a cc0 insn...
* cfgcleanup.c (try_head_merge_bb): If get_condition returns
	NULL for a jump that is a cc0 insn, pick the previous insn for
	move_before.

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

From-SVN: r178834
2011-09-13 20:40:53 +00:00
Diego Novillo
a5baf3b8ce testsuite-management: New.
* testsuite-management: New.
	* testsuite-management/validate_failures.py: New.

From-SVN: r178833
2011-09-13 16:24:47 -04:00
Janus Weil
94c4133ab4 re PR fortran/50379 (ICE in gfc_typenode_for_spec at fortran/trans-types.c)
2011-09-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/50379
	* symbol.c (check_conflict): Check conflict between GENERIC and RESULT
	attributes.


2011-09-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/50379
	* gfortran.dg/result_2.f90: New.

From-SVN: r178829
2011-09-13 20:37:33 +02:00
Ian Lance Taylor
d9930d55ad Fix inheriting hidden methods with arguments of hidden type.
From-SVN: r178827
2011-09-13 18:24:45 +00:00
Richard Sandiford
61c4c15049 v850.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
	* config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
	throughout file.

From-SVN: r178826
2011-09-13 18:17:03 +00:00
Richard Sandiford
d3c7d136a1 pa.md: Use match_test rather than eq/ne symbol_ref throughout file.
gcc/
	* config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
	throughout file.

From-SVN: r178825
2011-09-13 18:14:26 +00:00