Commit Graph

98830 Commits

Author SHA1 Message Date
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
Jeff Law
f6c86fab11 reload1.c (rtx_p, [...]): Declare.
* reload1.c (rtx_p, substitute_stack): Declare.
	(substitute): Record addresses of changed rtxs.
	(gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
	Restore the original rtx when complete.
	(reload): Free subsitute_stack when complete.

From-SVN: r157168
2010-03-02 11:56:50 -07:00
Janis Johnson
500cdcb007 gccint.texi (menu): Add Testsuites as a chapter.
* doc/gccint.texi (menu): Add Testsuites as a chapter.
	* doc/sourcebuild.texi (Testsuites): Move up a level to be a
	new chapter.
	(Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
	LTO Testing, gcov Testing, profopt Testing, compat Testing,
	Torture Tests): Change from subsection to section.

From-SVN: r157167
2010-03-02 17:44:30 +00:00
Jonathan Wakely
38f86abadf re PR libstdc++/43230 (Revision 157158 failed 30_threads/promise/members/set_value3.cc)
2010-03-02  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/43230
	* testsuite/30_threads/promise/members/set_value3.cc
	(tester::~tester): Remove.

From-SVN: r157166
2010-03-02 15:36:00 +00:00
Paolo Carlini
ec7058d64d bitset (_Base_bitset<>::_M_getdata()): Add.
2010-03-02  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/bitset (_Base_bitset<>::_M_getdata()): Add.
	(hash<_GLIBCXX_STD_D::bitset<_Nb>>): Add, use the latter.
	* include/debug/bitset (hash<std::__debug::bitset<_Nb>>): Add.
	* include/profile/bitset (hash<std::__profile::bitset<_Nb>>): Likewise.
	* testsuite/23_containers/bitset/hash/1.cc: New.

From-SVN: r157165
2010-03-02 14:08:52 +00:00
Jakub Jelinek
d9a6979d96 var-tracking.c (vt_initialize): Scan insns in ebb chunks instead of bb.
* var-tracking.c (vt_initialize): Scan insns in ebb chunks instead
	of bb.

Co-Authored-By: Steven Bosscher <steven@gcc.gnu.org>

From-SVN: r157164
2010-03-02 13:18:39 +01:00
Paul Thomas
2542496c70 re PR fortran/43180 (Bad results without temporary copy of intent(in) argument)
2010-03-02  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/43180
	* trans-array.c (gfc_conv_array_parameter): A full array of
	derived type need not be restricted to a symbol without an
	array spec to use the call to gfc_conv_expr_descriptor.

	PR fortran/43173
	* trans-array.c (gfc_conv_array_parameter): Contiguous refs to
	allocatable arrays do not need temporaries.

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

	PR fortran/43180
	* gfortran.dg/internal_pack_10.f90: New test.

	PR fortran/43173
	* gfortran.dg/internal_pack_11.f90: New test.

From-SVN: r157163
2010-03-02 11:58:02 +00:00
Sebastian Pop
61226dc8a6 Fix PR42640: Correctly initialize the value of the new induction variable.
2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>

	PR middle-end/42640
	* tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
	the assignment from the new induction variable to the assignment
	of the value from the original loop PHI function.

	* gcc.dg/tree-ssa/pr42640.c: New.

From-SVN: r157161
2010-03-02 10:22:30 +00:00
Ralf Wildenhues
ef74edbdd8 Small multilib rule fixups.
libgcc/:
        PR other/42980
        * Makefile.in (install): Use $(MAKE) string in rule, for
        parallel make.

libiberty/:
        * Makefile.in (all): Do not use exec.

From-SVN: r157159
2010-03-02 06:09:56 +00:00
Jonathan Wakely
3e2e197673 re PR libstdc++/43183 (std::unique_ptr::reset() does not conform to N3035.)
2010-03-02  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/43183
	* include/bits/unique_ptr.h (reset): Fix as per working paper.
	(operator*, operator->, operator[], operator bool, release): Use
	pointer's null value instead of 0.
	* testsuite/20_util/unique_ptr/assign/assign_neg.cc: Adjust.
	* testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Adjust.
	* testsuite/20_util/unique_ptr/modifiers/43183.cc: New.

From-SVN: r157158
2010-03-02 00:40:28 +00:00
GCC Administrator
f743fd0a4c Daily bump.
From-SVN: r157157
2010-03-02 00:17:00 +00:00
Janis Johnson
15e7a617a1 sourcebuild.texi (Test directives): Clarify options to dg-skip-if.
* doc/sourcebuild.texi (Test directives): Clarify options to
	dg-skip-if.

Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com>

From-SVN: r157154
2010-03-01 23:29:18 +00:00
Paolo Carlini
604b384dd4 iomanip (get_money, put_money): Add in C++0x mode; tidy.
2010-03-01  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/iomanip (get_money, put_money): Add in C++0x mode; tidy.
	* testsuite/27_io/manipulators/extended/get_money/char/1.cc: New.
	* testsuite/27_io/manipulators/extended/get_money/wchar_t/1.cc:
	Likewise.
	* testsuite/27_io/manipulators/extended/put_money/char/1.cc: Likewise.
	* testsuite/27_io/manipulators/extended/put_money/wchar_t/1.cc:
	Likewise.

From-SVN: r157153
2010-03-01 19:12:39 +00:00
Benjamin Kosnik
44de0937ab atomicfwd_cxx.h: Add typedefs to group.
2010-03-01  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/atomicfwd_cxx.h: Add typedefs to group.

From-SVN: r157152
2010-03-01 19:04:23 +00:00
Rainer Orth
eb2573eeb4 configure.ac (gcc_cv_as_cfi_directive): Disable cfi directives unless GCC and gas agree on using read-only .eh_frame...
* configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
	Disable cfi directives unless GCC and gas agree on using read-only
	.eh_frame sections for 64-bit.
	* configure: Regenerate.

From-SVN: r157151
2010-03-01 18:09:19 +00:00
Richard Guenther
12f9ddbc7d re PR tree-optimization/43220 (Paritially optimized __builtin_save_stack/__builtin_restore_stack causes segmentation fault)
2010-03-01  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43220
	* tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
	BUILT_IN_STACK_{SAVE,RESTORE} around alloca.

	* gcc.c-torture/execute/pr43220.c: New testcase.

From-SVN: r157149
2010-03-01 16:57:02 +00:00
Richard Guenther
f0c10f0fab re PR middle-end/41250 (hppa has DECL_VALUE_EXPR decls appearing in the function)
2010-03-01  Richard Guenther  <rguenther@suse.de>
	Martin Jambor  <mjambor@suse.cz>

	PR middle-end/41250
	* gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
	gimplified parameters.

Co-Authored-By: Martin Jambor <mjambor@suse.cz>

From-SVN: r157148
2010-03-01 15:43:32 +00:00
Christian Bruel
c40b540068 set LABEL_PRESERVE_P for landing pad labels
From-SVN: r157146
2010-03-01 15:34:44 +01:00
Rainer Orth
004d697372 re PR pch/14940 (PCH largefile test fails on various platforms)
PR pch/14940
	* gcc.dg/pch/pch.exp: Don't XFAIL largefile.c on i?86-*-solaris2.10.

From-SVN: r157145
2010-03-01 14:07:12 +00:00
Rainer Orth
8927b7c026 re PR other/32499 (libstdc++ testsuite fails on platforms without ranlib)
libstdc++-v3:
	PR libstdc++/32499
	* testsuite/Makefile.am (check-DEJAGNU
	$(check_DEJAGNU_normal_targets)): Export AR, RANLIB.
	* testsuite/Makefile.in: Regenerate.

	toplevel:
	PR libstdc++/32499
	* configure.ac (RANLIB): Default to true.
	(STRIP): Likewise.
	(RANLIB_FOR_TARGET): Remove superfluous : argument.
	* configure: Regenerate.

From-SVN: r157144
2010-03-01 13:58:48 +00:00
H.J. Lu
3c775d2d89 Use SPEC_32 and SPEC_64 in ASM_SPEC.
2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.

From-SVN: r157143
2010-03-01 05:05:44 -08:00
Richard Guenther
434c8f4b99 re PR tree-optimization/43213 (Worse code generated with -O2)
2010-03-01  Richard Guenther  <rguenther@suse.de>

	PR middle-end/43213
	* expr.c (expand_assignment): Use the alias-oracle to tell
	if the rhs aliases the result decl.

	* gcc.dg/pr43213.c: New testcase.

From-SVN: r157142
2010-03-01 12:56:44 +00:00
Rainer Orth
291c0a12c4 re PR pch/14940 (PCH largefile test fails on various platforms)
gcc:
	PR pch/14940
	* config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
	to sol_gt_pch_get_address.
	(TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
	64-bit, SPARC and x86.
	(sol_gt_pch_get_address): New function.

	gcc/testsuite:
	PR pch/14940
	* gcc.dg/pch/pch.exp: Don't XFAIL largefile.c on i?86-*-solaris2.10.

From-SVN: r157141
2010-03-01 12:44:33 +00:00
Rainer Orth
72a30e3cf0 target-supports.exp (check_effective_target_ucn_nocache): New function.
* lib/target-supports.exp (check_effective_target_ucn_nocache):
	New function.
	(check_effective_target_ucn): Likewise.

	* g++.dg/other/ucnid-1.C: Don't XFAIL on *-*-solaris2.*, but skip
	if !ucn.
	* gcc.dg/ucnid-2.c: Likewise.
	* gcc.dg/ucnid-3.c: Likewise.
	* gcc.dg/ucnid-4.c: Likewise.
	* gcc.dg/ucnid-11.c: Likewise.
	* gcc.dg/ucnid-12.c: Likewise.
	* gcc.dg/ucnid-6.c: Skip if !ucn.
	* gcc.dg/ucnid-9.c: Likewise.

From-SVN: r157140
2010-03-01 12:40:38 +00:00
Rainer Orth
48f8763ff4 pr32000-2.c: Add missing include and exclude lists to dg-skip-if.
* gcc.target/i386/pr32000-2.c: Add missing include and exclude
	lists to dg-skip-if.
	* gcc.target/i386/stackalign/return-3.c: Likewise.

From-SVN: r157139
2010-03-01 12:37:30 +00:00
Rainer Orth
223743a0fb * configure.host (mips-sgi-irix6*): Don't set libgcj_interpreter.
From-SVN: r157138
2010-03-01 12:35:16 +00:00
Rainer Orth
199cb84e3c re PR libgcj/38251 (tools.zip doesn't build on systems with short command lines)
PR libgcj/38251
	* tools/Makefile.am (dist-hook): Prune .svn directories in asm and
	classes copies.
	* tools/Makefile.in: Regenerate.

	Revert:
	2008-11-05  Andrew Haley  <aph@redhat.com>

	* tools/Makefile.am (UPDATE_TOOLS_ZIP, CREATE_TOOLS_ZIP): Exclude
	.svn direcories.

From-SVN: r157137
2010-03-01 12:32:02 +00:00
Rainer Orth
7d82c626c3 clearcap.map: New file.
* gcc.target/i386/clearcap.map: New file.
	* gcc.target/i386/i386.exp: Check for linker -M mapfile support.
	Pass clearcap.map by default if supported.

From-SVN: r157136
2010-03-01 12:28:19 +00:00
Rainer Orth
1069f584a7 re PR fortran/42900 (gfortran.dg/stat_[12].f90 may fail on NFS filesystems)
PR fortran/42900
	* gfortran.dg/stat_1.f90: Accept 'testfile' gid == parent dir gid.
	Explain this.
	* gfortran.dg/stat_2.f90: Likewise.

From-SVN: r157135
2010-03-01 12:25:34 +00:00