Commit Graph

106963 Commits

Author SHA1 Message Date
Joseph Myers
c686978966 linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and -mno-fpu, not -fpu and -no-fpu.
* config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
	-mno-fpu, not -fpu and -no-fpu.
	* config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
	* config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.

From-SVN: r170246
2011-02-17 13:57:21 +00:00
Paolo Carlini
11514ce0fb re PR libstdc++/47776 (New libstc++ test failures)
2011-02-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/47776
	* testsuite/ext/vstring/hash/char/1.cc: Fix.
	* testsuite/ext/vstring/hash/wchar_t/1.cc: Likewise.

From-SVN: r170242
2011-02-17 08:38:11 +00:00
Uros Bizjak
fbf4bfd3f3 re PR target/43653 (ICE at reload1.c:1188 with -O1 -ftree-vectorize and empty struct)
PR target/43653
	* config/i386/i386.c (ix86_secondary_reload): Handle SSE
	input reload with PLUS RTX.

testsuite/ChangeLog:

	PR target/43653
	* gcc.target/i386/pr43653.c: New test.

From-SVN: r170241
2011-02-17 09:29:50 +01:00
Dodji Seketeli
1770aeed11 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: r170240
2011-02-17 07:50:35 +01:00
Jerry DeLisle
fc2c5998f7 re PR libfortran/47567 (Wrong output for small absolute values with F editing)
2011-02-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47567
	* io/list_read.c (read_logical): Check for end of line before calling
	eat_line. (read_integer): Likewise. (parse_real): Don't unget the
	separator. Check for end of line before calling	eat_line.
	(read_complex): Allow line-end before and after parenthesis and comma.
	Check for end of line before calling eat_line. (read_real): Check for
	end of line before calling eat_line.

From-SVN: r170239
2011-02-17 05:19:50 +00:00
Jonathan Wakely
18b08cb9eb regex.h (basic_regex::traits_type): Add typedef.
2011-02-17  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/bits/regex.h (basic_regex::traits_type): Add typedef.
	(basic_regex::basic_regex(basic_regex&&)): Add noexcept.
	(basic_regex::operator=(basic_regex&&)): Likewise.
	(basic_regex::assign(basic_regex&&)): Likewise.
	(operator==(sub_match,...)): Implement DR 1181.
	(match_results::match_results(match_results&&)): Define.
	(match_results::operator=(const match_results&)): Fix parameter type.
	(match_results::operator=(match_results&&)): Define.

From-SVN: r170238
2011-02-17 02:39:16 +00:00
Joseph Myers
70be5dc7a7 mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead of InverseVar(MDMX).
* config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
	of InverseVar(MDMX).

From-SVN: r170237
2011-02-17 01:59:04 +00:00
Jonathan Wakely
948ef71060 re PR libstdc++/47724 ([C++0x] Regex string anchors cause segfault)
2011-02-17  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/47724
	* include/bits/regex_compiler.h (_Scanner::_M_advance): Do not treat
	line anchors as metacharacters.
	* testsuite/28_regex/basic_regex/ctors/47724.cc: New.

From-SVN: r170236
2011-02-17 01:47:21 +00:00
Paolo Carlini
bde8d7f701 re PR libstdc++/47773 (Versatile string lacks a default hash function)
2011-02-16  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/47773
	* include/ext/vstring.h (hash<__gnu_cxx::__vstring>,
	hash<__gnu_cxx::__wvstring>, hash<__gnu_cxx::__u16vstring>,
	hash<__gnu_cxx::__u32vstring>): Add.
	* testsuite/ext/vstring/hash/char/1.cc: New.
	* testsuite/ext/vstring/hash/wchar_t/1.cc: Likewise.

From-SVN: r170235
2011-02-17 01:24:37 +00:00
GCC Administrator
a3daf81795 Daily bump.
From-SVN: r170234
2011-02-17 00:18:37 +00:00
Joseph Myers
30b1646ede embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of --m4-340.
* config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
	--m4-340.

From-SVN: r170230
2011-02-17 00:15:11 +00:00
Joseph Myers
ab7b71e9ca * config/mn10300/mn10300.opt (mno-crt0): New.
From-SVN: r170228
2011-02-16 23:22:16 +00:00
Joseph Myers
466f3f08ff * config/m68k/uclinux.opt (static-libc): New Driver option.
From-SVN: r170227
2011-02-16 23:02:01 +00:00
Joseph Myers
8226cd7b77 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
From-SVN: r170226
2011-02-16 22:57:55 +00:00
Jonathan Wakely
8c53c3ae5a regex.h (match_results::format): Use char_traits.
2011-02-16  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/bits/regex.h (match_results::format): Use char_traits.

From-SVN: r170225
2011-02-16 22:29:15 +00:00
Joseph Myers
45cab1d72e lm32.h (ASM_SPEC): Use %{muser-enabled} instead of %{muser-extend-enabled}.
* config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
	%{muser-extend-enabled}.

From-SVN: r170224
2011-02-16 22:23:01 +00:00
Janus Weil
528622fd85 re PR fortran/47745 ([OOP] Segfault with CLASS(*) and derived type dummy arguments)
2011-02-16  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47745
	* class.c (gfc_build_class_symbol): Set 'class_ok' attribute.
	* decl.c (build_sym,attr_decl1): Move setting of 'class_ok' into
	'gfc_build_class_symbol'.
	(gfc_match_decl_type_spec): Reject unlimited polymorphism.
	* interface.c (matching_typebound_op): Check for 'class_ok' attribute.
	* match.c (select_type_set_tmp): Move setting of 'class_ok' into
	'gfc_build_class_symbol'.
	* primary.c (gfc_variable_attr): Check for 'class_ok' attribute.

2011-02-16  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47745
	* gfortran.dg/class_39.f03: New.

From-SVN: r170223
2011-02-16 21:51:56 +01:00
Dodji Seketeli
ebcb4bc304 re PR c++/47326 ([C++0x] ICE in tsubst_copy (triggered by dependency of return type on parameter pack size))
PR c++/47326

gcc/cp/

	PR c++/47326
	* pt.c (tsubst_copy)<case SIZEOF_EXPR>: Ensure that even pack
	expansion arguments are not evaluated.

gcc/testsuite/

	PR c++/47326
	* g++.dg/cpp0x/variadic106.C: New test.

From-SVN: r170222
2011-02-16 21:45:15 +01:00
Benjamin Kosnik
036e0d4f8f atomic: Remove atomic_address, uplift to N3225.
2011-02-16  Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/atomic: Remove atomic_address, uplift to N3225.
	* include/bits/atomic_0.h: Same.
	* include/bits/atomic_2.h: Same.
	* include/bits/atomic_base.h: Same.
	* testsuite/29_atomics/atomic_address/*: Delete.

From-SVN: r170217
2011-02-16 19:01:51 +00:00
Tobias Burnus
3808007ca0 re PR libgomp/47758 (729 unexpected failures in the libgomp test suite on powerpc-apple-darwin8)
2011-02-16  Tobias Burnus  <burnus@net-b.de>

        PR libgomp/47758
        * testsuite/libgomp.fortran/fortran.exp: Check for the existence
        of libquadmath.a before adding its libpath to ldflags.

From-SVN: r170216
2011-02-16 18:44:45 +01:00
Jakub Jelinek
c71f01a9d6 re PR libfortran/47757 (Unintentionally? not exported _gfortran_* symbols in libgfortran.so.3)
PR libfortran/47757
	* gfortran.map (GFORTRAN_1.4): Export
	_gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and
	_gfortran_{cshift0,eoshift{0,2}}_16_char4.

	* gfortran.dg/pr47757-1.f90: New test.
	* gfortran.dg/pr47757-2.f90: New test.
	* gfortran.dg/pr47757-3.f90: New test.

From-SVN: r170215
2011-02-16 18:18:41 +01:00
Richard Guenther
65aab64fe9 re PR tree-optimization/47738 (ICE: verify_ssa failed: no immediate_use list with -O3 -fno-tree-vectorize)
2011-02-12  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47738
	* tree-ssa-loop.c (run_tree_predictive_commoning): Return
	the TODO from tree_predictive_commoning.

From-SVN: r170212
2011-02-16 14:26:43 +00:00
Jakub Jelinek
d2995f2185 quadmath-printf.c: Also check __GLIBC__ when checking whether workarounds for printf hook handling...
* printf/quadmath-printf.c: Also check __GLIBC__ when checking
	whether workarounds for printf hook handling should be added.

	* configure.ac: Check for locale.h too.
	(USE_LOCALE_SUPPORT): Remove check.
	(USE_NL_LANGINFO, USE_NL_LANGINFO_WC, USE_LOCALECONV): New checks.
	(USE_I18_NUMBER_H): Check also for _NL_CTYPE_MB_CUR_MAX.
	* printf/printf_fphex.c (__quadmath_printf_fphex): Use nl_langinfo
	or localeconv for narrow version and nl_langinfo if USE_NL_LANGINFO_WC
	for wide version.
	* printf/quadmath-printf.h: Include locale.h if HAVE_LOCALE_H.
	* printf/printf_fp.c (USE_I18N_NUMBER_H): Don't define to 0.
	(__quadmath_printf_fp): Use nl_langinfo or localeconv for narrow
	version and nl_langinfo if USE_NL_LANGINFO_WC for wide version.
	Guard nl_langinfo (_NL_CTYPE_MB_CUR_MAX) use with
	USE_I18N_NUMBER_H #ifdef.
	* configure: Regenerated.
	* config.h.in: Regenerated.

From-SVN: r170211
2011-02-16 14:54:30 +01:00
Rainer Orth
5037599a74 * MAINTAINERS: Add myself as testsuite maintainer.
From-SVN: r170210
2011-02-16 10:09:32 +00:00
Jakub Jelinek
4e3c0a153e re PR c++/47704 ([C++0x] Java-related error message when trying to instantiate a strongly typed enum with new)
PR c++/47704
	* cp-tree.h (ENUM_FIXED_UNDERLYING_TYPE_P): Use TYPE_LANG_FLAG_5
	instead of TYPE_LANG_FLAG_3.
	* pt.c (lookup_template_class): Copy over
	ENUM_FIXED_UNDERLYING_TYPE_P.

	* g++.dg/cpp0x/enum8.C: New test.

From-SVN: r170209
2011-02-16 10:08:48 +01:00
Jason Merrill
503c8e860b re PR c++/46807 (internal compiler error: in synthesized_method_walk)
PR c++/46807
	* method.c (synthesized_method_walk): Always exit early for
	trivial fn in C++98 mode.

From-SVN: r170207
2011-02-15 19:39:27 -05:00
GCC Administrator
aa2bf28660 Daily bump.
From-SVN: r170206
2011-02-16 00:18:15 +00:00
Mike Stump
12a0ae3d26 * MAINTAINERS: Add myself as testsuite maintainer.
From-SVN: r170202
2011-02-15 23:08:05 +00:00
Ian Lance Taylor
fdd6f94b11 Don't crash on erroneous thunk call.
From-SVN: r170201
2011-02-15 22:37:07 +00:00
Tobias Burnus
69eb61d47a re PR libfortran/47716 (libgfortran quadmath_weak.h not found on NetBSD 5.1)
2011-02-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47716
        PR fortran/47648
        * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Use check from
        libquadmath, which uses more features.
        * configure: Regenerate.

From-SVN: r170200
2011-02-15 22:30:43 +01:00
Jeff Law
fc2fa4fb38 Revert
2011-01-25  Jeff Law  <law@redhat.com>

	PR rtl-optimization/37273
	* ira-costs.c (scan_one_insn): Detect constants living in memory and
	handle them like argument loads from stack slots.  Do not double
	count memory for memory constants and argument loads from stack slots.

From-SVN: r170199
2011-02-15 14:21:59 -07:00
Ian Lance Taylor
158559dec9 Don't crash on interface loop with forwarding types.
From-SVN: r170198
2011-02-15 19:53:36 +00:00
H.J. Lu
4e380b8e00 Revert cant_combine_insn_p change.
gcc/

2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/47725
	* combine.c (cant_combine_insn_p): Revert the last change.

gcc/testsuite/

2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/47725
	* gcc.dg/torture/pr47725.c: Removed.

From-SVN: r170197
2011-02-15 11:46:26 -08:00
Ian Lance Taylor
f801293452 Don't crash on defer of type conversion.
From-SVN: r170196
2011-02-15 19:41:29 +00:00
Steven G. Kargl
ed17fc411c re PR fortran/47633 (Result of COMPILER_VERSION() has NULL byte appended)
2011-02-15  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/47633
	. simplify.c (gfc_simplify_compiler_version): Fix off-by-one issue.

From-SVN: r170195
2011-02-15 19:38:51 +00:00
Ian Lance Taylor
72f812a2b5 Don't crash lowering self-referential variable initializer.
From-SVN: r170194
2011-02-15 19:34:33 +00:00
Ian Lance Taylor
1c4a5fc8ca Don't let array indexes be untyped.
From-SVN: r170193
2011-02-15 19:06:34 +00:00
Ian Lance Taylor
8d620a1a26 Don't crash defining function in different package.
From-SVN: r170192
2011-02-15 18:55:01 +00:00
Michael Meissner
e3a69bb44f Fix PR 47755
From-SVN: r170189
2011-02-15 18:42:59 +00:00
Alexandre Oliva
de65042216 re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* cgraph.h (compute_inline_parameters): Return void.
* ipa-inline.c (compute_inline_parameters): Adjust.

From-SVN: r170188
2011-02-15 18:36:56 +00:00
Alexandre Oliva
30925d946a re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-inline.h (estimated_stack_frame_size): Take cgraph node
rather than decl.
* cfgexpand.c (estimated_stack_frame_size): Likewise.
* ipa-inline.c (compute_inline_parameters): Adjust.

From-SVN: r170187
2011-02-15 18:36:44 +00:00
Alexandre Oliva
1b9a784a89 re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
Adjust all users.  Pass FN to...
* tree-flow-inline.h (first_referenced_var): ... this.  Add
fn argument.
* ipa-struct-reorg.c: Adjust.
* tree-dfa.c: Adjust.
* tree-into-ssa.c: Adjust.
* tree-sra.c: Adjust.
* tree-ssa-alias.c: Adjust.
* tree-ssa-live.c: Adjust.
* tree-ssa.c: Adjust.
* tree-ssanames.c: Adjust.
* tree-tailcall.c: Adjust.

From-SVN: r170186
2011-02-15 18:36:31 +00:00
Alexandre Oliva
27c6b08686 re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-flow.h (referenced_var_lookup): Add fn parameter.
Adjust all callers.
* tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
* tree-flow-inline.h: Adjust.
* gimple-pretty-print.c: Adjust.
* tree-into-ssa.c: Adjust.
* tree-ssa.c: Adjust.
* cfgexpand.c: Adjust.

From-SVN: r170185
2011-02-15 18:36:16 +00:00
Nathan Froyd
679e818369 make iq2000 use constraints.md
make iq2000 use constraints.md
        * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
        (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
        (EXTRA_CONSTRAINT): Delete.
        * config/iq2000/constraints.md: New file.
        * config/iq2000/iq2000.md: Include it.
	(define_insn ""): Delete.
	(movsi_internal2, movhi_internal2, movqi_internal2): Delete
	unsupported constraint letters from patterns.
	(call_value, call_value_internal1): Likewise.
	(call_value_multiple_internal1): Likewise.

From-SVN: r170184
2011-02-15 17:28:32 +00:00
Nick Clifton
a45d420abf mn10300.c: Include tm-constrs.h.
* config/mn10300/mn10300.c: Include tm-constrs.h.
	(struct liw_data): New data structure describing an LIW candidate
	instruction.
	(extract_bundle): Use struct liw_data.  Allow small integer
	operands for some instructions.
	(check_liw_constraints): Use struct liw_data.  Remove swapped
	parameter.  Add comments describing the checks.  Fix bug when
	assigning the source of liw1 to the source of liw2.
	(liw_candidate): Delete.  Code moved into extract_bundle.
	(mn10300_bundle_liw): Use struct liw_data.  Check constraints
	before swapping.
	* config/mn10300/predicates.md (liw_operand): New predicate.
	Allows registers and small integer constants.
	* config/mn10300/constraints.md (O): New constraint.  Accetps
	integers in the range -8 to +7 inclusive.
	* config/mn10300/mn10300.md (movesi_internal): Add an alternative
	for moving a small integer into a register.  Give this alternative
	LIW attributes.
	(addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
	(ashlsi3): Likewise, plus give LIW attributes to the alternatives
	using the J,K,L and M constraints,
	(liw): Remove SI mode on second operands to allow for HI and QI
	mode values.
	(cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
	instruction.

From-SVN: r170182
2011-02-15 17:09:39 +00:00
H.J. Lu
8a73faf108 Check zero/sign extended hard registers.
gcc/

2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/47725
	* combine.c (cant_combine_insn_p): Check zero/sign extended
	hard registers.

gcc/testsuite/

2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/47725
	* gcc.dg/torture/pr47725.c: New.

From-SVN: r170179
2011-02-15 08:50:43 -08:00
Richard Guenther
48feba283c re PR middle-end/47743 (PRE ICE in fold_convert_loc)
2011-02-15  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47743
	* tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
	for a non-type-compatible VN lookup bail out.

	* gcc.dg/torture/pr47743.c: New testcase.

From-SVN: r170173
2011-02-15 13:04:47 +00:00
Nathan Froyd
ad1c1eeb76 make fr30 use constraints.md
make fr30 use constraints.md
	* config/fr30/constraints.md: New file.
	* config/fr30/fr30.md: Include it.
	* config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
	(CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
	(EXTRA_CONSTRAINT): Delete.

From-SVN: r170172
2011-02-15 12:46:51 +00:00
Nathan Froyd
49ac143dfb make frv use constraints.md
make frv use constraints.md
	* config/frv/constraints.md: New file.
	* config/frv/predicates.md: Include it.
	* config/frv/frv.c (reg_class_from_letter): Delete.
	(frv_option_override): Don't initialize it.
	* config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
	(CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
	(CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
	(CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
	(CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
	(CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
	(EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
	(EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
	(EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
	(EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
	(REG_CLASS_FROM_CONSTRAINT): Delete.

From-SVN: r170171
2011-02-15 12:44:31 +00:00
Jakub Jelinek
c95f9494fe re PR middle-end/47581 (Unnecessary adjustments to stack pointer)
PR middle-end/47581
	* config/i386/i386.c (ix86_compute_frame_size): Don't align offset
	if frame size is 0 in a leaf function.

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

From-SVN: r170170
2011-02-15 12:46:10 +01:00