Commit Graph

98758 Commits

Author SHA1 Message Date
Eric Botcazou
eeb971c961 Makefile.in (PLUGINCC, [...]): New variables.
* Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
	(site.exp): Export them when plugins are enabled.
testsuite/
	* lib/plugin-support.exp (plugin-test-execute): Use PLUGINCC in lieu
	of HOSTCC and PLUGINCFLAGS in lieu of HOSTCFLAGS.

From-SVN: r157246
2010-03-05 22:52:02 +00:00
Jason Merrill
1b88f240b9 mangle.c (mangle_decl): Give name collision error even without ASM_OUTPUT_DEF.
* mangle.c (mangle_decl): Give name collision error even without
	ASM_OUTPUT_DEF.
	* g++.dg/abi/mangle40.C: Require weak and alias.

From-SVN: r157245
2010-03-05 17:44:56 -05:00
Sebastian Pop
ccc5b64063 Fix PR42326: Handle more carefully convert expressions in chrec_fold_plus and chrec_fold_mult.
2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/42326
	* tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
	that contain scevs.
	(chrec_fold_multiply): Same.

	* gfortran.dg/graphite/pr42326.f90: New.
	* gfortran.dg/graphite/pr42326-1.f90: New.

From-SVN: r157244
2010-03-05 20:37:44 +00:00
Rainer Orth
576e4d8266 gnat.exp (gnat_init): Remove GNAT_UNDER_TEST_ORIG.
* lib/gnat.exp (gnat_init): Remove GNAT_UNDER_TEST_ORIG.
	(gnat_target_compile): Likewise.
	Reinitialize GNAT_UNDER_TEST if target changes.
	Set ADA_INCLUDE_PATH, ADA_OBJECTS_PATH in environment.
	(local_find_gnatmake): Pass full --GCC to gnatlink.
	Remove --LINK.

From-SVN: r157240
2010-03-05 11:39:17 +00:00
Paolo Carlini
714902c8d4 testsuite_container_traits.h (traits_base): Add has_throwing_erase trait.
2010-03-04  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/util/testsuite_container_traits.h (traits_base): Add
	has_throwing_erase trait.
	(traits<vector>, traits<deque>): Typedef the latter to true_type.
	* testsuite/util/exception/safety.h (generation_prohibited):
	Do not test vector::erase and deque::erase: can throw if
	either copy constructor or assignment operator of value_type
	throws.
	* testsuite/23_containers/vector/requirements/exception/
	generation_prohibited.cc: Remove xfail.
	* testsuite/23_containers/deque/requirements/exception/
	generation_prohibited.cc: Likewise.

	* include/ext/throw_allocator.h (hash<__gnu_cxx::throw_value_limit>::
	operator(), hash<__gnu_cxx::throw_value_random>::operator()): Pass
	argument by const ref.

	* testsuite/util/testsuite_container_traits.h (traits<map>,
	traits<multimap>, traits<set>, traits<multiset>,
	traits<unordered_map>, traits<unordered_multimap>,
	traits<unordered_set>, traits<unordered_multiset>): Typedef
	consistently has_erase and has_insert as true_type.

	* testsuite/util/testsuite_container_traits.h
	(traits<unordered_map>, traits<unordered_multimap>,
	traits<unordered_set>, traits<unordered_multiset>): Do not wrongly
	typedef has_size_type_constructor as true_type: the constructor
	accepting a size_type actually gets the initial number of
	buckets.

From-SVN: r157239
2010-03-05 01:51:56 +00:00
GCC Administrator
630e6f1be5 Daily bump.
From-SVN: r157236
2010-03-05 00:18:03 +00:00
Andrew Pinski
3e23fb2e8b re PR c/43248 (ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at tree-ssa.c:1233)
2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>

        PR c/43248
        * c-decl.c (build_compound_literal): Return early if init is
        an error_mark_node.
2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>

        PR c/43248
        * gcc.dg/compound-literal-1.c: New testcase.

From-SVN: r157233
2010-03-04 11:59:19 -08:00
Martin Jambor
76f76cd0e5 re PR tree-optimization/43164 (ice in completely_scalarize_record, at tree-sra.c:85)
2010-03-04  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/43164
	PR tree-optimization/43191
	* tree-sra.c (type_consists_of_records_p): Reject records with
	zero-size bit-fields at the end.

	* testsuite/gcc.c-torture/compile/pr43164.c: New test.
	* testsuite/gcc.c-torture/compile/pr43191.c: Likewise.

From-SVN: r157232
2010-03-04 19:16:32 +01:00
Marco Poletti
83ff92fb26 pt.c (process_partial_specialization): Use error_n instead of error.
2010-03-04  Marco Poletti  <poletti.marco@gmail.com>

	* pt.c (process_partial_specialization): Use error_n instead of
	error.

From-SVN: r157229
2010-03-04 16:17:07 +00:00
Mike Stump
b2d244d15f * Makefile.in (TAGS): Remove *.y.
From-SVN: r157228
2010-03-04 16:07:20 +00:00
Janus Weil
33344e0feb re PR fortran/43244 (Invalid statement misinterpreted as FINAL declaration)
2010-03-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/43244
	* decl.c (gfc_match_final_decl): Make sure variable names starting with
	'final...' are not misinterpreted as FINAL statements.


2010-03-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/43244
	* gfortran.dg/finalize_9.f90: New.

From-SVN: r157226
2010-03-04 14:42:06 +01:00
Richard Biener
9ca872365c re PR rtl-optimization/40761 (IRA memory hog for insanely nested loops)
2010-03-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/40761
	* tree-ssa-pre.c (compute_antic): Walk reverse postorder
	in reverse order.
	(my_rev_post_order_compute): New function.
	(init_pre): Call it.

From-SVN: r157225
2010-03-04 13:25:27 +00:00
Tobias Burnus
c09a001455 reassoc_4.f: Add --param max-completely-peel-times to dg-options for spu.
2010-03-04  Tobias Burnus  <burnus@net-b.de>
            Ken Werner <ken@linux.vnet.ibm.com>

        * gfortran.dg/reassoc_4.f: Add --param max-completely-peel-times
        to dg-options for spu.
        * gfortran.dg/vect/vect-7.f90: Add vect_intfloat_cvt to the
        dump-scan target to exclude spu.


Co-Authored-By: Ken Werner <ken@linux.vnet.ibm.com>

From-SVN: r157224
2010-03-04 13:56:06 +01:00
Sebastian Pop
8c0386a436 Fix ChangeLog entries tabs.
From-SVN: r157218
2010-03-04 12:16:54 +00:00
Changpeng Fang
572ae4769a Fix PR43209: Do not decrease the cost of an IV candidate when the cost is infinite.
2010-03-03  Changpeng Fang  <changpeng.fang@amd.com>

      PR middle-end/43209
      * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not decrease
      the cost of an IV candidate when the cost is infinite.

      * gcc.dg/tree-ssa/ivopts-4.c: New.

From-SVN: r157217
2010-03-04 12:12:50 +00:00
Ralf Wildenhues
f8723eb6ec doc: normalize 3DNow! spelling and spacing.
gcc/:
	* doc/extend.texi (Vector Extensions, X86 Built-in Functions):
	Use '3DNow!' for the extension of that name, ensure normal space
	after the string.
	* doc/invoke.texi (i386 and x86-64 Options): Likewise.

From-SVN: r157215
2010-03-04 03:01:21 +00:00
Benjamin Kosnik
0f752f4435 Makefile.am: Re-organize xml sources.
2010-03-03  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/Makefile.am: Re-organize xml sources.
	(doc-latex-doxygen): New.
	(doc-pdf-doxygen): New.
	(stamp-xml-doxygen, stamp-latex-doxygen): New.
	* doc/Makefile.in: Regenerate.
	* doc/doxygen/user.cfg.in: Add support here.
	* doc/xml/manual/appendix_contributing.xml: Add specifics.

	* doc/xml/manual/concurrency.xml: New.
	* doc/xml/manual/atomics.xml: New.
	* doc/xml/manual/spine.xml: Adjust.
	* doc/xml/manual/diagnostics.xml: Adjust.

From-SVN: r157214
2010-03-04 02:55:08 +00:00
GCC Administrator
c05a5e2992 Daily bump.
From-SVN: r157213
2010-03-04 00:16:43 +00:00
Jeff Law
d8a60d2424 re PR middle-end/32693 ([H8] : ICE: in gen_rtx_SUBREG, at emit-rtl.c:693)
* PR middle-end/32693
	* expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
	than gen_rtx_SUBREG.
	(extract_bit_field_1): Likewise.

From-SVN: r157207
2010-03-03 15:10:17 -07:00
Janis Johnson
8ec49cffc2 sourcebuild.texi (Test directives): Document that arguments include-opts and exclude-opts are now optional for...
* doc/sourcebuild.texi (Test directives): Document that arguments
	include-opts and exclude-opts are now optional for dg-skip-if,
	dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.

	* lib/target-supports-dg.exp (check-flags): Provide defaults for
	include-opts and exclude-opts; skip checking the flags if arguments
	are the same as the defaults.
	(dg-xfail-if): Verify the number of arguments, supply defaults
	for unspecified optional arguments.
	(dg-skip-if, dg-xfail-run-if): Verify the number of arguments.

From-SVN: r157206
2010-03-03 22:05:30 +00:00
Jason Merrill
a84713ad26 mangle19-1.C: Adjust for default -Wabi.
* g++.dg/abi/mangle19-1.C: Adjust for default -Wabi.
	* g++.dg/abi/mangle23.C: Likewise.
	* g++.dg/eh/simd-2.C: Likewise.
	* g++.dg/ext/attribute-test-2.C: Likewise.
	* g++.dg/ext/vector14.C: Likewise.
	* g++.dg/other/pr34435.C: Likewise.
	* g++.dg/template/conv8.C: Likewise.
	* g++.dg/template/nontype9.C: Likewise.
	* g++.dg/template/qualttp17.C: Likewise.
	* g++.dg/template/ref1.C: Likewise.
	* g++.old-deja/g++.pt/crash68.C: Likewise.
	* g++.old-deja/g++.pt/ref1.C: Likewise.
	* g++.old-deja/g++.pt/ref3.C: Likewise.
	* g++.old-deja/g++.pt/ref4.C: Likewise.

From-SVN: r157205
2010-03-03 15:24:45 -05:00
Jason Merrill
1d5053d6b4 re PR c++/12909 (ambiguity in mangling vector types)
PR c++/12909
	* lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
	* lto-streamer-in.c (lto_input_tree): Read it.
	* lto-streamer-out.c (output_unreferenced_globals): Write it.

From-SVN: r157204
2010-03-03 14:02:08 -05:00
Jason Merrill
2c71ac7866 re PR c++/12909 (ambiguity in mangling vector types)
PR c++/12909
	* cgraph.h (varpool_node): Add extra_name field.
	* varpool.c (varpool_extra_name_alias): New.
	(varpool_assemble_decl): Emit extra name aliases.
	(varpool_mark_needed_node): Look past an extra name alias.
cp/
	* mangle.c (mangle_decl): Handle VAR_DECL, too.

From-SVN: r157203
2010-03-03 14:01:58 -05:00
Jason Merrill
d6dcdbd5f6 re PR c++/12909 (ambiguity in mangling vector types)
PR c++/12909
	* method.c (make_alias_for): Handle VAR_DECL, too.
	* decl2.c (vague_linkage_p): Rename from vague_linkage_fn_p.
	* tree.c (no_linkage_check): Adjust.
	* decl.c (maybe_commonize_var): Adjust.
	* mangle.c (mangle_decl): Adjust.
	* cp-tree.h: Adjust.

From-SVN: r157202
2010-03-03 14:01:46 -05:00
Jason Merrill
58a15cf8ee re PR c++/12909 (ambiguity in mangling vector types)
PR c++/12909
	* mangle.c: Include cgraph.h.
	(mangle_decl): If the mangled name will change in a later
	ABI version, make the later mangled name an alias.
	* method.c (make_alias_for): Copy DECL_ARGUMENTS.
	* Make-lang.in (mangle.o): Depend on cgraph.h.

From-SVN: r157201
2010-03-03 14:01:36 -05:00
Eric Botcazou
2587aa3b36 config.gcc (sparc64-*-solaris2*, [...]): Merge into...
* config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
	(sparc*-*-solaris2*): ...this.

From-SVN: r157200
2010-03-03 18:14:50 +00:00
Paul Thomas
ba4619917b re PR fortran/43243 ([4.4 Regression ?] Wrong-code due to missing array temp for DT with pointer component)
2010-03-03  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/43243
	* trans-array.c (gfc_conv_array_parameter): Contiguous refs to
	allocatable ultimate components do not need temporaries, whilst
	ultimate pointer components do.

2010-03-03  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/43243
	* gfortran.dg/internal_pack_12.f90: New test.

From-SVN: r157199
2010-03-03 17:49:53 +00:00
H.J. Lu
a82ec6aa3c Update gcc.dg/pr36997.c for vector size change.
2010-03-03  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.dg/pr36997.c: Adjust error message.

From-SVN: r157198
2010-03-03 08:54:19 -08:00
Mike Stump
83bfaab7d9 builtin-unreachable.c: Don't expect stack adjustments to not be present on machines that align the...
* gcc.target/i386/builtin-unreachable.c: Don't expect stack
	adjustments to not be present on machines that align the stack to
	more than 4 bytes and don't have a red zone yet as that is an
	unimplemented optimization.

From-SVN: r157197
2010-03-03 16:46:27 +00:00
Janus Weil
d1039125cf re PR fortran/43169 ([OOP] gfortran rejects pure procedure with select type construct)
2010-03-03  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/43169
	* resolve.c (resolve_code): Correctly set gfc_current_ns for
	EXEC_SELECT_TYPE.
	(gfc_impure_variable): Make it work with sub-namespaces (BLOCK etc).
	(gfc_pure): Ditto.


2010-03-03  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/43169
	* gfortran.dg/impure_assignment_3.f90: New.

From-SVN: r157196
2010-03-03 16:12:40 +01:00
Paolo Carlini
2ba34efc55 unique_ptr.h (unique_ptr<>::get_deleter): Simplify return type.
2010-03-03  Paolo Carlini  <paolo.carlini@oracle.com>
	    Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/bits/unique_ptr.h (unique_ptr<>::get_deleter): Simplify
	return type.
	* testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Adjust
	dg-error line number.
	* testsuite/20_util/unique_ptr/assign/assign_neg.cc: Likewise.

Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>

From-SVN: r157193
2010-03-03 11:06:59 +00:00
Eric Botcazou
bef7d288df lto-elf.c (is_compatible_architecture): New static function.
* lto-elf.c (is_compatible_architecture): New static function.
	(DEFINE_VALIDATE_EHDR): Use it to validate the architecture.

From-SVN: r157192
2010-03-03 10:29:22 +00:00
Jakub Jelinek
7ece48b118 re PR debug/43229 (ice expand_debug_expr, at cfgexpand.c:2957)
PR debug/43229
	* cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
	WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
	ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
	FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.

	* gfortran.dg/pr43229.f90: New test.

From-SVN: r157191
2010-03-03 10:58:11 +01:00
Jakub Jelinek
0508bed7ff re PR debug/43237 (Wrong DW_AT_upper_bound)
PR debug/43237
	* dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
	fallthrough to default handling, just with want_address 0 instead of 2.
	For single element lists, add_AT_loc directly, otherwise create an
	artificial variable DIE and stick location list to it.

	* gcc.dg/debug/dwarf2/pr43237.c: New test.

From-SVN: r157190
2010-03-03 08:02:37 +01:00
Jakub Jelinek
db51bb3440 re PR debug/43177 (Handle at least simple cases of reversible insns in debug info)
PR debug/43177
	* var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
	(VAL_EXPR_HAS_REVERSE): Define.
	(reverse_op): New function.
	(add_stores): For reversible operations add an extra MO_VAL_USE.

	* gcc.dg/guality/pr43177.c: New test.

From-SVN: r157189
2010-03-03 08:01:27 +01:00
Jakub Jelinek
0c5863c253 re PR debug/43177 (Handle at least simple cases of reversible insns in debug info)
PR debug/43177
	* var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
	(VAL_EXPR_HAS_REVERSE): Define.
	(reverse_op): New function.
	(add_stores): For reversible operations add an extra MO_VAL_USE.

	* gcc.dg/guality/pr43177.c: New test.

From-SVN: r157188
2010-03-03 07:59:09 +01:00
Jason Merrill
7428bc268d * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
From-SVN: r157187
2010-03-03 00:11:13 -05:00
Paolo Carlini
95addb1b84 bitset (hash): Minor tweaks.
2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/debug/bitset (hash): Minor tweaks.
	* include/debug/vector (hash): Likewise.
	* include/profile/bitset (hash): Likewise.
	* include/profile/vector (hash): Likewise.

From-SVN: r157186
2010-03-03 02:01:56 +00:00
Paolo Carlini
055f6a476c functional_hash.h (_Fnv_hash_base<>::hash): Change to template.
2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>  

	* include/bits/functional_hash.h (_Fnv_hash_base<>::hash): Change
	to template.
	* include/tr1/functional_hash.h (_Fnv_hash_base<>::hash): Likewise.
	* include/bits/vector.tcc (hash): Adjust.
	* include/bits/basic_string.h (hash): Likewise.
	* include/std/bitset (hash): Likewise.
	* src/hash-string-aux.cc (hash): Likewise.

From-SVN: r157185
2010-03-03 01:23:07 +00:00
GCC Administrator
273e719b28 Daily bump.
From-SVN: r157184
2010-03-03 00:17:36 +00:00
Eric Botcazou
d1ced15560 config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
* config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
	(sparc64-*-linux*): Likewise.
	(sparc64-*-solaris2*): Include assembler files before linker ones.
	(sparc-*-solaris2*): Simplify and reorder to match previous case.
	* config/sparc/gas.h: Delete.
	* config/sparc/sol2-64.h: Add copyright notice.
	* config/sparc/sol2-gas-bi.h: Likewise.
	* config/sparc/sol2-gld.h: Likewise.
	* config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
	* config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
	* config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
	* config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
	(sparc_elf_asm_named_section): Rename into...
	(sparc_solaris_elf_asm_named_section): ...this.  Always define.

From-SVN: r157181
2010-03-02 23:35:12 +00:00
Jonathan Wakely
ac4983563d mutex (lock_guard::lock_guard): Do not lock mutex when adopt_lock_t constructor is used.
2010-03-02  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/std/mutex (lock_guard::lock_guard): Do not lock mutex when
	adopt_lock_t constructor is used.
	* testsuite/30_threads/lock_guard/cons/1.cc: New.

From-SVN: r157180
2010-03-02 23:00:21 +00:00
Paolo Carlini
63ad150294 stl_bvector.h (hash<vector<bool, [...]): Move definition...
2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_bvector.h (hash<vector<bool, _Alloc>>::
	operator()(const vector<bool, _Alloc>&)): Move definition...
	* include/bits/vector.tcc: ... here.

From-SVN: r157179
2010-03-02 21:49:12 +00:00
Paolo Carlini
f54e96d971 stl_bvector.h (hash<vector<bool, [...]): Move definition...
2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_bvector.h (hash<vector<bool, _Alloc>>::
	operator()(const vector<bool, _Alloc>&)): Move definition...
	* include/bits/vector.tcc: ... here.

From-SVN: r157178
2010-03-02 21:48:20 +00:00
Rainer Orth
d903b2a134 Makefile.am (check-DEJAGNU): Include de* in normal0 dirs.
* testsuite/Makefile.am (check-DEJAGNU): Include de* in normal0
	dirs.
	* testsuite/Makefile.in: Regenerate.

From-SVN: r157177
2010-03-02 21:46:23 +00:00
Paolo Carlini
4cd533a7c7 stl_bvector.h (hash<vector<bool, _Alloc>>): Add.
2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_bvector.h (hash<vector<bool, _Alloc>>): Add.
	* include/debug/vector (hash<__debug::vector<bool, _Alloc>>):
	Likewise.
	* include/profile/vector (hash<__profile::vector<bool, _Alloc>>):
	Likewise.
	* testsuite/23_containers/vector/bool/hash/1.cc: New.

	* include/std/bitset (hash<bitset<_Nb>>): Small tweaks.
	(hash<bitset<0>>): Add.
	* include/debug/bitset (hash<__debug::bitset<_Nb>>): Forward to
	hash<bitset<_Nb>>.
	* include/profile/bitset (hash<__profile::bitset<_Nb>>): Likewise.
	* testsuite/23_containers/bitset/hash/1.cc: Improve.

From-SVN: r157176
2010-03-02 21:11:19 +00:00
Rainer Orth
54bceaf397 * dg-extract-results.sh: Fix result order to match sequential case.
From-SVN: r157175
2010-03-02 20:28:55 +00:00
Jeff Law
4e222e6393 Add PR# to my last change
From-SVN: r157173
2010-03-02 13:00:25 -07:00
Mike Stump
d6814000af re PR c++/41090 (Using static label reference in c++ class constructor produces wrong code)
PR c++/41090
	* g++.dg/ext/label13.C (C::C): xfail for darwin for now.

From-SVN: r157172
2010-03-02 19:40:02 +00:00
Uros Bizjak
02d43000d6 alpha.c (override_options): Fix -mtune error message.
* config/alpha/alpha.c (override_options): Fix -mtune error message.

From-SVN: r157169
2010-03-02 20:18:40 +01:00