Commit Graph

107547 Commits

Author SHA1 Message Date
Paolo Carlini
355e71b9df shared_ptr.h (operator>, [...]): Add, per DR 1401.
2011-03-22  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/shared_ptr.h (operator>, operator<=, operator>=): Add,
	per DR 1401.
	(operator==, operator!=, operator<): Fix per the letter of DR 1401.
	* include/bits/shared_ptr_base.h: Likewise for __shared_ptr.
	* include/bits/unique_ptr.h (operator==, operator!=, operator<,
	operator<=, operator>, operator>=): Fix per the letter of DR 1401.
	* testsuite/20_util/shared_ptr/comparison/dr1401.cc: New.
	* testsuite/20_util/unique_ptr/comparison/dr1401.cc: Likewise.
	* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust.

From-SVN: r171293
2011-03-22 15:15:03 +00:00
Jakub Jelinek
043747b3b2 gnu.ver (GLIBCXX_3.4.15): Export _ZNSsC2EOSs and _ZNSbIwSt11char_traitsIwESaIwEEC2EOS2_.
* config/abi/pre/gnu.ver (GLIBCXX_3.4.15): Export _ZNSsC2EOSs
	and _ZNSbIwSt11char_traitsIwESaIwEEC2EOS2_.
	* config/abi/post/solaris2.8/baseline_symbols.txt: Regenerated.
	* config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
	* config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
	* config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
	Likewise.
	* config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
	* config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
	* testsuite/21_strings/basic_string/cons/char/moveable2.cc: New test.
	* testsuite/21_strings/basic_string/cons/wchar_t/moveable2.cc: New
	test.

From-SVN: r171291
2011-03-22 16:05:23 +01:00
Michael Meissner
956c23da96 Make vector-{1,2}.c run correctly on PowerPC 32-bit
From-SVN: r171289
2011-03-22 14:36:11 +00:00
Nathan Froyd
009d3fcf71 tree.c (build_call_1): New function.
* tree.c (build_call_1): New function.
	(build_call_valist, build_call_array_loc, build_call_vec): Call it.

From-SVN: r171288
2011-03-22 12:55:47 +00:00
Richard Guenther
7bec30e109 re PR tree-optimization/48228 (incorrect signed overflow warning when only 0 and 1 are used)
2011-03-22  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/48228
	* tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
	for single-arg PHIs.

	* gcc.dg/Wstrict-overflow-23.c: New testcase.

From-SVN: r171287
2011-03-22 12:40:09 +00:00
Andrey Belevantsev
0b7e851b85 re PR rtl-optimization/48143 (ICE: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7114 with custom flags)
PR rtl-optimization/48143
        * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
        (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
        sse2_cvtps2pd): Likewise.

From-SVN: r171286
2011-03-22 15:33:53 +03:00
Andreas Krebbel
d89afca5b4 recog.c (canonicalize_change_group): Use validate_unshare_change.
2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* recog.c (canonicalize_change_group): Use validate_unshare_change.

From-SVN: r171285
2011-03-22 11:19:11 +00:00
Richard Guenther
f471fe729f gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not a valid RHS.
2011-03-22  Richard Guenther  <rguenther@suse.de>

	* gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
	a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
	* tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
	and REALIGN_LOAD_EXPR.
	(verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
	DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
	* expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
	DOT_PROD_EXPR case ...
	(expand_expr_real_2): ... here.
	* gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
	and REALIGN_LOAD_EXPR.
	* tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
	* tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
	(vect_create_epilog_for_reduction): Likewise.
	(vectorizable_reduction): Likewise.
	* tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
	* tree-vect-stmts.c (vectorizable_load): Likewise.

From-SVN: r171284
2011-03-22 11:12:57 +00:00
Eric Botcazou
d1d879b1f4 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
From-SVN: r171283
2011-03-22 10:26:52 +00:00
Eric Botcazou
f2f81d5708 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
From-SVN: r171282
2011-03-22 10:14:07 +00:00
Andreas Krebbel
ab081dd623 s390.c (s390_delegitimize_address): Fix offset handling for PLTOFF/GOTOFF.
2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_delegitimize_address): Fix offset
	handling for PLTOFF/GOTOFF.

From-SVN: r171281
2011-03-22 09:07:26 +00:00
Nick Clifton
6fd5332b45 cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove trailing backslash from the end of the macro definition.
* config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
	trailing backslash from the end of the macro definition.

From-SVN: r171280
2011-03-22 09:04:11 +00:00
Andreas Krebbel
01841ac091 s390.c (s390_delegitimize_address): Handle PLTOFF and PLT unspecs.
2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
	and PLT unspecs.

From-SVN: r171279
2011-03-22 07:29:53 +00:00
GCC Administrator
7f2acfca7d Daily bump.
From-SVN: r171278
2011-03-22 00:19:00 +00:00
Ian Lance Taylor
8046b66539 libgo: Add GOTESTFLAGS variable used when testing.
From Rainer Orth.

From-SVN: r171272
2011-03-21 22:01:53 +00:00
Richard Sandiford
2ef6ce06d3 expr.h (prepare_operand): Move to...
gcc/
2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>

	* expr.h (prepare_operand): Move to...
	* optabs.h (prepare_operand): ...here and change the insn code
	parameter from "int" to "enum insn_code".
	(insn_operand_matches): Declare.
	* expr.c (init_expr_target): Use insn_operand_matches.
	(compress_float_constant): Likewise.
	* function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
	* optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
	(emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
	(have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn): Likewise.
	(gen_cond_trap): Likewise.
	(prepare_operand): Likewise.  Change icode to an insn_code.
	(insn_operand_matches): New function.
	* reload.c (find_reloads_address_1): Use insn_operand_matches.
	* reload1.c (gen_reload): Likewise.
	* targhooks.c (default_secondary_reload): Likewise.

From-SVN: r171270
2011-03-21 21:38:56 +00:00
Uros Bizjak
9a96da32eb alpha.md (unspec): New define_c_enum.
* config/alpha/alpha.md (unspec): New define_c_enum.
	(unspecv): Ditto.

From-SVN: r171268
2011-03-21 21:50:35 +01:00
Uros Bizjak
9e43ad6805 alpha.c (alpha_pad_noreturn): Do not emit an unop between a call and its CALL_ARG_LOCATION note.
* config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
	between a call and its CALL_ARG_LOCATION note.

From-SVN: r171266
2011-03-21 21:09:45 +01:00
Jack Howarth
5513ecd55e prune.exp (prune_gcc_output): Prune "could not create compact unwind for" warnings.
gcc:
2011-03-21  Jack Howarth  <howarth@bromo.med.uc.edu>

	* lib/prune.exp (prune_gcc_output): Prune "could not create
	compact unwind for" warnings.

libstdc++:
2011-03-21  Jack Howarth  <howarth@bromo.med.uc.edu>

	* testsuite/lib/prune.exp (libstdc++-dg-prune): Prune "could not
	create compact unwind for" warnings.

From-SVN: r171263
2011-03-21 19:13:05 +00:00
Jakub Jelinek
e3196332a7 baseline_symbols.txt: Update.
* config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
	* config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
	Likewise.
	* config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
	* config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.

From-SVN: r171258
2011-03-21 20:06:11 +01:00
Jakub Jelinek
c75bd36be4 testsuite_abi.cc (check_version): Set incompatible even when adding symbols to CXXABI_1.3...
* testsuite/util/testsuite_abi.cc (check_version): Set incompatible
	even when adding symbols to CXXABI_1.3, GLIBCXX_LDBL_3.4 and
	CXXABI_LDBL_1.3 versions.

From-SVN: r171257
2011-03-21 20:00:52 +01:00
Benjamin Kosnik
6374564070 * config/abi/pre/gnu.ver: Remove typeinfo name exports for C++0x types.
From-SVN: r171256
2011-03-21 20:00:03 +01:00
Jakub Jelinek
00a013f5a2 gnu.ver (CXXABI_1.3): Don't export _ZT[IS][PK]*[no].
* config/abi/pre/gnu.ver (CXXABI_1.3): Don't export _ZT[IS][PK]*[no].
	(CXXABI_1.3.5): Export _ZTI[PK]*[no].

From-SVN: r171255
2011-03-21 19:59:12 +01:00
Eric Botcazou
bf7eefab5f re PR bootstrap/48216 (IRIX 6 Ada bootstrap broken: gnu_decl uninitialized in gcc-interface/decl.c:elaborate_expression_1)
PR bootstrap/48216
	* gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.

From-SVN: r171254
2011-03-21 18:19:47 +00:00
Eric Botcazou
31408f60e9 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
From-SVN: r171253
2011-03-21 18:04:50 +00:00
Jakub Jelinek
126e660935 re PR c/42544 (Bad codegen with signed short cast to unsigned int, then promoted to unsigned long long)
PR c/42544
	PR c/48197
	* c-common.c (shorten_compare): If primopN is first sign-extended
	to opN and then zero-extended to result type, set primopN to opN.

	* gcc.c-torture/execute/pr42544.c: New test.
	* gcc.c-torture/execute/pr48197.c: New test.

From-SVN: r171252
2011-03-21 18:57:34 +01:00
Daniel Jacobowitz
9dfd55f55b unwind-arm.c (__gnu_unwind_pr_common): Correct test for barrier handlers.
2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>

	gcc/
	* config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
	for barrier handlers.

From-SVN: r171251
2011-03-21 17:19:19 +00:00
Ramana Radhakrishnan
732f37c65b Fix PR number in changelog entry.
From-SVN: r171250
2011-03-21 17:11:12 +00:00
Michael Meissner
f3c33d9dc8 Make UNSPEC/UNSPECV constants use the enum; Fix 48192; Add test case for 48053
From-SVN: r171247
2011-03-21 16:21:30 +00:00
Richard Guenther
ac43f77436 params.def (lto-min-partition): Fix typo.
2011-03-21  Richard Guenther  <rguenther@suse.de>

	* params.def (lto-min-partition): Fix typo.

From-SVN: r171246
2011-03-21 15:33:46 +00:00
Richard Guenther
411cdbd841 re PR c/47939 (Missing DW_TAG_typedef for qualified types)
2011-03-21  Richard Guenther  <rguenther@suse.de>

	PR c/47939
	* c-decl.c (grokdeclarator): Drop to the main variant only
	for array types.  Drop flag_gen_aux_info check.

	* gcc.dg/debug/dwarf2/pr47939-1.c: New testcase.
	* gcc.dg/debug/dwarf2/pr47939-2.c: Likewise.
	* gcc.dg/debug/dwarf2/pr47939-3.c: Likewise.
	* gcc.dg/debug/dwarf2/pr47939-4.c: Likewise.

From-SVN: r171245
2011-03-21 15:32:21 +00:00
Richard Guenther
1cd9e4164e re PR translation/47911 (gettext string typo: params.def:861: parition)
2011-03-21  Richard Guenther  <rguenther@suse.de>

	PR translation/47911
	* params.def (lto-partitions): Fix typo.
	(lto-min-partition): Fix wording.

From-SVN: r171244
2011-03-21 15:30:03 +00:00
Andreas Tobler
ada5ad6738 t-freebsd: Remove duplication from file.
2011-03-21  Andreas Tobler  <andreast@fgznet.ch>

	* config/rs6000/t-freebsd: Remove duplication from file.

From-SVN: r171243
2011-03-21 16:28:22 +01:00
Richard Guenther
f9613c9a91 re PR middle-end/47661 (predict is confused by FP comparisons when math can trap)
2011-03-21  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47661
	* gimple.c (is_gimple_condexpr): Use tree_could_throw_p.

From-SVN: r171236
2011-03-21 13:50:26 +00:00
Richard Guenther
9bfbc1ebb5 re PR lto/48210 (ICE: SIGFPE with -flto --param lto-partitions=0 on basic code)
2011-03-21  Richard Guenther  <rguenther@suse.de>

	PR lto/48210
	* params.def (lto-partitions): Require at least 1 partition.

From-SVN: r171234
2011-03-21 13:42:27 +00:00
Rainer Orth
5045335ee8 14220.cc: Don't xfail on sparc*-sun-solaris2.10 && lp64.
* testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on
	sparc*-sun-solaris2.10 && lp64.

From-SVN: r171231
2011-03-21 13:38:19 +00:00
Rainer Orth
a226808459 gthr-solaris.h: Remove.
gcc:
	* gthr-solaris.h: Remove.
	* gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
	* config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
	(LIB_SPEC): Likewise.
	* config/sol2.opt (threads): Remove.
	* config.gcc (i[34567]86-*-solaris2*): Remove solaris threads
	support.
	(sparc*-*-solaris2*): Likewise.
	* configure.ac (enable_threads): Enable solaris support.
	* configure: Regenerate.
	* doc/invoke.texi (Option Summary, Solaris 2 Options): Remove
	-threads.
	* doc/install.texi (Configuration, --enable-threads=lib): Remove
	solaris.

	boehm-gc:
	* configure.ac (THREADS): Remove solaris.
	* configure: Regenerate.

	libjava:
	* configure.ac (THREADS): Remove solaris.
	* configure: Regenerate.

From-SVN: r171229
2011-03-21 12:33:34 +00:00
Eric Botcazou
ef0feeb2f6 decl.c (components_to_record): Add REORDER parameter...
* gcc-interface/decl.c (components_to_record): Add REORDER parameter,
	rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
	to the end of the list.  Adjust recursive call.  Rename local variable.
	If REORDER is true, reorder components of the record type.
	(gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
	components_to_record and adjust the parameter list.

From-SVN: r171228
2011-03-21 12:31:12 +00:00
Rainer Orth
c43d9a1b38 config.gcc: Obsolete *-*-solaris2.8*.
* config.gcc: Obsolete *-*-solaris2.8*.
	* doc/install.texi (Specific, *-*-solaris2*): Document it.

From-SVN: r171226
2011-03-21 12:28:38 +00:00
Rainer Orth
474ee90816 re PR bootstrap/48120 (libpwl test must use g++)
PR bootstrap/48120:
	* configure.ac (pwllib): Use LIBS instead of LDFLAGS.
	Add -lstdc++ -lm to LIBS.
	* configure: Regenerate.

From-SVN: r171225
2011-03-21 12:26:30 +00:00
Rainer Orth
bf382f5fe4 re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)
libgfortran:
	PR bootstrap/48135
	* configure.ac (gfortran_use_symver): Handle --disable-symvers.
	* configure: Regenerate.

	libgomp:
	PR bootstrap/48135
	* acinclude.m4 (enable_symvers): Handle --disable-symvers.
	* configure: Regenerate.

	libjava:
	PR bootstrap/48135
	* configure.ac (libjava_cv_anon_version_script): Handle
	--disable-symvers.
	* configure: Regenerate.

	libquadmath:
	PR bootstrap/48135
	* configure.ac (quadmath_use_symver): Handle --disable-symvers.
	* configure: Regenerate.

	libssp:
	PR bootstrap/48135
	* configure.ac (ssp_use_symver): Handle --disable-symvers.
	* configure: Regenerate.

From-SVN: r171224
2011-03-21 12:24:17 +00:00
Rainer Orth
084239f467 re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)
contrib:
	PR bootstrap/48135
	* make_sunver.pl: Don't use File::Glob.

	gcc:
	PR bootstrap/48135
	* doc/install.texi (Prerequisites, Perl): Remove Glob.pm
	reference.  Solaris 8 perl works.

From-SVN: r171223
2011-03-21 12:17:10 +00:00
Rainer Orth
64cadbe75a re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)
PR bootstrap/48135
	* doc/install.texi (Prerequisites): Move jar etc. up.
	Explain support library version requirements.

From-SVN: r171221
2011-03-21 12:12:19 +00:00
Eric Botcazou
646f94144c decl.c (elaborate_expression_1): When optimization is disabled, use the variable for bounds of loop iteration scheme.
* gcc-interface/decl.c (elaborate_expression_1): When optimization is
	disabled, use the variable for bounds of loop iteration scheme.

From-SVN: r171220
2011-03-21 12:11:06 +00:00
Rainer Orth
eb97510932 re PR bootstrap/48135 (build fails on Solaris2.8 due to Glob.pm not found within /usr/perl5)
PR bootstrap/48135
	* doc/install.texi (Prerequisites): Move Perl to build
	requirements.  Always necessary on Solaris 2 with Sun ld.

From-SVN: r171218
2011-03-21 12:09:28 +00:00
Rainer Orth
8a509ffd28 install.texi (Specific, [...]): Update for binutils 2.21.
* doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
	binutils 2.21.
	(Specific, i?86-*-solaris2.[89]): Likewise.
	(Specific, i?86-*-solaris2.10): Likewise.
	(Specific, mips-sgi-irix6): Likewise.
	(Specific, *-*-solaris2*): Remove Sun Studio download URL.
	Update for binutils 2.21.

From-SVN: r171216
2011-03-21 12:03:41 +00:00
Rainer Orth
8fbc58a113 configure.ac (gcc_cv_lto_plugin): Fix typo.
* configure.ac (gcc_cv_lto_plugin): Fix typo.
	Allow -fuse-linker-plugin for non-default plugin linker.
	* configure: Regenerate.

From-SVN: r171215
2011-03-21 10:57:51 +00:00
Nicola Pero
7e84ad0b41 In gcc/: 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR bootstrap/48167
	* gengtype.c (files_rules): Added rule for cp/parser.h.

In gcc/objcp/:
2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR bootstrap/48167
	* Make-lang.in (START_HDRS): Added CXX_PARSER_H and
	CXX_PRETTY_PRINT_H.
	* config-lang.in (gtfiles): Added cp/parser.h and reorganized list
	so that it is more obvious that it is identical to the C++ one
	with the addition of some files at the end.

From-SVN: r171214
2011-03-21 10:25:38 +00:00
Jakub Jelinek
2f36e14bfd re PR target/48213 (ICE in simplify_subreg called from s390_delegitimize_address)
PR target/48213
	* config/s390/s390.c (s390_delegitimize_address): Don't call
	lowpart_subreg if orig_x has BLKmode.

	* gcc.dg/pr48213.c: New test.

From-SVN: r171211
2011-03-21 10:25:47 +01:00
Kai Tietz
5050afdf0f ChangeLog gcc/c-family
2011-03-21  Kai Tietz  <ktietz@redhat.com>

	PR target/12171
	* c-pretty-print.c (pp_c_specifier_qualifier_list):
	Display allowed attributes for function pointer types.
	(pp_c_attributes_display): New function to display
	attributes having affects_type_identity flag set to true.
	* c-pretty-print.h (pp_c_attributes_display): New prototype.

ChangeLog gcc/cp

2011-03-21  Kai Tietz  <ktietz@redhat.com>

	PR target/12171
	* cxx-pretty-print.c (pp_cxx_ptr_operator):
	Display allowed attributes for function pointer types.
	* error.c (dump_type_prefix): Likewise.

From-SVN: r171210
2011-03-21 09:32:50 +01:00