Commit Graph

106804 Commits

Author SHA1 Message Date
Joseph Myers
bab79a4029 * common.opt (nostartfiles): New Driver option.
From-SVN: r170067
2011-02-12 01:16:08 +00:00
GCC Administrator
9f91c04155 Daily bump.
From-SVN: r170066
2011-02-12 00:18:15 +00:00
Xinliang David Li
1bbc6693c9 Fix PR47707
From-SVN: r170062
2011-02-12 00:12:52 +00:00
Eric Botcazou
1da7d8c0d3 re PR tree-optimization/47420 (ICE in calc_dfs_tree during RESX lowering)
PR tree-optimization/47420
	* ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.

From-SVN: r170061
2011-02-11 21:19:16 +00:00
Tobias Burnus
a26e8df4dc re PR fortran/47550 (PURE with VALUE and w/o INTENT: add gfc_notify_std (GFC_STD_F2008 ?)
2011-02-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47550
        * resolve.c (resolve_formal_arglist): PURE with VALUE
        and no INTENT: Add -std= diagnostics.

2011-02-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47550
        * gfortran.dg/pure_formal_2.f90: New.

From-SVN: r170060
2011-02-11 22:07:17 +01:00
Pat Haugen
3f82421f9c re PR rtl-optimization/47614 (cpu2000 benchmark 301.apsi fails with revision 169782)
PR rtl-optimization/47614
	* rtl.h (check_for_inc_dec): Declare.
	* dse.c (check_for_inc_dec): Externalize...
	* postreload.c (reload_cse_simplify): ...use it before deleting stmt.
	(reload_cse_simplify_operands): Don't simplify opnds with side effects.

	* testsuite/gfortran.dg/pr47614.f: New.

From-SVN: r170059
2011-02-11 20:52:55 +00:00
Ralf Wildenhues
f33d8408d0 Fix typo in toplevel configure.ac: PPL error message.
/:
	* configure.ac: Remove extra bracket.
	* configure: Regenerate.

From-SVN: r170058
2011-02-11 18:59:10 +00:00
Joseph Myers
4df47bca15 re PR driver/47678 (missing error message for -I)
PR driver/47678
	* gcc.c (main): Do not compile inputs if there were errors in
	option handling.
	* opts-common.c (read_cmdline_option): Check for wrong language
	after other error checks.

testsuite:
	* gcc.dg/opts-6.c: New test.

From-SVN: r170056
2011-02-11 18:13:11 +00:00
Dodji Seketeli
1c31ca71a7 Revert "Fix PR c++/47172"
gcc/cp/

	* pt.c (finish_call_expr, dependent_type_p)
	(type_dependent_expression_p): Revert the previous attempt to fix
	PR c++/47172.

gcc/testsuite/

    	* g++.dg/template/inherit6.C: Reverted.

From-SVN: r170055
2011-02-11 18:27:00 +01:00
Nathan Froyd
61502ca837 cgraph.c: Fix comment typos.
* cgraph.c: Fix comment typos.
	* cgraph.h: Likewise.
	* cgraphunit.c: Likewise.
	* ipa-cp.c: Likewise.
	* ipa-inline.c: Likewise.
	* ipa-prop.c: Likewise.
	* ipa-pure-const.c: Likewise.
	* ipa-ref.c: Likewise.
	* ipa-reference.c: Likewise.

From-SVN: r170052
2011-02-11 15:16:46 +00:00
Jakub Jelinek
d50c5e0c69 re PR debug/47684 (-fcompare-debug failure with -O3)
PR debug/47684
	* tree-predcom.c (single_nonlooparound_use): Ignore debug uses.

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

From-SVN: r170051
2011-02-11 15:24:26 +01:00
Jakub Jelinek
b63f974ef2 re PR target/47665 (ICE in trunc_int_for_mode)
PR target/47665
	* combine.c (make_compound_operation): Only change shifts into
	multiplication for SCALAR_INT_MODE_P.

	* gcc.target/i386/pr47665.c: New test.

From-SVN: r170050
2011-02-11 15:19:44 +01:00
Rainer Orth
84b44e0fe4 re PR target/47629 (gcc.target/i386/pr47312.c fails to link on Solaris 9)
PR target/47629
	* gcc.target/i386/pr47312.c: Use dg-require-effective-target
	c99_runtime, dg-add-options c99_runtime.
	(main): Use __asm__.

From-SVN: r170049
2011-02-11 11:09:21 +00:00
Rainer Orth
10968227c8 Added forgotten ChangeLog entry.
From-SVN: r170048
2011-02-11 11:08:44 +00:00
Johannes Singler
0ad84c3fbb re PR libstdc++/47433 (libstdc++ parallel mode calls std::swap explicitely)
2011-02-11  Johannes Singler  <singler@kit.edu>

        PR libstdc++/47433
        * include/parallel/losertree.h
        (_LoserTreeUnguarded<>::__delete_min_insert):
        Add missing "using std::swap;", as for other variants.

From-SVN: r170047
2011-02-11 10:11:41 +00:00
Rainer Orth
6dd2a13c9e i gcc/testsuite:
PR testsuite/47400
	* lib/target-supports.exp (check_ascii_locale_available): New proc.
	* lib/target-supports-dg.exp (dg-require-ascii-locale): New proc.
	* gcc.dg/attr-alias-5.c: Use dg-require-ascii-locale.
	* gcc.dg/ucnid-10.c: Likewise.
	* gcc.dg/ucnid-13.c: Likewise.
	* gcc.dg/ucnid-7.c: Likewise.
	* gcc.dg/ucnid-8.c: Likewise.
	* Adapt dg-warning line number.

	gcc:
	PR testsuite/47400
	* doc/sourcebuild.texi (Require Support): Document
	dg-require-ascii-locale.

From-SVN: r170046
2011-02-11 10:01:29 +00:00
Dodji Seketeli
e60b3ac94f re PR c++/47172 ([C++0x] cannot call member function without object)
Fix PR c++/47172

gcc/cp/

	PR c++/47172
	* pt.c (finish_call_expr): Consider a call expression that has a
	dependent "this" pointer as being dependent.  Add comments.
	(dependent_type_p, type_dependent_expression_p): Update comments.

gcc/testsuite/

	* g++.dg/template/inherit6.C: New test.

From-SVN: r170045
2011-02-11 08:33:53 +01:00
Ian Lance Taylor
942e57396b Don't crash on if statement with erroneous conditional.
From-SVN: r170044
2011-02-11 06:36:50 +00:00
Ian Lance Taylor
ced2ec3b26 Don't get confused using type of erronous binary expression.
From-SVN: r170043
2011-02-11 06:34:57 +00:00
Mingjie Xing
4a087ccf22 Fix missing parentheses.
From-SVN: r170041
2011-02-11 02:47:33 +00:00
Benjamin Kosnik
4bfebd814d Makefile.am (sources): Add regex.cc.
2011-02-10  Benjamin Kosnik  <bkoz@redhat.com>

	* src/Makefile.am (sources): Add regex.cc.
	* src/Makefile.in: Regenerate.
	* src/regex.cc: New.
	* include/bits/regex_error.h (error_type): Use constexpr.
	(regex_error): Move ctor and dtor out of line.

	* testsuite/28_regex/03_requirements: To...
	* testsuite/28_regex/requirements: ... this.
	* testsuite/28_regex/04_header: To...
	* testsuite/28_regex/headers: ... this.
	* testsuite/28_regex/05_constants: To...
	* testsuite/28_regex/constants: ... this.
	* testsuite/28_regex/06_exception_type: To...
	* testsuite/28_regex/regex_error: ... this.
	* testsuite/28_regex/07_traits: To...
	* testsuite/28_regex/traits: ... this.
	* testsuite/28_regex/08_basic_regex: To...
	* testsuite/28_regex/basic_regex: ... this.
	* testsuite/28_regex/09_sub_match: To...
	* testsuite/28_regex/sub_match: ... this.
	* testsuite/28_regex/10_match_results: To...
	* testsuite/28_regex/match_results: ... this.
	* testsuite/28_regex/11_algorithms: To...
	* testsuite/28_regex/algorithms: ... this.
	* testsuite/28_regex/12_iterators: To...
	* testsuite/28_regex/iterators: ... this.

From-SVN: r170039
2011-02-11 01:24:35 +00:00
Benjamin Kosnik
cedf52d247 Makefile.am (sources): Add regex.cc.
2011-02-10  Benjamin Kosnik  <bkoz@redhat.com>

	* src/Makefile.am (sources): Add regex.cc.
	* src/Makefile.in: Regenerate.
	* src/regex.cc: New.
	* include/bits/regex_error.h (error_type): Use constexpr.
	(regex_error): Move ctor and dtor out of line.

	* testsuite/28_regex/03_requirements: To...
	* testsuite/28_regex/requirements: ... this.
	* testsuite/28_regex/04_header: To...
	* testsuite/28_regex/headers: ... this.
	* testsuite/28_regex/05_constants: To...
	* testsuite/28_regex/constants: ... this.
	* testsuite/28_regex/06_exception_type: To...
	* testsuite/28_regex/regex_error: ... this.
	* testsuite/28_regex/07_traits: To...
	* testsuite/28_regex/traits: ... this.
	* testsuite/28_regex/08_basic_regex: To...
	* testsuite/28_regex/basic_regex: ... this.
	* testsuite/28_regex/09_sub_match: To...
	* testsuite/28_regex/sub_match: ... this.
	* testsuite/28_regex/10_match_results: To...
	* testsuite/28_regex/match_results: ... this.
	* testsuite/28_regex/11_algorithms: To...
	* testsuite/28_regex/algorithms: ... this.
	* testsuite/28_regex/12_iterators: To...
	* testsuite/28_regex/iterators: ... this.

From-SVN: r170038
2011-02-11 01:23:10 +00:00
Ian Lance Taylor
b3a2810309 Don't crash on invalid comparison of complex constants.
From-SVN: r170037
2011-02-11 00:19:15 +00:00
GCC Administrator
d3c839259b Daily bump.
From-SVN: r170036
2011-02-11 00:18:11 +00:00
Ian Lance Taylor
c7f4431d45 Don't crash on erroneous thunk.
From-SVN: r170031
2011-02-10 23:58:36 +00:00
Ian Lance Taylor
4a299bf4ff libgo/configure.ac: Use AC_COMPILE_IFELSE, not AC_PREPROC_IFELSE.
From-SVN: r170030
2011-02-10 23:43:42 +00:00
Ian Lance Taylor
d5f3d14a42 Don't crash on redefined variable.
From-SVN: r170029
2011-02-10 23:38:50 +00:00
Ian Lance Taylor
8629c99851 Don't crash when referring to method other than calling it.
From-SVN: r170028
2011-02-10 23:07:36 +00:00
Jonathan Wakely
0cf1541f0c re PR libstdc++/47662 (-fno-operator-names no longer works with STL headers)
2011-02-10  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/47662
	* include/bits/c++config: Do not use alternative token.
	* testsuite/17_intro/headers/c++1998/operator_names.cc: New.

From-SVN: r170026
2011-02-10 22:40:53 +00:00
Ian Lance Taylor
6df1f72e94 Determine types in global variable preinit blocks.
From-SVN: r170025
2011-02-10 22:35:32 +00:00
Jonathan Wakely
a14dd08adf future.cc (future_error_category::message): Handle no_state.
2011-02-10  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* src/future.cc (future_error_category::message): Handle no_state.

From-SVN: r170024
2011-02-10 22:11:08 +00:00
Ian Lance Taylor
e372156c05 Don't get confused when mixing different abstract types in binary expr.
From-SVN: r170023
2011-02-10 21:46:20 +00:00
DJ Delorie
a440316492 m32c.c (m32c_option_override): Disable -fcombine-stack-adjustments until flag value tracking and compare...
* config/m32c/m32c.c (m32c_option_override): Disable
-fcombine-stack-adjustments until flag value tracking and compare
optimization can be rewritten.

From-SVN: r170022
2011-02-10 14:41:26 -05:00
David Edelsohn
d0f21cd6c5 - Add Bugzilla PRs to ChangeLog reverting AIX long double size.
From-SVN: r170021
2011-02-10 14:39:53 -05:00
Ian Lance Taylor
0f9f95adea Don't crash on field reference to erroneous struct.
From-SVN: r170020
2011-02-10 19:21:20 +00:00
Ian Lance Taylor
26d061fc23 Don't crash on make of slice of erroneous type.
From-SVN: r170019
2011-02-10 19:01:25 +00:00
Uros Bizjak
ea4c3e656e parity-1.c: Use -march=k8.
* gcc.target/i386/parity-1.c: Use -march=k8.
	* gcc.target/i386/parity-2.c: Ditto.
	* gcc.target/i386/vecinit-1.c: Ditto.
	* gcc.target/i386/vecinit-2.c: Ditto.

From-SVN: r170018
2011-02-10 20:01:09 +01:00
Ian Lance Taylor
7b8ec21790 Don't crash checking for unexported self-referential pointer field.
From-SVN: r170017
2011-02-10 18:21:58 +00:00
Paolo Carlini
a3fa23e44b 47628.cc: Do not test in C++0x mode.
2011-02-10  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/23_containers/multimap/modifiers/erase/47628.cc: Do
	not test in C++0x mode.
	* testsuite/23_containers/map/modifiers/erase/47628.cc: Likewise.
	* testsuite/20_util/headers/utility/synopsis.cc: Tweak to work
	in C++0x mode too.

From-SVN: r170016
2011-02-10 17:43:51 +00:00
Peter Bergner
4fac45bdb4 linux64.h (PROCESSOR_DEFAULT): Change to PROCESSOR_POWER7.
* config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
	PROCESSOR_POWER7.
	(PROCESSOR_DEFAULT64): Likewise.

From-SVN: r170015
2011-02-10 11:30:10 -06:00
Rainer Orth
7f2d4e5139 re PR target/46610 (gcc.target/mips/save-restore-?.c ICEs on IRIX 6.5: unrecognizable insn)
PR target/46610
	* gcc.target/mips/save-restore-1.c: Skip on mips-sgi-irix6*.
	* gcc.target/mips/save-restore-3.c: Likewise.
	* gcc.target/mips/save-restore-4.c: Likewise.
	* gcc.target/mips/save-restore-5.c: Likewise.

	PR target/47683
	* g++.dg/tree-prof/partition1.C: Skip on mips-sgi-irix*.
	* g++.dg/tree-prof/partition2.C: Likewise.

From-SVN: r170012
2011-02-10 17:14:15 +00:00
Jason Merrill
8e8d9a6b00 inline-3.C: Use a normal function rather than misdeclare std::puts.
* g++.dg/tree-ssa/inline-3.C: Use a normal function
	rather than misdeclare std::puts.

From-SVN: r170011
2011-02-10 11:30:38 -05:00
Jason Merrill
6dd00ea9e3 vla1.C: Adjust for C++0x mode.
* g++.dg/ext/vla1.C: Adjust for C++0x mode.
	* g++.dg/other/warning1.C: Likewise.
	* g++.old-deja/g++.bugs/900119_01.C: Likewise.
	* g++.old-deja/g++.gb/scope06.C: Likewise.
	* g++.old-deja/g++.law/cvt11.C: Likewise.
	* g++.old-deja/g++.law/init1.C: Likewise.
	* g++.dg/abi/mangle26.C: Likewise.

From-SVN: r170010
2011-02-10 11:30:29 -05:00
Jason Merrill
be771f2527 decl.c (cp_make_fname_decl): Set DECL_THIS_STATIC at toplevel.
* decl.c (cp_make_fname_decl): Set DECL_THIS_STATIC at toplevel.
	* semantics.c (finish_fname): Only return the name if we're in
	a function.

From-SVN: r170009
2011-02-10 11:30:20 -05:00
Jason Merrill
c51dc544b1 decl.c (build_enumerator): Don't perform integral promotions on non-integral constants.
* decl.c (build_enumerator): Don't perform integral promotions on
	non-integral constants.

From-SVN: r170008
2011-02-10 11:30:08 -05:00
Jason Merrill
cb8384a3f5 * cvt.c (convert_to_void): Handle null op1.
From-SVN: r170007
2011-02-10 11:29:58 -05:00
Jason Merrill
69f36ba6bd class.c (type_has_constexpr_default_constructor): Make sure the caller stripped an enclosing array.
* class.c (type_has_constexpr_default_constructor): Make sure the
	caller stripped an enclosing array.
	* init.c (perform_member_init): Strip arrays before calling it.

From-SVN: r170006
2011-02-10 11:29:49 -05:00
Jason Merrill
5b883ca61c re PR c++/47511 ([C++0x] ICE: unexpected ast of kind template_decl in potential_constant_expression_1, at cp/semantics.c:7711)
PR c++/47511
	* semantics.c (potential_constant_expression_1): Handle TEMPLATE_DECL.

From-SVN: r170005
2011-02-10 11:29:39 -05:00
Richard Henderson
72602cd16b predicates.md (rx_zs_comparison_operator): Revert change from 2011-02-03.
* config/rx/predicates.md (rx_zs_comparison_operator): Revert
        change from 2011-02-03.
        * config/rx/rx.c (flags_from_code): Likewise.
        (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
        is valid, n/pz otherwise.
        (rx_select_cc_mode): Return CCmode if Y is not zero.

From-SVN: r170004
2011-02-10 08:03:48 -08:00
Richard Guenther
ea57f5739f tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
2011-02-10  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT,
	not 8.

From-SVN: r170003
2011-02-10 15:29:52 +00:00