]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
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

13 years agore PR c++/47213 (ICE: SIGSEGV in determine_visibility (decl2.c:2076) with -fvisibilit...
Kai Tietz [Thu, 13 Jan 2011 20:01:57 +0000 (20:01 +0000)] 
re PR c++/47213 (ICE: SIGSEGV in determine_visibility (decl2.c:2076) with -fvisibility-ms-compat)

2011-01-13  Kai Tietz  <kai.tietz@onevision.com>

PR c++/47213
* g++.dg/ext/pr47213.C: New.

2011-01-13  Kai Tietz  <kai.tietz@onevision.com>

PR c++/47213
* cp-tree.h (CLASSTYPE_VISIBILITY): Use
TYPE_MAIN_DECL instead of TYPE_NAME.
(CLASSTYPE_VISIBILITY_SPECIFIED): Likewise.
* decl2.c (determine_visibility): Add check
of CLASS_TYPE_P for underlying_type.

2011-01-13  Kai Tietz  <kai.tietz@onevision.com>

PR c++/47213
* config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
PE specific hook.
* config/i386/i386-protos.h (i386_pe_assemble_visibility):
New function prototype.
* config/i386/winnt.c (i386_pe_assemble_visibility):
Warn only if attribute was specified by user.

From-SVN: r168763

13 years agobackport: ltmain.sh (relink): Use absolute path when hardcoding with -L.
John David Anglin [Thu, 13 Jan 2011 18:51:10 +0000 (18:51 +0000)] 
backport: ltmain.sh (relink): Use absolute path when hardcoding with -L.

Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L.

/:
* ltmain.sh (relink): Use absolute path when hardcoding with -L.

From-SVN: r168762

13 years ago* gfortran.dg/cray_pointers_2.f90: Use dg-timeout-factor 4.
Rainer Orth [Thu, 13 Jan 2011 18:20:42 +0000 (18:20 +0000)] 
* gfortran.dg/cray_pointers_2.f90: Use dg-timeout-factor 4.

From-SVN: r168759

13 years agoResync with GDB (from "port GDB to ia64-hpux (native).")
Joel Brobecker [Thu, 13 Jan 2011 18:05:35 +0000 (18:05 +0000)] 
Resync with GDB (from "port GDB to ia64-hpux (native).")

ChangeLog:

            * configure.ac: Remove readline, mmalloc, and gdb from noconfigdirs
            for ia64-hpux.
            * configure: Regenerate.

From-SVN: r168758

13 years agore PR fortran/47260 (DLLEXPORT: TREE_PUBLIC for procedures lost between trans-decl...
Kai Tietz [Thu, 13 Jan 2011 18:04:03 +0000 (18:04 +0000)] 
re PR fortran/47260 (DLLEXPORT: TREE_PUBLIC for procedures lost between trans-decl.c and tree.c)

2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
            Tobias Burnus  <burnus@net-b.de>

        PR fortran/47260
        * trans-decl.c (gfc_get_extern_function_decl,
        build_function_decl): Set TREE_PUBLIC/TREE_EXTERNAL before
        calling decl_attributes.

Co-Authored-By: Tobias Burnus <burnus@net-b.de>
From-SVN: r168757

13 years agore PR fortran/45848 ([OOP] ICE on invalid code in fortran/symbol.c:2410)
Tobias Burnus [Thu, 13 Jan 2011 16:32:33 +0000 (17:32 +0100)] 
re PR fortran/45848 ([OOP] ICE on invalid code in fortran/symbol.c:2410)

2011-01-13  Tobias Burnus  <burnus@net-b.de>
            Mikael Morin  <mikael@gcc.gnu.org>

        PR fortran/45848
        PR fortran/47204
        * gfortran.h (gfc_code): Move union ext's case_list into
        the struct block.
        * dump-parse-tree.c (show_code_node): Adapt by prefixing
        * case_list
        by "block.".
        * frontend-passes.c (gfc_code_walker): Ditto.
        * match.c (gfc_match_goto, gfc_match_call, gfc_match_case,
        gfc_match_type_is, gfc_match_class_is): Ditto.
        * resolve.c (resolve_select, resolve_select_type): Ditto.
        * st.c (gfc_free_statement): Ditto.
        * trans-stmt.c (gfc_trans_integer_select,
        * gfc_trans_logical_select,
        gfc_trans_character_select): Ditto.
        * parse.c (resolve_all_program_units): For error recovery, avoid
        segfault is proc_name is NULL.

2011-01-13  Tobias Burnus  <burnus@net-b.de>
            Mikael Morin  <mikael@gcc.gnu.org>

        PR fortran/45848
        PR fortran/47204
        * gfortran.dg/select_type_20.f90: New.
        * gfortran.dg/select_type_21.f90: New.

Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
From-SVN: r168753

13 years agoFix 47251, failure in powerpc -mcpu=power7 -m32 -msoft-float
Michael Meissner [Thu, 13 Jan 2011 15:59:19 +0000 (15:59 +0000)] 
Fix 47251, failure in powerpc -mcpu=power7 -m32 -msoft-float

From-SVN: r168752

13 years agopr36728-1.c: Disable arg1/2 checks for s390 and s390x.
Andreas Krebbel [Thu, 13 Jan 2011 13:46:24 +0000 (13:46 +0000)] 
pr36728-1.c: Disable arg1/2 checks for s390 and s390x.

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

* gcc.dg/guality/pr36728-1.c: Disable arg1/2 checks for s390 and
s390x.
* gcc.dg/guality/pr36728-2.c: Likewise.

From-SVN: r168749

13 years agos390.c (print_operand_address): Replace 'error' with 'output_operand_lossage'.
Andreas Krebbel [Thu, 13 Jan 2011 13:45:00 +0000 (13:45 +0000)] 
s390.c (print_operand_address): Replace 'error' with 'output_operand_lossage'.

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

* config/s390/s390.c (print_operand_address): Replace 'error' with
'output_operand_lossage'.
(print_operand): Likewise.

From-SVN: r168748

13 years agore PR rtl-optimization/39077 (GCSE-optimization causes enormous binary size increase...
Jeff Law [Thu, 13 Jan 2011 13:41:03 +0000 (06:41 -0700)] 
re PR rtl-optimization/39077 (GCSE-optimization causes enormous binary size increase (~20 times !))

* PR rtl-optimization/39077
* doc/invoke.texi (max-gcse-insertion-ratio): Document.
* params.h (MAX_GCSE_INSERTION_RATIO): Define.
* params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
* lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
* gcse.c (prune_insertions_deletions): New function.
(compute_pre_data): Use it.

From-SVN: r168747

13 years agoFix PR debug/PR46973
Dodji Seketeli [Thu, 13 Jan 2011 09:48:04 +0000 (09:48 +0000)] 
Fix PR debug/PR46973

gcc/

* dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
static function.
(prune_unused_types_mark): Use it.

gcc/testsuite/

* g++.dg/debug/dwarf2/template-params-9.C: New test.

From-SVN: r168743

13 years agore PR rtl-optimization/45352 (ICE: in reset_sched_cycles_in_current_ebb, at sel-sched...
Andrey Belevantsev [Thu, 13 Jan 2011 09:29:09 +0000 (12:29 +0300)] 
re PR rtl-optimization/45352 (ICE: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7058)

        PR rtl-optimization/45352
        * sel-sched.c: Update copyright years.
        (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
        in the advancing loop when we have issued issue_rate insns.

* gcc.dg/pr45352-3.c: New.

From-SVN: r168742

13 years agoFix minor issues
Eric Botcazou [Thu, 13 Jan 2011 07:35:42 +0000 (07:35 +0000)] 
Fix minor issues

From-SVN: r168741

13 years agoUse GOARCH value of sparc64 rather than sparcv9.
Ian Lance Taylor [Thu, 13 Jan 2011 06:18:45 +0000 (06:18 +0000)] 
Use GOARCH value of sparc64 rather than sparcv9.

From-SVN: r168740

13 years agoAdd some Solaris support to mksysinfo.sh.
Ian Lance Taylor [Thu, 13 Jan 2011 05:42:40 +0000 (05:42 +0000)] 
Add some Solaris support to mksysinfo.sh.

From Rainer Orth.

From-SVN: r168739

13 years agoClean up syscalls, add some Solaris support.
Ian Lance Taylor [Thu, 13 Jan 2011 05:17:52 +0000 (05:17 +0000)] 
Clean up syscalls, add some Solaris support.

From-SVN: r168738

13 years ago* ja.po: Update.
Joseph Myers [Thu, 13 Jan 2011 02:30:06 +0000 (02:30 +0000)] 
* ja.po: Update.

From-SVN: r168737

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

From-SVN: r168736

13 years agore PR libstdc++/47045 (NetBSD: define changes in ctype.h)
Jonathan Wakely [Thu, 13 Jan 2011 00:02:41 +0000 (00:02 +0000)] 
re PR libstdc++/47045 (NetBSD: define changes in ctype.h)

2011-01-13  Jonathan Wakely  <jwakely.gcc@gmail.com>

PR libstdc++/47045
* config/os/bsd/netbsd/ctype_base.h: Use new macros based on version.

From-SVN: r168732

13 years agocp-tree.h (begin_for_scope): New prototype.
Rodrigo Rivas Costa [Wed, 12 Jan 2011 23:52:56 +0000 (23:52 +0000)] 
cp-tree.h (begin_for_scope): New prototype.

* cp-tree.h (begin_for_scope): New prototype.
(begin_for_stmt): Update prototype.
(begin_range_for_stmt): Update prototype.
* init.c (build_vec_init): Update call to begin_for_stmt.
* parser.c (cp_parser_for): New.
(cp_parser_c_for): Add three new parameters.
(cp_parser_range_for): Likewise. Most parsing code removed.
(cp_parser_iteration_statement): Call cp_parser_for instead of
cp_parser_c_for and cp_parser_range_for.
(cp_parser_for_init_statement): Add new parameter and return type.
(cp_parser_block_declaration): Update call to
cp_parser_simple_declaration.
(cp_parser_simple_declaration): Add new parameter.
Update call to cp_parser_init_declarator.
(cp_parser_init_declarator): Add new parameter.
* pt.c (tsubst_expr): Update call to begin_for_stmt.
* semantics.c (begin_for_scope): New.
(begin_for_stmt): Add two new parameters.
(begin_range_for_stmt): Likewise.

From-SVN: r168731

13 years agoUse correct nm and nm options.
Ian Lance Taylor [Wed, 12 Jan 2011 23:06:13 +0000 (23:06 +0000)] 
Use correct nm and nm options.

From-SVN: r168730

13 years agoMake using DejaGNU work for libgo testing on a native system.
Ian Lance Taylor [Wed, 12 Jan 2011 21:56:10 +0000 (21:56 +0000)] 
Make using DejaGNU work for libgo testing on a native system.

From-SVN: r168729

13 years agomn10300: Auto-clobber the flags in asms.
Richard Henderson [Wed, 12 Jan 2011 17:59:31 +0000 (09:59 -0800)] 
mn10300: Auto-clobber the flags in asms.

From-SVN: r168725

13 years agomn10300: Add delegitimize_address hook.
Richard Henderson [Wed, 12 Jan 2011 17:56:15 +0000 (09:56 -0800)] 
mn10300: Add delegitimize_address hook.

This suppresses warnings generated by the dwarf2 output
routines about uninterpretable addresses.

From-SVN: r168724

13 years agomn10300: Add clzsi2.
Richard Henderson [Wed, 12 Jan 2011 17:53:50 +0000 (09:53 -0800)] 
mn10300: Add clzsi2.

From-SVN: r168723

13 years agomn10300: Emit clr.
Richard Henderson [Wed, 12 Jan 2011 17:51:40 +0000 (09:51 -0800)] 
mn10300: Emit clr.

From-SVN: r168722

13 years agomn10300: Force lower-subreg pass to run.
Richard Henderson [Wed, 12 Jan 2011 17:47:02 +0000 (09:47 -0800)] 
mn10300: Force lower-subreg pass to run.

There are a number of tests that fail -- generally ones involving
generic vectorization -- at -O0 because we run out of registers.
The lower-subreg pass cleans things up sufficiently to allow these
tests to succeed.

From-SVN: r168721

13 years agomn10300: Clean up trampoline handling
Richard Henderson [Wed, 12 Jan 2011 17:45:42 +0000 (09:45 -0800)] 
mn10300: Clean up trampoline handling

The old code was failing in the testsuite.  I didn't try to
debug exactly why, since the existing code was needlessly
complex.

From-SVN: r168720

13 years agos390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
Anatoly Sokolov [Wed, 12 Jan 2011 17:40:06 +0000 (20:40 +0300)] 
s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.

* config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
* config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
* config/s390/s390.c (s390_output_addr_const_extra): Make static.
(TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.

From-SVN: r168719

13 years agore PR debug/47209 (ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627) with...
Kai Tietz [Wed, 12 Jan 2011 17:02:41 +0000 (17:02 +0000)] 
re PR debug/47209 (ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627) with -f{no-,}emit-struct-debug-{baseonly,reduced} -g)

2011-01-12  Kai Tietz  <kai.tietz@onevision.com>

PR debug/47209
* dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
of type.

2011-01-12  Kai Tietz  <kai.tietz@onevision.com>

PR debug/47209
* g++.dg/debug/pr47209.C: New.

From-SVN: r168718

13 years agore PR driver/47244 (plugin linker is used unconditionally)
Jan Hubicka [Wed, 12 Jan 2011 15:47:29 +0000 (16:47 +0100)] 
re PR driver/47244 (plugin linker is used unconditionally)

PR driver/47244
* gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
(PLUGIN_COND_CLOSE): New macro.
(LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.

From-SVN: r168717

13 years agore PR lto/47259 (LTO and global register variable)
Richard Guenther [Wed, 12 Jan 2011 15:21:59 +0000 (15:21 +0000)] 
re PR lto/47259 (LTO and global register variable)

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

PR lto/47259
* gcc.dg/lto/pr47259_0.c: New testcase.
* gcc.dg/lto/pr47259_1.c: Likewise.

From-SVN: r168715

13 years agore PR lto/47259 (LTO and global register variable)
Richard Guenther [Wed, 12 Jan 2011 15:01:09 +0000 (15:01 +0000)] 
re PR lto/47259 (LTO and global register variable)

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

PR lto/47259
* lto-streamer-out.c (output_gimple_stmt): Do not wrap
register variables in a MEM_REF.

From-SVN: r168713

13 years agoconfig.gcc (arm*-*-linux*, [...]): Use gnu-user.h before linux.h.
Joseph Myers [Wed, 12 Jan 2011 14:29:14 +0000 (14:29 +0000)] 
config.gcc (arm*-*-linux*, [...]): Use gnu-user.h before linux.h.

* config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
am33_2.0-*-linux*): Use gnu-user.h before linux.h.
* config/gnu-user.h: New.  Copied from linux.h.
(LINUX_TARGET_STARTFILE_SPEC): Rename to
GNU_USER_TARGET_STARTFILE_SPEC.
(LINUX_TARGET_ENDFILE_SPEC): Rename to
GNU_USER_TARGET_ENDFILE_SPEC.
(LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
(LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
(OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
* config/arm/linux-eabi.h (CC1_SPEC): Use
GNU_USER_TARGET_CC1_SPEC.
(LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
(STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
(ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
* config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.

From-SVN: r168711

13 years agore PR c/46946 (contradiction in docs for -Ofast and -ffast-math)
Richard Guenther [Wed, 12 Jan 2011 12:07:44 +0000 (12:07 +0000)] 
re PR c/46946 (contradiction in docs for -Ofast and -ffast-math)

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

PR other/46946
* doc/invoke.texi (ffast-math): Document it is turned on
with -Ofast.

From-SVN: r168709

13 years agore PR lto/47264 (Many tests fail with -flto due unaligned load in lto-plugin.c)
Richard Guenther [Wed, 12 Jan 2011 12:04:39 +0000 (12:04 +0000)] 
re PR lto/47264 (Many tests fail with -flto due unaligned load in lto-plugin.c)

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

PR lto/47264
* lto-plugin.c (parse_table_entry): Use memcpy to access
unaligned fields.

From-SVN: r168708

13 years agodwarf2.h: Update value for DW_AT_hi_user.
Iain Sandoe [Wed, 12 Jan 2011 11:18:49 +0000 (11:18 +0000)] 
dwarf2.h: Update value for DW_AT_hi_user.

include:

* dwarf2.h: Update value for DW_AT_hi_user.

From-SVN: r168707

13 years agoFix long line
Eric Botcazou [Wed, 12 Jan 2011 11:07:50 +0000 (11:07 +0000)] 
Fix long line

From-SVN: r168706

13 years agoObject1.h: Add copyright header, update comments.
Iain Sandoe [Wed, 12 Jan 2011 11:04:14 +0000 (11:04 +0000)] 
Object1.h: Add copyright header, update comments.

gcc/testsuite:

* objc-obj-c++-shared/Object1.h: Add copyright header, update
comments.  Add a TEST_SUITE_ADDITIONS category for GNU runtime.
Amend NeXT version to declare a TEST_SUITE_ADDITIONS carrying the
methods missing from the OBJC2 Object.
* objc-obj-c++-shared/Object1-implementation.h: Add copyright header.
Amend implementation to use a TEST_SUITE_ADDITIONS category for both GNU
and NeXT runtimes.
* objc-obj-c++-shared/Object1.mm: Remove redundant header, update
comments.
* objc-obj-c++-shared/Object1.m: Likewise.
* objc.dg/encode-3.m: Update header use.  Amend to be API2 compatible.
* objc.dg/proto-qual-1.m: Likewise.
* obj-c++.dg/proto-lossage-3.mm: Likewise.
* obj-c++.dg/proto-qual-1.mm: Likewise.

From-SVN: r168705

13 years agore PR testsuite/33033 (FAIL: gcc.dg/20061124-1.c: undefined reference to `__sync_add_...
Eric Botcazou [Wed, 12 Jan 2011 10:52:25 +0000 (10:52 +0000)] 
re PR testsuite/33033 (FAIL: gcc.dg/20061124-1.c: undefined reference to `__sync_add_and_fetch_2')

PR testsuite/33033
* gcc.dg/20061124-1.c: Pass -mcpu=v9 on the SPARC.

From-SVN: r168701