gcc.git
13 years agore PR fortran/47295 (libquadmath: List __complex128 and constants in the .texi file)
Tobias Burnus [Mon, 17 Jan 2011 19:03:28 +0000 (20:03 +0100)]
re PR fortran/47295 (libquadmath: List __complex128 and constants in the .texi file)

2011-01-17  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47295
        * libquadmath.text: Document typedef and constants.

From-SVN: r168930

13 years agorx: Split adddi3 and subdi3 after reload.
Richard Henderson [Mon, 17 Jan 2011 18:22:04 +0000 (10:22 -0800)]
rx: Split adddi3 and subdi3 after reload.

The formulation of the pre-reload pattern allows the lower_subreg
pass to properly split the patterns.  This also required re-writing
rx_source_operand and related predicates to accept subregs.

From-SVN: r168929

13 years agorx: Replace sat builtin with ssaddsi3 pattern.
Richard Henderson [Mon, 17 Jan 2011 18:18:24 +0000 (10:18 -0800)]
rx: Replace sat builtin with ssaddsi3 pattern.

A standalone __builtin_rx_sat isn't implementable due to needing
to keep the flags live before reload.  Instead provide a saturating
add pattern, which hopefully will be pattern-matched by high-level
optimizations.

From-SVN: r168928

13 years agorx: Rewrite the bit manipulation patterns.
Richard Henderson [Mon, 17 Jan 2011 18:16:39 +0000 (10:16 -0800)]
rx: Rewrite the bit manipulation patterns.

The patterns represented with ashift 1 canonically need to have
the ashift as the first operand of the logical operation.

Leave insv represented as a zero_extract store.
Implement a variable store to a 1 bit field as tst+bmne.
Implement a variable store of a condition into a 1 bit field with bmcc.

From-SVN: r168927

13 years agorx: Fix incorrect usage of + in output operands.
Richard Henderson [Mon, 17 Jan 2011 18:12:45 +0000 (10:12 -0800)]
rx: Fix incorrect usage of + in output operands.

From-SVN: r168926

13 years agorx: Cleanup non-VOIDmode SETs.
Richard Henderson [Mon, 17 Jan 2011 18:11:49 +0000 (10:11 -0800)]
rx: Cleanup non-VOIDmode SETs.

SET should always have VOIDmode.  A number of places used
SImode or QImode for the mode of the SET rtx itself.

From-SVN: r168925

13 years agorx: Cleanup flags generation.
Richard Henderson [Mon, 17 Jan 2011 18:06:28 +0000 (10:06 -0800)]
rx: Cleanup flags generation.

All arithmetic should only clobber the flags by default;
setting the flags to a useful value should be done by a
separate pattern.

From-SVN: r168924

13 years agorx: Implement cstoresf4.
Richard Henderson [Mon, 17 Jan 2011 17:59:20 +0000 (09:59 -0800)]
rx: Implement cstoresf4.

From-SVN: r168923

13 years agorx: Remove %B workaround.
Richard Henderson [Mon, 17 Jan 2011 17:58:21 +0000 (09:58 -0800)]
rx: Remove %B workaround.

This was delayed until all compare+operate patterns were converted.

From-SVN: r168922

13 years agorx: Split movsicc post-reload.
Richard Henderson [Mon, 17 Jan 2011 17:57:15 +0000 (09:57 -0800)]
rx: Split movsicc post-reload.

This will allow elimination of the compare.

From-SVN: r168921

13 years agorx: Split cstoresi4 post-reload.
Richard Henderson [Mon, 17 Jan 2011 17:55:33 +0000 (09:55 -0800)]
rx: Split cstoresi4 post-reload.

This will allow elimination of the compare.

From-SVN: r168920

13 years agorx: Cleanup conditional branches.
Richard Henderson [Mon, 17 Jan 2011 17:53:55 +0000 (09:53 -0800)]
rx: Cleanup conditional branches.

Use match_operator, not code_iterators.  Use a new helper function,
rx_split_cbranch.  Get the modes right on the comparisons.  Distinguish
fp comparisons with CC_Fmode.

From-SVN: r168919

13 years agorx: Remove rx_compare_redundant.
Richard Henderson [Mon, 17 Jan 2011 17:40:59 +0000 (09:40 -0800)]
rx: Remove rx_compare_redundant.

To be replaced by the generic compare_elim pass, but we need to disable
this before fiddling with the arrangement of the arithmetic instructions,
as required by the generic pass.

From-SVN: r168916

13 years agorx: Move SELECT_CC_MODE to function.
Richard Henderson [Mon, 17 Jan 2011 17:39:44 +0000 (09:39 -0800)]
rx: Move SELECT_CC_MODE to function.

Rewrite to look at comparison codes, not arithmetic codes.

From-SVN: r168915

13 years agostl_queue.h (queue<>::swap, [...]): Implement DR 1198.
Paolo Carlini [Mon, 17 Jan 2011 17:35:55 +0000 (17:35 +0000)]
stl_queue.h (queue<>::swap, [...]): Implement DR 1198.

2011-01-17  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_queue.h (queue<>::swap, priority_queue<>::swap):
Implement DR 1198.
* include/bits/stl_stack.h (stack<>::swap): Likewise.

From-SVN: r168914

13 years ago* g++.old-deja/g++.other/init19.C: Don't XFAIL on mips-sgi-irix*.
Rainer Orth [Mon, 17 Jan 2011 16:58:23 +0000 (16:58 +0000)]
* g++.old-deja/g++.other/init19.C: Don't XFAIL on mips-sgi-irix*.

From-SVN: r168911

13 years ago* except.c (dump_eh_tree): Fix stray ; after for statement.
Richard Henderson [Mon, 17 Jan 2011 16:50:09 +0000 (08:50 -0800)]
* except.c (dump_eh_tree): Fix stray ; after for statement.

From-SVN: r168910

13 years agopr36728-1.c: Replace XFAIL for s390(x) with a target check.
Andreas Krebbel [Mon, 17 Jan 2011 15:12:55 +0000 (15:12 +0000)]
pr36728-1.c: Replace XFAIL for s390(x) with a target check.

2011-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.dg/guality/pr36728-1.c: Replace XFAIL for s390(x) with a
target check.
* gcc.dg/guality/pr36728-2.c: Likewise.

From-SVN: r168908

13 years agore PR middle-end/47313 (ICE: PHI argument is not a GIMPLE value)
Richard Guenther [Mon, 17 Jan 2011 14:48:35 +0000 (14:48 +0000)]
re PR middle-end/47313 (ICE: PHI argument is not a GIMPLE value)

2011-01-17  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/47313
* tree-inline.c (tree_function_versioning): Move DECL_RESULT
handling before copying the body.  Properly deal with
by-reference result in SSA form.

* g++.dg/torture/pr47313.C: New testcase.

From-SVN: r168907

13 years agoNote PR.
Rainer Orth [Mon, 17 Jan 2011 13:46:32 +0000 (13:46 +0000)]
Note PR.

From-SVN: r168902

13 years agosparc.c (sparc_sr_alias_set): Don't define.
Ian Lance Taylor [Mon, 17 Jan 2011 13:43:37 +0000 (13:43 +0000)]
sparc.c (sparc_sr_alias_set): Don't define.

* config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
(struct_value_alias_set): Don't define.
(sparc_option_override): Don't set sparc_sr_alias_set and
struct_value_alias_set.
(save_or_restore_regs): Use gen_frame_mem rather than calling
set_mem_alias_set.
(sparc_struct_value_rtx): Likewise.

From-SVN: r168901

13 years agoCorrect mask operand for AVX mask load/store.
H.J. Lu [Mon, 17 Jan 2011 12:47:21 +0000 (12:47 +0000)]
Correct mask operand for AVX mask load/store.

gcc/

2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>

PR target/47318
* config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
__m128i.
(_mm_maskstore_pd): Likewise.
(_mm_maskload_ps): Likewise.
(_mm_maskstore_ps): Likewise.
(_mm256_maskload_pd): Change mask to __m256i.
(_mm256_maskstore_pd): Likewise.
(_mm256_maskload_ps): Likewise.
(_mm256_maskstore_ps): Likewise.

* config/i386/i386-builtin-types.def: Updated.
(ix86_expand_special_args_builtin): Likewise.

* config/i386/i386.c (bdesc_special_args): Update
__builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
__builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
__builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
__builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.

* config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
Use <avxpermvecmode> on mask register.
(avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.

gcc/testsuite/

2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>

PR target/47318
* gcc.target/i386/avx-vmaskmovpd-1.c: New.
* gcc.target/i386/avx-vmaskmovpd-2.c: Likewise.
* gcc.target/i386/avx-vmaskmovps-1.c: Likewise.
* gcc.target/i386/avx-vmaskmovps-1.c: Likewise.

* gcc.target/i386/avx-vmaskmovpd-256-1.c (avx_test): Load mask
as __m256i.
* gcc.target/i386/avx-vmaskmovpd-256-2.c (avx_test): Likewise.
* gcc.target/i386/avx-vmaskmovps-256-1.c (avx_test): Likewise.
* gcc.target/i386/avx-vmaskmovps-256-2.c (avx_test): Likewise.

From-SVN: r168899

13 years agore PR target/46655 (invalid '.line 0' directive emitted with -g)
Olivier Hainque [Mon, 17 Jan 2011 12:35:21 +0000 (12:35 +0000)]
re PR target/46655 (invalid '.line 0' directive emitted with -g)

PR target/46655
* xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
if <= USHRT_MAX in 32-bit mode.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
Co-Authored-By: Michael Haubenwallner <michael.haubenwallner@salomon.at>
From-SVN: r168897

13 years agore PR tree-optimization/45967 (gcc-4.5.x optimizes code with side-effects away)
Richard Guenther [Mon, 17 Jan 2011 11:50:47 +0000 (11:50 +0000)]
re PR tree-optimization/45967 (gcc-4.5.x optimizes code with side-effects away)

2011-01-17  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45967
* gcc.dg/torture/pr45967-2.c: New testcase.
* gcc.dg/torture/pr45967-3.c: Likewise.

From-SVN: r168896

13 years agore PR fortran/46817 (Missing copyright header in libquadmath/*.[hc])
Tobias Burnus [Mon, 17 Jan 2011 09:14:41 +0000 (10:14 +0100)]
re PR fortran/46817 (Missing copyright header in libquadmath/*.[hc])

2011-01-17  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46817
        * quadmath-imp.h: Refer to libquadmath not ot libiberty,
        bump copyright year and use /**/ instead of // comments.
        * quadmath.h: Ditto.
        * quadmath-weak.h: Ditto.
        * quadmath_io.c: Ditto.

From-SVN: r168892

13 years agodoc: wrap long lines in install.texi.
Ralf Wildenhues [Mon, 17 Jan 2011 06:38:47 +0000 (06:38 +0000)]
doc: wrap long lines in install.texi.

gcc/:
* doc/install.texi (Configuration, Specific): Wrap long
lines in examples.  Allow line wrapping in long options
and URLs where beneficial for PDF output.

From-SVN: r168889

13 years agoPR47296 Segfault when running out of file descriptors
Janne Blomqvist [Mon, 17 Jan 2011 05:48:10 +0000 (07:48 +0200)]
PR47296 Segfault when running out of file descriptors

From-SVN: r168888

13 years agore PR libstdc++/47323 (FAIL: 28_regex/08_basic_regex/requirements/constexpr_data...
Paolo Carlini [Mon, 17 Jan 2011 02:33:30 +0000 (02:33 +0000)]
re PR libstdc++/47323 (FAIL: 28_regex/08_basic_regex/requirements/constexpr_data.cc (test for excess errors))

2011-01-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/47323
* testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc:
Only test wregex when _GLIBCXX_USE_WCHAR_T is defined.

From-SVN: r168887

13 years agore PR testsuite/47325 (FAIL: g++.dg/ext/pr47213.C (test for excess errors))
John David Anglin [Mon, 17 Jan 2011 00:35:30 +0000 (00:35 +0000)]
re PR testsuite/47325 (FAIL: g++.dg/ext/pr47213.C (test for excess errors))

PR testsuite/47325
g++.dg/ext/pr47213.C: Require visibility.

From-SVN: r168886

13 years agoDaily bump.
GCC Administrator [Mon, 17 Jan 2011 00:18:27 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r168885

13 years agocomposite-type.c: Pass -Wno-unused.
Richard Sandiford [Sun, 16 Jan 2011 22:02:04 +0000 (22:02 +0000)]
composite-type.c: Pass -Wno-unused.

gcc/testsuite/
* gcc.dg/fixed-point/composite-type.c: Pass -Wno-unused.
* gcc.dg/fixed-point/struct-union.c: Update error messages.

From-SVN: r168876

13 years ago20101011-1.c: Skip test for MIPS16 Linux-based targets.
Richard Sandiford [Sun, 16 Jan 2011 21:55:03 +0000 (21:55 +0000)]
20101011-1.c: Skip test for MIPS16 Linux-based targets.

gcc/testsuite/
* gcc.c-torture/execute/20101011-1.c: Skip test for MIPS16
Linux-based targets.

From-SVN: r168875

13 years agomips.c (mips_classify_symbol): Don't return SYMBOL_PC_RELATIVE for nonlocal labels.
Richard Sandiford [Sun, 16 Jan 2011 21:52:37 +0000 (21:52 +0000)]
mips.c (mips_classify_symbol): Don't return SYMBOL_PC_RELATIVE for nonlocal labels.

gcc/
* config/mips/mips.c (mips_classify_symbol): Don't return
SYMBOL_PC_RELATIVE for nonlocal labels.

From-SVN: r168874

13 years agore PR libstdc++/47320 (FAIL: 18_support/numeric_limits/lowest.cc execution test)
Paolo Carlini [Sun, 16 Jan 2011 20:55:30 +0000 (20:55 +0000)]
re PR libstdc++/47320 (FAIL: 18_support/numeric_limits/lowest.cc execution test)

2011-01-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/47320
* testsuite/18_support/numeric_limits/lowest.cc:
Only test wchar_t when _GLIBCXX_USE_WCHAR_T is defined.

From-SVN: r168873

13 years agore PR libfortran/47322 (libquadmath breaks bootstrap on x86_64-unknown-freebsd8.2)
Jakub Jelinek [Sun, 16 Jan 2011 20:48:24 +0000 (21:48 +0100)]
re PR libfortran/47322 (libquadmath breaks bootstrap on x86_64-unknown-freebsd8.2)

PR libfortran/47322
* math/remquoq.c (remquoq): Use uint64_t type instead of u_int64_t.

From-SVN: r168872

13 years agore PR libstdc++/47321 (FAIL: 21_strings/basic_string/requirements/typedefs.cc (test...
Paolo Carlini [Sun, 16 Jan 2011 20:42:57 +0000 (20:42 +0000)]
re PR libstdc++/47321 (FAIL: 21_strings/basic_string/requirements/typedefs.cc (test for excess errors))

2011-01-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/47321
* testsuite/21_strings/basic_string/requirements/typedefs.cc:
Only test std::wstring when _GLIBCXX_USE_WCHAR_T is defined.

From-SVN: r168871

13 years ago* configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
Gerald Pfeifer [Sun, 16 Jan 2011 19:38:04 +0000 (19:38 +0000)]
* configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.

From-SVN: r168858

13 years agore PR fortran/47177 (bad example of using -dM in manual)
Tobias Burnus [Sun, 16 Jan 2011 17:14:48 +0000 (18:14 +0100)]
re PR fortran/47177 (bad example of using -dM in manual)

2011-01-15  Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi: Update Fortran 2003 Status section.

        PR fortran/47177
        * invoke.texi: Add missing "-E" to the -dM example.

From-SVN: r168857

13 years agore PR fortran/46625 (libquadmath: Mangle internal symbols; rename __float128 <->...
Jakub Jelinek [Sun, 16 Jan 2011 16:55:27 +0000 (17:55 +0100)]
re PR fortran/46625 (libquadmath: Mangle internal symbols; rename __float128 <-> string functions)

PR fortran/46625
* quadmath.map (QUADMATH_1.0): Remove quadmath_strtopQ
and quadmath_dtoaq.  Add strtoflt128 and quadmath_flt128tostr.
* quadmath_weak.h (quadmath_strtopQ, quadmath_dtoaq): Remove.
(strtoflt128, quadmath_flt128tostr): Add.
* gdtoa/strtopQ.c (quadmath_strtopQ): Rename to...
(strtoflt128): ... this.  Return __float128, instead of writing
to memory pointed by last argument.
* quadmath.h: Use C style comments instead of C++ style.
(quadmath_strtopQ, quadmath_dtoaq): Remove prototypes.
(strtoflt128, quadmath_flt128tostr): Add prototypes.
* libquadmath.texi (quadmath_dtoaq): Rename to quadmath_flt128tostr.
(quadmath_strtopQ): Rename to strtoflt128.  Adjust prototype,
adjust examples.
* quadmath_io.c (quadmath_dtoaq): Rename to...
(quadmath_flt128tostr): ... this.
libgfortran/
* io/write_float.def (DTOAQ): Use quadmath_flt128tostr
instead of quadmath_dtoa.
* io/transfer128.c (tmp1, tmp2): New variables, bring in
strtoflt128 and quadmath_flt128tostr.
(transfer_real128, transfer_real128_write, transfer_complex128,
transfer_complex128_write): Remove tmp1/tmp2 variables.
* io/read.c (convert_real): Use strtoflt128 instead of
quadmath_strtopQ, adjust for the changed arguments and return
value.

From-SVN: r168856

13 years agoquadmath.h (__quadmath_throw, [...]): Define.
Jakub Jelinek [Sun, 16 Jan 2011 16:48:59 +0000 (17:48 +0100)]
quadmath.h (__quadmath_throw, [...]): Define.

* quadmath.h (__quadmath_throw, __quadmath_nth): Define.
Use it for all prototypes.

From-SVN: r168855

13 years agore PR fortran/46416 (libquadmath: missing functions)
Jakub Jelinek [Sun, 16 Jan 2011 16:44:35 +0000 (17:44 +0100)]
re PR fortran/46416 (libquadmath: missing functions)

PR fortran/46416
* quadmath.h (cbrtq, finiteq, isnanq, signbitq, sqrtq): Remove
const from prototype argument.
(cimagq, conjq, cprojq, crealq, fdimq, fmaxq, fminq, ilogbq,
llrintq, log2q, lrintq, nearbyintq, remquoq): New prototypes.
(__quadmath_extern_inline): Define.
(cimagq, conjq, crealq): New inlines.
* Makefile.am (libquadmath_la_SOURCES): Add math/cimagq.c,
math/conjq.c, math/cprojq.c, math/crealq.c, math/fdimq.c,
math/fmaxq.c, math/fminq.c, math/ilogbq.c, math/llrintq.c,
math/log2q.c, math/lrintq.c, math/nearbyintq.c and math/remquoq.c.
* Makefile.in: Regenerated.
* quadmath_weak.h (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
* quadmath-imp.h (__LITTLE_ENDIAN__): Don't define.
(ieee854_float128): Use __BYTE_ORDER == __ORDER_BIG_ENDIAN__
tests instead of __BIG_ENDIAN__.
* quadmath.map (QUADMATH_1.0): Add cimagq, conjq, cprojq, crealq,
fdimq, fmaxq, fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq
and remquoq.
* libquadmath.texi (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
* math/cprojq.c: New file.
* math/ilogbq.c: New file.
* math/fminq.c: New file.
* math/llrintq.c: New file.
* math/log2q.c: New file.
* math/lrintq.c: New file.
* math/crealq.c: New file.
* math/nearbyintq.c: New file.
* math/fmaxq.c: New file.
* math/conjq.c: New file.
* math/remquoq.c: New file.
* math/cimagq.c: New file.
* math/fdimq.c: New file.

* math/ldexpq.c: Include errno.h.  Set errno to ERANGE if needed.

From-SVN: r168854

13 years agore PR fortran/46416 (libquadmath: missing functions)
Jakub Jelinek [Sun, 16 Jan 2011 16:42:37 +0000 (17:42 +0100)]
re PR fortran/46416 (libquadmath: missing functions)

PR fortran/46416
* quadmath.h (cacosq, cacoshq, casinq, casinhq, catanq, catanhq):
New prototypes.
(M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq, M_PI_2q, M_PI_4q,
M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q, M_SQRT1_2q): Define.
* quadmath_weak.h (cacosq, cacoshq, casinq, casinhq, catanq,
catanhq): Add.
* quadmath-imp.h (fpclassifyq, QUADFP_NAN, QUADFP_INFINITE,
QUADFP_ZERO, QUADFP_SUBNORMAL, QUADFP_NORMAL): Define.
* quadmath.map (QUADMATH_1.0): Add cacosq, cacoshq, casinq, casinhq,
catanq and catanhq.
* Makefile.am (libquadmath_la_SOURCES): Add math/cacosq.c,
math/cacoshq.c, math/casinq.c, math/casinhq.c, math/catanq.c
and math/catanhq.c.
* Makefile.in: Regenerated.
* libquadmath.texi (cacosq, cacoshq, casinq, casinhq,
catanq, catanhq): Add.
* math/cacoshq.c: New file.
* math/cacosq.c: New file.
* math/catanq.c: New file.
* math/catanhq.c: New file.
* math/casinq.c: New file.
* math/casinhq.c: New file.

* math/hypotq.c (hypotq): Use Q suffix instead of L.
* math/atan2q.c (tiny, pi_o_4, pi_o_2, pi, pi_lo, atan2q): Likewise.
* math/cosq.c (cosq): Likewise.

From-SVN: r168853

13 years agore PR fortran/46402 (libquadmath: Add fmalq)
Jakub Jelinek [Sun, 16 Jan 2011 16:40:05 +0000 (17:40 +0100)]
re PR fortran/46402 (libquadmath: Add fmalq)

PR fortran/46402
* quadmath.map (QUADMATH_1.0): Add fmaq.
* configure.ac: Check for fenv.h, feholdexcept, fesetround,
feupdateenv, fesetenv and fetestexcept.
* configure: Regenerated.
* config.h.in: Regenerated.
* quadmath.h (fmaq): New prototype.
* quadmath_weak.h (fmaq): Add.
* Makefile.am (libquadmath_la_SOURCES): Add math/fmaq.c.
* Makefile.in: Regenerated.
* quadmath-imp.h: Include config.h.
* math/expq.c: Include fenv.h.
(USE_FENV_H): Define if libm support for fe* is there.
(expq): Add fesetround etc. support if USE_FENV_H is defined.
* math/fmaq.c: New file.
* libquadmath.texi (fmaq): Add.

From-SVN: r168852

13 years agoerase_after1_neg.cc: Move to this.
François Dumont [Sun, 16 Jan 2011 10:35:28 +0000 (11:35 +0100)]
erase_after1_neg.cc: Move to this.

2011-01-16  François Dumont  <francois.cppdevs@free.fr>

        * testsuite/23_containers/forward_list/debug/erase_after1_neg.cc: Move
        to this. Use _neg suffix.
        * testsuite/23_containers/forward_list/debug/erase_after1.cc: ...from
        this.
        * testsuite/23_containers/forward_list/debug/erase_after2_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/erase_after2.cc: Same.
        * testsuite/23_containers/forward_list/debug/erase_after3_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/erase_after3.cc: Same.
        * testsuite/23_containers/forward_list/debug/erase_after4_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/erase_after4.cc: Same.
        * testsuite/23_containers/forward_list/debug/erase_after5_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/erase_after5.cc: Same.
        * testsuite/23_containers/forward_list/debug/erase_after6_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/erase_after6.cc: Same.
        * testsuite/23_containers/forward_list/debug/erase_after7_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/erase_after7.cc: Same.
        * testsuite/23_containers/forward_list/debug/erase_after8_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/erase_after8.cc: Same.
        * testsuite/23_containers/forward_list/debug/erase_after9_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/erase_after9.cc: Same.
        * testsuite/23_containers/forward_list/debug/insert_after1_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/insert_after1.cc: Same.
        * testsuite/23_containers/forward_list/debug/insert_after2_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/insert_after2.cc: Same.
        * testsuite/23_containers/forward_list/debug/insert_after3_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/insert_after3.cc: Same.
        * testsuite/23_containers/forward_list/debug/splice_after1_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/splice_after1.cc: Same.
        * testsuite/23_containers/forward_list/debug/splice_after2_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/splice_after2.cc: Same.
        * testsuite/23_containers/forward_list/debug/splice_after3_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/splice_after3.cc: Same.
        * testsuite/23_containers/forward_list/debug/splice_after4_neg.cc:
        Same.
        * testsuite/23_containers/forward_list/debug/splice_after4.cc: Same.

From-SVN: r168850

13 years agoDaily bump.
GCC Administrator [Sun, 16 Jan 2011 00:18:19 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r168849

13 years ago* config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
Eric Botcazou [Sat, 15 Jan 2011 18:47:40 +0000 (18:47 +0000)]
* config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.

From-SVN: r168845

13 years agore PR tree-optimization/47276 (ICE in function_and_variable_visibility, at ipa.c...
Jan Hubicka [Sat, 15 Jan 2011 15:44:56 +0000 (16:44 +0100)]
re PR tree-optimization/47276 (ICE in function_and_variable_visibility, at ipa.c:857 during compiling glibc.)

PR tree-optimization/47276
* ipa.c (function_and_variable_visibility): Do not try to mark alias
declarations as needed.
* gcc.dg/pr47276.c: New testcase.

From-SVN: r168844

13 years agore PR c++/33558 ('mutable' incorrectly accepted on reference members)
Giovanni Funchal [Sat, 15 Jan 2011 14:41:09 +0000 (14:41 +0000)]
re PR c++/33558 ('mutable' incorrectly accepted on reference members)

2011-01-15  Giovanni Funchal  <gafunchal@gmail.com>
    Jonathan Wakely  <jwakely.gcc@gmail.com>

PR c++/33558
* decl.c (grokdeclarator): Reject mutable reference members.

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

13 years agore PR fortran/47296 (I/O Segfault when running out of file descriptors)
Jerry DeLisle [Sat, 15 Jan 2011 06:42:30 +0000 (06:42 +0000)]
re PR fortran/47296 (I/O Segfault when running out of file descriptors)

2011-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/47296
* io/unix.c (unpack_filename): Return non-zero if the filename passed
in is NULL.

From-SVN: r168832

13 years agore PR libstdc++/36104 (gnu-versioned-namespace is broken)
Benjamin Kosnik [Sat, 15 Jan 2011 00:27:10 +0000 (00:27 +0000)]
re PR libstdc++/36104 (gnu-versioned-namespace is broken)

2011-01-14  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/36104
* include/Makefile.am (bits_sup_headers, stamp-bits-sup): New.
* include/Makefile.in: Regenerate.
* libsupc++/Makefile.am (std_HEADERS, bits_HEADERS): New.
(install-stdHEADERS, install-bitsHEADERS): New.
* libsupc++/Makefile.in: Regenerate.

* include/bits/c++config: Update for inline namespaces.
* libsupc++/cxxabi-forced.h: To...
* libsupc++/cxxabi_forced.h: ...this.
* libsupc++/hash_bytes.h: Separate file.
* libsupc++/typeinfo: Use it.
* libsupc++/exception: Adjust for bits subdirectory.
* libsupc++/eh_aux_runtime.cc: Same.
* libsupc++/eh_ptr.cc: Same.
* libsupc++/new_op.cc: Same.
* libsupc++/exception_defines.h: Same.
* libsupc++/nested_exception.h: Same.
* libsupc++/eh_terminate.cc: Same.
* libsupc++/vec.cc: Same.
* libsupc++/vterminate.cc: Same.
* libsupc++/exception_ptr.h: Same.
* libsupc++/eh_personality.cc: Same.
* libsupc++/eh_call.cc: Same.
* libsupc++/new_opnt.cc: Same.
* libsupc++/hash_bytes.cc: Same.
* config/cpu/arm/cxxabi_tweaks.h: Same.
* config/cpu/generic/cxxabi_tweaks.h: Same.
* libsupc++/cxxabi.h: Same. Consolidate _GLIBCXX_NOTHROW defines.
* include/std/bitset: Same.
* include/ext/vstring.tcc: Same.
* include/bits/hashtable.h: Same.
* include/bits/functional_hash.h: Same.
* include/bits/hashtable_policy.h: Same.
* include/bits/basic_string.h: Same.
* include/bits/istream.tcc: Same.
* include/bits/ostream.tcc: Same.
* include/bits/algorithmfwd.h: Same.
* include/bits/basic_string.tcc: Same.
* include/bits/ostream_insert.h: Same.
* include/bits/fstream.tcc: Same.
* include/bits/functexcept.h: Same.

* doc/doxygen/user.cfg.in: Adjust names.

* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line numbers.

From-SVN: r168831

13 years agoDaily bump.
GCC Administrator [Sat, 15 Jan 2011 00:18:50 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r168830

13 years agocommon.opt (fdevirtualize): New flag.
Martin Jambor [Fri, 14 Jan 2011 23:19:08 +0000 (00:19 +0100)]
common.opt (fdevirtualize): New flag.

2011-01-15  Martin Jambor  <mjambor@suse.cz>

* common.opt (fdevirtualize): New flag.
* doc/invoke.texi (Option Summary): Document it.
* opts.c (default_options_table): Add devirtualize flag.
* ipa-prop.c (detect_type_change): Return immediately if
devirtualize flag is not set.
(detect_type_change_ssa): Likewise.
(compute_known_type_jump_func): Likewise.
(ipa_analyze_virtual_call_uses): Likewise.

From-SVN: r168826

13 years agore PR tree-optimization/45934 (g++.old-deja/g++.other/dtor5.C FAILs with -finline...
Martin Jambor [Fri, 14 Jan 2011 23:00:59 +0000 (00:00 +0100)]
re PR tree-optimization/45934 (g++.old-deja/g++.other/dtor5.C FAILs with -finline-small-functions)

2011-01-14  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/45934
PR tree-optimization/46302
* ipa-prop.c (type_change_info): New type.
(stmt_may_be_vtbl_ptr_store): New function.
(check_stmt_for_type_change): Likewise.
(detect_type_change): Likewise.
(detect_type_change_ssa): Likewise.
(compute_complex_assign_jump_func): Check for dynamic type change.
(compute_complex_ancestor_jump_func): Likewise.
(compute_known_type_jump_func): Likewise.
(compute_scalar_jump_functions): Likewise.
(ipa_analyze_virtual_call_uses): Likewise.
(ipa_analyze_node): Push and pop cfun, set current_function_decl.

* testsuite/g++.dg/ipa/devirt-c-1.C: New test.
* testsuite/g++.dg/ipa/devirt-c-2.C: Likewise.
* testsuite/g++.dg/ipa/devirt-c-3.C: Likewise.
* testsuite/g++.dg/ipa/devirt-c-4.C: Likewise.
* testsuite/g++.dg/ipa/devirt-c-5.C: Likewise.
* testsuite/g++.dg/ipa/devirt-c-6.C: Likewise.
* testsuite/g++.dg/ipa/devirt-6.C: Likewise.
* testsuite/g++.dg/ipa/devirt-d-1.C: Likewise.
* testsuite/g++.dg/torture/pr45934.C: Likewise.

From-SVN: r168825

13 years agore PR target/19162 (ICE while building libobjc's sendmsg.c)
Mike Stump [Fri, 14 Jan 2011 21:50:11 +0000 (21:50 +0000)]
re PR target/19162 (ICE while building libobjc's sendmsg.c)

PR 19162
* objc-act.c (generate_struct_by_value_array): Do not output a
definition for struct_forward_array.

From-SVN: r168824

13 years agoobjc-act.c (generate_struct_by_value_array): Do not output a definition for struct_fo...
Ben Elliston [Fri, 14 Jan 2011 21:38:17 +0000 (21:38 +0000)]
objc-act.c (generate_struct_by_value_array): Do not output a definition for struct_forward_array.

2011-01-14  Ben Elliston  <bje@au.ibm.com>

* objc-act.c (generate_struct_by_value_array): Do not output a
definition for struct_forward_array.

From-SVN: r168823

13 years agore PR c++/47289 ([C++0x] ICE in tsubst_pack_expansion (triggered by decltype))
Jason Merrill [Fri, 14 Jan 2011 21:26:47 +0000 (16:26 -0500)]
re PR c++/47289 ([C++0x] ICE in tsubst_pack_expansion (triggered by decltype))

PR c++/47289
* pt.c (coerce_template_parms): Fix error recovery.

From-SVN: r168822

13 years agoi386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
Joseph Myers [Fri, 14 Jan 2011 21:03:22 +0000 (21:03 +0000)]
i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.

* config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
* config/i386/i386.opt (msse5): New Alias.

From-SVN: r168821

13 years agolinux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
Joseph Myers [Fri, 14 Jan 2011 21:02:06 +0000 (21:02 +0000)]
linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.

* config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
* config/sparc/linux64.h (CC1_SPEC): Likewise.
* config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
* config/sparc/sparc.h (CC1_SPEC): Likewise.

From-SVN: r168820

13 years agolinux.h (CC1_SPEC): Don't handle old equivalents of -mcpu options.
Joseph Myers [Fri, 14 Jan 2011 21:01:18 +0000 (21:01 +0000)]
linux.h (CC1_SPEC): Don't handle old equivalents of -mcpu options.

* config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
-mcpu options.
* config/sparc/linux64.h (CC1_SPEC): Likewise.
* config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
* config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
* config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
Likewise.
* config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.

From-SVN: r168819

13 years agovxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
Joseph Myers [Fri, 14 Jan 2011 20:59:52 +0000 (20:59 +0000)]
vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.

* config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
-fvec-eabi.

From-SVN: r168818

13 years agoalpha.md (umk_mismatch_args): Don't put a mode on set.
Mike Stump [Fri, 14 Jan 2011 19:37:16 +0000 (19:37 +0000)]
alpha.md (umk_mismatch_args): Don't put a mode on set.

* config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
* config/fr30/fr30.md: Likweise
(movsi_push): Likewise.
(movsi_pop): Likewise.
(enter_func): Likewise.
* config/moxie/moxie.md (movsi_push): Likewise.
(movsi_pop): Likewise.

From-SVN: r168817

13 years agolibgo: Check whether we need -lrt for sched_yield.
Ian Lance Taylor [Fri, 14 Jan 2011 19:18:38 +0000 (19:18 +0000)]
libgo: Check whether we need -lrt for sched_yield.

From Rainer Orth.

From-SVN: r168816

13 years agolibgo: Use $(SHELL) to invoke gotest.
Ian Lance Taylor [Fri, 14 Jan 2011 19:13:24 +0000 (19:13 +0000)]
libgo: Use $(SHELL) to invoke gotest.

From Rainer Orth.

From-SVN: r168815

13 years agolibgo/syscalls: Finish Solaris code.
Ian Lance Taylor [Fri, 14 Jan 2011 19:10:02 +0000 (19:10 +0000)]
libgo/syscalls: Finish Solaris code.

Mostly from Rainer Orth.

From-SVN: r168814

13 years agolinux64.h (LINK_SPEC): Remove %{bestGnum} %{no_archive} %{exact_version}.
Joseph Myers [Fri, 14 Jan 2011 18:56:52 +0000 (18:56 +0000)]
linux64.h (LINK_SPEC): Remove %{bestGnum} %{no_archive} %{exact_version}.

* config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
%{no_archive} %{exact_version}.
* config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
* config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
%{no_archive} %{exact_version}.
* config/mips/openbsd.h (LINK_SPEC): Likewise.
* config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
* config/mips/vxworks.h: Likewise.

From-SVN: r168813

13 years agomicroblaze.h (ASM_SPEC): Remove %{microblaze1}.
Joseph Myers [Fri, 14 Jan 2011 18:55:27 +0000 (18:55 +0000)]
microblaze.h (ASM_SPEC): Remove %{microblaze1}.

* config/microblaze/microblaze.h (ASM_SPEC): Remove
%{microblaze1}.

From-SVN: r168812

13 years agolittle.h (CPP_ENDIAN_SPEC, [...]): Remove.
Joseph Myers [Fri, 14 Jan 2011 18:54:16 +0000 (18:54 +0000)]
little.h (CPP_ENDIAN_SPEC, [...]): Remove.

* config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.

From-SVN: r168810

13 years agonwld.h (LINK_SPEC): Check -nodefaultlibs not -nodefaultlib.
Joseph Myers [Fri, 14 Jan 2011 18:53:16 +0000 (18:53 +0000)]
nwld.h (LINK_SPEC): Check -nodefaultlibs not -nodefaultlib.

* config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
-nodefaultlib.

From-SVN: r168809

13 years agocris.h (ASM_SPEC, [...]): Check for mcpu not cpu.
Joseph Myers [Fri, 14 Jan 2011 18:51:46 +0000 (18:51 +0000)]
cris.h (ASM_SPEC, [...]): Check for mcpu not cpu.

* config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
for mcpu not cpu.
* config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
not cpu.
(CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
Don't handle -shlib.

From-SVN: r168808

13 years agoavr.h (CPP_SPEC): Don't handle -posix.
Joseph Myers [Fri, 14 Jan 2011 18:47:52 +0000 (18:47 +0000)]
avr.h (CPP_SPEC): Don't handle -posix.

* config/avr/avr.h (CPP_SPEC): Don't handle -posix.
(CC1_SPEC): Don't handle -profile.

From-SVN: r168807

13 years agore PR objc/45989 (Some objc.dg-struct-layout-encoding-1 tests XPASS)
Dominique d'Humieres [Fri, 14 Jan 2011 18:47:50 +0000 (19:47 +0100)]
re PR objc/45989 (Some objc.dg-struct-layout-encoding-1 tests XPASS)

2011-01-08  Dominique d'Humieres  <dominiq@lps.ens.fr>
    Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR objc/45989
* objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c
(switchfiles): XFAIL
objc.dg-struct-layout-encoding-1/t02[57-9]_main.m execution tests
on i?86-*-*, x86_64-*-*, and powerpc*-apple-darwin* && ilp32.
XFAIL objc.dg-struct-layout-encoding-1/t03[01]_main.m execution
tests on i?86-*-* and x86_64-*-*.

Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
From-SVN: r168806

13 years agomicroblaze.h (CC1_SPEC): Remove -gline spec.
Joseph Myers [Fri, 14 Jan 2011 18:47:00 +0000 (18:47 +0000)]
microblaze.h (CC1_SPEC): Remove -gline spec.

* config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
* config/mips/mips.h (CC1_SPEC): Likewise.

From-SVN: r168805

13 years agolibgo/Makefile.am: Correct typos in Solaris support.
Ian Lance Taylor [Fri, 14 Jan 2011 18:46:42 +0000 (18:46 +0000)]
libgo/Makefile.am: Correct typos in Solaris support.

From Rainer Orth.

From-SVN: r168804

13 years agomicroblaze.h (CC1_SPEC): Remove %{save-temps: }.
Joseph Myers [Fri, 14 Jan 2011 18:46:24 +0000 (18:46 +0000)]
microblaze.h (CC1_SPEC): Remove %{save-temps: }.

* config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
* config/mips/mips.h (CC1_SPEC): Likewise.

From-SVN: r168803

13 years agolinux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
Joseph Myers [Fri, 14 Jan 2011 18:45:06 +0000 (18:45 +0000)]
linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.

* config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
* config/m32r/linux.h (LINK_SPEC): Likewise.
* config/mips/linux.h (LINK_SPEC): Likewise.
* config/mips/linux64.h (LINK_SPEC): Likewise.
* config/sparc/linux.h (LINK_SPEC): Likewise.
* config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
LINK_SPEC): Likewise.
* config/xtensa/linux.h (LINK_SPEC): Likewise.

From-SVN: r168802

13 years agolinux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{version:-v}.
Joseph Myers [Fri, 14 Jan 2011 18:42:32 +0000 (18:42 +0000)]
linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{version:-v}.

* config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
%{version:-v}.
* config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.

From-SVN: r168801

13 years agomksysinfo: Define _pad128_t and _upad128_t if commented out.
Ian Lance Taylor [Fri, 14 Jan 2011 18:41:31 +0000 (18:41 +0000)]
mksysinfo: Define _pad128_t and _upad128_t if commented out.

From Rainer Orth.

From-SVN: r168800

13 years agosp-elf.h (ASM_SPEC): Remove %{v:-V}.
Joseph Myers [Fri, 14 Jan 2011 18:41:05 +0000 (18:41 +0000)]
sp-elf.h (ASM_SPEC): Remove %{v:-V}.

* config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
* config/sparc/sp64-elf.h (ASM_SPEC): Likewise.

From-SVN: r168799

13 years ago* config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
Joseph Myers [Fri, 14 Jan 2011 18:39:49 +0000 (18:39 +0000)]
* config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.

From-SVN: r168798

13 years agoFix indentation.
Mike Stump [Fri, 14 Jan 2011 18:11:27 +0000 (18:11 +0000)]
Fix indentation.

From-SVN: r168797

13 years agocheck_type.cc: Minor tweaks.
Paolo Carlini [Fri, 14 Jan 2011 17:17:32 +0000 (17:17 +0000)]
check_type.cc: Minor tweaks.

2011-01-14  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/25_algorithms/is_permutation/check_type.cc: Minor
tweaks.
* testsuite/25_algorithms/is_permutation/1.cc: Cosmetic changes.

From-SVN: r168796

13 years agoconfigure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always supports -Bstatic/-Bdynamic.
Rainer Orth [Fri, 14 Jan 2011 17:00:24 +0000 (17:00 +0000)]
configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always supports -Bstatic/-Bdynamic.

* configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
supports -Bstatic/-Bdynamic.
* configure: Regenerate.

From-SVN: r168795

13 years agore PR target/46037 (--enable-stage1-languages=c,lto --enable-languages=c,lto --with...
Jan Hubicka [Fri, 14 Jan 2011 15:42:09 +0000 (16:42 +0100)]
re PR target/46037 (--enable-stage1-languages=c,lto --enable-languages=c,lto --with-build-config=bootstrap-lto fails on darwin)

2011-01-14  Jan Hubicka  <jh@suse.cz>
            Jack Howarth <howarth@bromo.med.uc.edu>

PR target/46037
* config/darwin.c (darwin_override_options): Honor flag_gtoggle
when checking debug_info_level. Test write_symbols instead of
debug_hooks->var_location when setting flag_var_tracking_uninit.

Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>
From-SVN: r168793

13 years agore PR tree-optimization/47179 (SPU: errno misoptimization around malloc call)
Richard Guenther [Fri, 14 Jan 2011 15:02:20 +0000 (15:02 +0000)]
re PR tree-optimization/47179 (SPU: errno misoptimization around malloc call)

2011-01-14  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/47179
* target.def (ref_may_alias_errno): New target hook.
* targhooks.h (default_ref_may_alias_errno): Declare.
* targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
(default_ref_may_alias_errno): New function.
* target.h (struct ao_ref_s): Declare.
* tree-ssa-alias.c: Include target.h.
(call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
* Makefile.in (tree-ssa-alias.o): Adjust dependencies.
(targhooks.o): Likewise.
* doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
* doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.

From-SVN: r168788

13 years agotree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
Richard Guenther [Fri, 14 Jan 2011 14:58:01 +0000 (14:58 +0000)]
tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.

2011-01-14  Richard Guenther  <rguenther@suse.de>

* tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.

From-SVN: r168787

13 years agoFix formatting issues
Eric Botcazou [Fri, 14 Jan 2011 14:52:44 +0000 (14:52 +0000)]
Fix formatting issues

From-SVN: r168786

13 years agore PR tree-optimization/47280 (ICE: verify_stmts failed: statement marked for throw...
Richard Guenther [Fri, 14 Jan 2011 13:20:22 +0000 (13:20 +0000)]
re PR tree-optimization/47280 (ICE: verify_stmts failed: statement marked for throw, but doesn't with -fnon-call-exceptions -ftrapv)

2011-01-14  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/47280
* tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
return CFG changes.
(tree_ssa_forward_propagate_single_use_vars): Deal with
CFG changes from associate_plusminus.

* g++.dg/opt/pr47280.C: New testcase.

From-SVN: r168784

13 years agore PR c++/46903 ([C++0x] ICE unexpected expression of kind template_id_expr)
Jason Merrill [Fri, 14 Jan 2011 13:08:11 +0000 (08:08 -0500)]
re PR c++/46903 ([C++0x] ICE unexpected expression of kind template_id_expr)

PR c++/46903
* typeck2.c (check_narrowing): Only check arithmetic types.

From-SVN: r168783

13 years agore PR c++/46688 (g++ requires a function declaration when it should not)
Jason Merrill [Fri, 14 Jan 2011 13:08:02 +0000 (08:08 -0500)]
re PR c++/46688 (g++ requires a function declaration when it should not)

PR c++/46688
* tree.c (build_vec_init_expr): Handle flexible array
properly.

From-SVN: r168782

13 years agore PR middle-end/47281 (error: non-trivial conversion at assignment)
Richard Guenther [Fri, 14 Jan 2011 12:39:09 +0000 (12:39 +0000)]
re PR middle-end/47281 (error: non-trivial conversion at assignment)

2011-01-14  Richard Guenther  <rguenther@suse.de>

PR middle-end/47281
Revert
2011-01-11  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/46076
        * tree-ssa.c (useless_type_conversion_p): Conversions from
        unprototyped to empty argument list function types are useless.

* gcc.dg/torture/pr47281.c: New testcase.
* gcc.dg/tree-ssa/pr46076.c: XFAIL.

From-SVN: r168781

13 years agore PR tree-optimization/47286 (Invalid code when using register ... asm)
Richard Guenther [Fri, 14 Jan 2011 12:15:43 +0000 (12:15 +0000)]
re PR tree-optimization/47286 (Invalid code when using register ... asm)

2011-01-14  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/47286
* tree-ssa-structalias.c (new_var_info): Register variables
are global.

* gcc.dg/tree-ssa/pr47286.c: New testcase.

From-SVN: r168779

13 years agore PR middle-end/46823 (ICE: edge points to wrong declaration)
Martin Jambor [Fri, 14 Jan 2011 11:59:07 +0000 (12:59 +0100)]
re PR middle-end/46823 (ICE: edge points to wrong declaration)

2011-01-14  Martin Jambor  <mjambor@suse.cz>

PR middle-end/46823
* tree-inline.c (expand_call_inline): Get fndecl from call graph edge.

From-SVN: r168778

13 years agore PR fortran/47182 (libquadmath.texi: undefined flag: BUGURL)
Tobias Burnus [Fri, 14 Jan 2011 07:18:54 +0000 (08:18 +0100)]
re PR fortran/47182 (libquadmath.texi: undefined flag: BUGURL)

2011-01-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47182
        * configure.ac: Use ACX_BUGURL.
        * libquadmath.texi: Include libquadmath-vers.texi for BUGURL.
        * Makefile.am: Create libquadmath-vers.texi.
        * configure.in: Regenerate.
        * Makefile.in: Regenerate.

From-SVN: r168776

13 years agoThe type of a string slice is the type of the string being sliced.
Ian Lance Taylor [Fri, 14 Jan 2011 05:37:12 +0000 (05:37 +0000)]
The type of a string slice is the type of the string being sliced.

From-SVN: r168775

13 years agoMove clearing of flag_strict_aliasing to gcc interface.
Ian Lance Taylor [Fri, 14 Jan 2011 03:27:32 +0000 (03:27 +0000)]
Move clearing of flag_strict_aliasing to gcc interface.

From-SVN: r168774

13 years ago[multiple changes]
Paolo Carlini [Fri, 14 Jan 2011 01:21:51 +0000 (01:21 +0000)]
[multiple changes]

2011-01-13  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/25_algorithms/is_permutation/check_type.cc: New.
* testsuite/25_algorithms/is_permutation/requirements/
explicit_instantiation/2.cc: Likewise.
* testsuite/25_algorithms/is_permutation/requirements/
explicit_instantiation/pod.cc: Likewise.
* testsuite/25_algorithms/is_permutation/1.cc: Likewise.

2011-01-13  John Lakos  <jlakos@bloomberg.net>
    Pablo Halpern  <phalpern@halpernwightsoftware.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_algo.h (is_permutation): Add, per N3068.
* include/bits/algorithmfwd.h: Add.

From-SVN: r168773

13 years agoDaily bump.
GCC Administrator [Fri, 14 Jan 2011 00:19:25 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r168770

13 years agore PR libfortran/47268 (Documentation: missing (Optional) keyword for parameters...
Tobias Burnus [Thu, 13 Jan 2011 22:00:50 +0000 (23:00 +0100)]
re PR libfortran/47268 (Documentation: missing (Optional) keyword for parameters of get_command_argument() and get_environment_variable())

2011-01-13  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47268
        * intrinsic.texi (get_command_argument,
        * get_environment_variable):
        Mark arguments as optional in the Arguments section.

From-SVN: r168766

13 years agoxtensa.h (XTENSA_LIBCALL_VALUE, [...]): Remove macros.
Anatoly Sokolov [Thu, 13 Jan 2011 20:24:19 +0000 (23:24 +0300)]
xtensa.h (XTENSA_LIBCALL_VALUE, [...]): Remove macros.

* config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
* config/xtensa/xtensa.c (xtensa_libcall_value,
xtensa_function_value_regno_p): New functions.
(TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.

From-SVN: r168765

13 years agoDon't exit mksysinfo.sh if there is no _user_regs_struct.
Ian Lance Taylor [Thu, 13 Jan 2011 20:23:19 +0000 (20:23 +0000)]
Don't exit mksysinfo.sh if there is no _user_regs_struct.

From-SVN: r168764