OSDN Git Service

pf3gnuchains/gcc-fork.git
13 years ago PR fortran/46402
jakub [Sun, 16 Jan 2011 16:40:05 +0000 (16:40 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168852 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-16 François Dumont <francois.cppdevs@free.fr>
fdumont [Sun, 16 Jan 2011 10:35:28 +0000 (10:35 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168850 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168849 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168845 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR tree-optimization/47276
hubicka [Sat, 15 Jan 2011 15:44:56 +0000 (15:44 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168844 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-15 Giovanni Funchal <gafunchal@gmail.com>
redi [Sat, 15 Jan 2011 14:41:09 +0000 (14:41 +0000)]
2011-01-15  Giovanni Funchal  <gafunchal@gmail.com>
    Jonathan Wakely  <jwakely.gcc@gmail.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168843 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sat, 15 Jan 2011 06:42:30 +0000 (06:42 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168832 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Sat, 15 Jan 2011 00:27:10 +0000 (00:27 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168831 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168830 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-15 Martin Jambor <mjambor@suse.cz>
jamborm [Fri, 14 Jan 2011 23:19:08 +0000 (23:19 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168826 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Martin Jambor <mjambor@suse.cz>
jamborm [Fri, 14 Jan 2011 23:00:59 +0000 (23:00 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168825 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR 19162
mrs [Fri, 14 Jan 2011 21:50:11 +0000 (21:50 +0000)]
PR 19162
* objc-act.c (generate_struct_by_value_array): Do not output a
definition for struct_forward_array.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168824 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Ben Elliston <bje@au.ibm.com>
mrs [Fri, 14 Jan 2011 21:38:17 +0000 (21:38 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168823 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR c++/47289
jason [Fri, 14 Jan 2011 21:26:47 +0000 (21:26 +0000)]
PR c++/47289
* pt.c (coerce_template_parms): Fix error recovery.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168822 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
jsm28 [Fri, 14 Jan 2011 21:03:22 +0000 (21:03 +0000)]
* config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
* config/i386/i386.opt (msse5): New Alias.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168821 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
jsm28 [Fri, 14 Jan 2011 21:02:06 +0000 (21:02 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168820 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
jsm28 [Fri, 14 Jan 2011 21:01:18 +0000 (21:01 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168819 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
jsm28 [Fri, 14 Jan 2011 20:59:52 +0000 (20:59 +0000)]
* config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
-fvec-eabi.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168818 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
mrs [Fri, 14 Jan 2011 19:37:16 +0000 (19:37 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168817 138bc75d-0d04-0410-961f-82ee72b054a4

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

From Rainer Orth.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168816 138bc75d-0d04-0410-961f-82ee72b054a4

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

From Rainer Orth.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168815 138bc75d-0d04-0410-961f-82ee72b054a4

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

Mostly from Rainer Orth.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168814 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
jsm28 [Fri, 14 Jan 2011 18:56:52 +0000 (18:56 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168813 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/microblaze/microblaze.h (ASM_SPEC): Remove
jsm28 [Fri, 14 Jan 2011 18:55:27 +0000 (18:55 +0000)]
* config/microblaze/microblaze.h (ASM_SPEC): Remove
%{microblaze1}.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168812 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
jsm28 [Fri, 14 Jan 2011 18:54:16 +0000 (18:54 +0000)]
* config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168810 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
jsm28 [Fri, 14 Jan 2011 18:53:16 +0000 (18:53 +0000)]
* config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
-nodefaultlib.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168809 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
jsm28 [Fri, 14 Jan 2011 18:51:46 +0000 (18:51 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168808 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
jsm28 [Fri, 14 Jan 2011 18:47:52 +0000 (18:47 +0000)]
* config/avr/avr.h (CPP_SPEC): Don't handle -posix.
(CC1_SPEC): Don't handle -profile.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168807 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-08 Dominique d'Humieres <dominiq@lps.ens.fr>
ro [Fri, 14 Jan 2011 18:47:50 +0000 (18:47 +0000)]
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-*-*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168806 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
jsm28 [Fri, 14 Jan 2011 18:47:00 +0000 (18:47 +0000)]
* config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
* config/mips/mips.h (CC1_SPEC): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168805 138bc75d-0d04-0410-961f-82ee72b054a4

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

From Rainer Orth.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168804 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
jsm28 [Fri, 14 Jan 2011 18:46:24 +0000 (18:46 +0000)]
* config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
* config/mips/mips.h (CC1_SPEC): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168803 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
jsm28 [Fri, 14 Jan 2011 18:45:06 +0000 (18:45 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168802 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
jsm28 [Fri, 14 Jan 2011 18:42:32 +0000 (18:42 +0000)]
* config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
%{version:-v}.
* config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168801 138bc75d-0d04-0410-961f-82ee72b054a4

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

From Rainer Orth.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168800 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
jsm28 [Fri, 14 Jan 2011 18:41:05 +0000 (18:41 +0000)]
* config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
* config/sparc/sp64-elf.h (ASM_SPEC): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168799 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168798 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168797 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 14 Jan 2011 17:17:32 +0000 (17:17 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168796 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
ro [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: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168795 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Jan Hubicka <jh@suse.cz>
rguenth [Fri, 14 Jan 2011 15:42:09 +0000 (15:42 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168793 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 14 Jan 2011 15:02:20 +0000 (15:02 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168788 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 14 Jan 2011 14:58:01 +0000 (14:58 +0000)]
2011-01-14  Richard Guenther  <rguenther@suse.de>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168787 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168786 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 14 Jan 2011 13:20:22 +0000 (13:20 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168784 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR c++/46903
jason [Fri, 14 Jan 2011 13:08:11 +0000 (13:08 +0000)]
PR c++/46903
* typeck2.c (check_narrowing): Only check arithmetic types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168783 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR c++/46688
jason [Fri, 14 Jan 2011 13:08:02 +0000 (13:08 +0000)]
PR c++/46688
* tree.c (build_vec_init_expr): Handle flexible array
properly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168782 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 14 Jan 2011 12:39:09 +0000 (12:39 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168781 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 14 Jan 2011 12:15:43 +0000 (12:15 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168779 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Martin Jambor <mjambor@suse.cz>
jamborm [Fri, 14 Jan 2011 11:59:07 +0000 (11:59 +0000)]
2011-01-14  Martin Jambor  <mjambor@suse.cz>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168778 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-14 Tobias Burnus <burnus@net-b.de>
burnus [Fri, 14 Jan 2011 07:18:54 +0000 (07:18 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168776 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoThe type of a string slice is the type of the string being sliced.
ian [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168775 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168774 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-13 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 14 Jan 2011 01:21:51 +0000 (01:21 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168773 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168770 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-13 Tobias Burnus <burnus@net-b.de>
burnus [Thu, 13 Jan 2011 22:00:50 +0000 (22:00 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168766 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
aesok [Thu, 13 Jan 2011 20:24:19 +0000 (20:24 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168765 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168764 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-13 Kai Tietz <kai.tietz@onevision.com>
ktietz [Thu, 13 Jan 2011 20:01:57 +0000 (20:01 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168763 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoBackport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L.
rwild [Thu, 13 Jan 2011 18:51:10 +0000 (18:51 +0000)]
Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168762 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168759 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoResync with GDB (from "port GDB to ia64-hpux (native).")
brobecke [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168758 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-13 Kai Tietz <kai.tietz@onevision.com>
burnus [Thu, 13 Jan 2011 18:04:03 +0000 (18:04 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168757 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-13 Tobias Burnus <burnus@net-b.de>
burnus [Thu, 13 Jan 2011 16:32:33 +0000 (16:32 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168753 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168752 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Thu, 13 Jan 2011 13:46:24 +0000 (13:46 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168749 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Thu, 13 Jan 2011 13:45:00 +0000 (13:45 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168748 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * PR rtl-optimization/39077
law [Thu, 13 Jan 2011 13:41:03 +0000 (13:41 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168747 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoFix PR debug/PR46973
dodji [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168743 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR rtl-optimization/45352
abel [Thu, 13 Jan 2011 09:29:09 +0000 (09:29 +0000)]
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168742 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168741 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168740 138bc75d-0d04-0410-961f-82ee72b054a4

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

From Rainer Orth.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168739 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168738 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168737 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168736 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-13 Jonathan Wakely <jwakely.gcc@gmail.com>
redi [Thu, 13 Jan 2011 00:02:41 +0000 (00:02 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168732 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * cp-tree.h (begin_for_scope): New prototype.
jason [Wed, 12 Jan 2011 23:52:56 +0000 (23:52 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168731 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168730 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168729 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168725 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agomn10300: Add delegitimize_address hook.
rth [Wed, 12 Jan 2011 17:56:15 +0000 (17:56 +0000)]
mn10300: Add delegitimize_address hook.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168724 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agomn10300: Add clzsi2.
rth [Wed, 12 Jan 2011 17:53:50 +0000 (17:53 +0000)]
mn10300: Add clzsi2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168723 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agomn10300: Emit clr.
rth [Wed, 12 Jan 2011 17:51:40 +0000 (17:51 +0000)]
mn10300: Emit clr.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168722 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agomn10300: Force lower-subreg pass to run.
rth [Wed, 12 Jan 2011 17:47:02 +0000 (17:47 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168721 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agomn10300: Clean up trampoline handling
rth [Wed, 12 Jan 2011 17:45:42 +0000 (17:45 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168720 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
aesok [Wed, 12 Jan 2011 17:40:06 +0000 (17:40 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168719 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-12 Kai Tietz <kai.tietz@onevision.com>
ktietz [Wed, 12 Jan 2011 17:02:41 +0000 (17:02 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168718 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR driver/47244
hubicka [Wed, 12 Jan 2011 15:47:29 +0000 (15:47 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168717 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-12 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 12 Jan 2011 15:21:59 +0000 (15:21 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168715 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-12 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 12 Jan 2011 15:01:09 +0000 (15:01 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168713 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
jsm28 [Wed, 12 Jan 2011 14:29:14 +0000 (14:29 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168711 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-12 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 12 Jan 2011 12:07:44 +0000 (12:07 +0000)]
2011-01-12  Richard Guenther  <rguenther@suse.de>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168709 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2011-01-12 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 12 Jan 2011 12:04:39 +0000 (12:04 +0000)]
2011-01-12  Richard Guenther  <rguenther@suse.de>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168708 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoinclude:
iains [Wed, 12 Jan 2011 11:18:49 +0000 (11:18 +0000)]
include:

* dwarf2.h: Update value for DW_AT_hi_user.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168707 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168706 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/testsuite:
iains [Wed, 12 Jan 2011 11:04:14 +0000 (11:04 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168705 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR testsuite/33033
ebotcazou [Wed, 12 Jan 2011 10:52:25 +0000 (10:52 +0000)]
PR testsuite/33033
* gcc.dg/20061124-1.c: Pass -mcpu=v9 on the SPARC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168701 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR tree-optimization/47233
hubicka [Wed, 12 Jan 2011 10:39:39 +0000 (10:39 +0000)]
PR tree-optimization/47233
* opts.c (common_handle_option): Disable ipa-reference with profile feedback.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168700 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoIn gcc/testsuite/:
nicola [Wed, 12 Jan 2011 09:46:56 +0000 (09:46 +0000)]
In gcc/testsuite/:
2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>

Fixed the Objective-C++ testsuite and updated all tests.
* lib/obj-c++.exp (obj-c++_init): Declare and set
gcc_warning_prefix and gcc_error_prefix.
* obj-c++.dg/attributes/categ-attribute-2.mm: Fixed usage of
'dg-warning', 'dg-message' and 'dg-error'.
* obj-c++.dg/class-extension-3.mm: Likewise.
* obj-c++.dg/class-protocol-1.mm: Likewise.
* obj-c++.dg/cxx-scope-2.mm: Likewise.
* obj-c++.dg/encode-7.mm: Likewise.
* obj-c++.dg/exceptions-3.mm: Likewise.
* obj-c++.dg/exceptions-5.mm: Likewise.
* obj-c++.dg/method-12.mm: Likewise.
* obj-c++.dg/method-13.mm: Likewise.
* obj-c++.dg/method-15.mm: Likewise.
* obj-c++.dg/method-16.mm: Likewise.
* obj-c++.dg/method-4.mm: Likewise.
* obj-c++.dg/method-8.mm: Likewise.
* obj-c++.dg/method-conflict-1.mm: Likewise.
* obj-c++.dg/method-conflict-2.mm: Likewise.
* obj-c++.dg/method-conflict-3.mm: Likewise. Also, removed FIXME
and uncommented second part of the testcase now that the testsuite
works correctly.
* obj-c++.dg/method-conflict-4.mm: Likewise.  Also, removed FIXME
and uncommented second part of the testcase now that the testsuite
works correctly.
* obj-c++.dg/private-1.mm: Likewise.
* obj-c++.dg/proto-lossage-4.mm: Likewise.
* obj-c++.dg/syntax-error-7.mm: Likewise.
* obj-c++.dg/warn5.mm: Likewise.
* obj-c++.dg/property/at-property-14.mm: Likewise.
* obj-c++.dg/property/at-property-16.mm: Likewise, and removed
FIXME.
* obj-c++.dg/property/at-property-18.mm: Likewise.
* obj-c++.dg/property/at-property-20.mm: Likewise, and removed
FIXME.
* obj-c++.dg/property/at-property-21.mm: Likewise.
* obj-c++.dg/property/at-property-28.mm: Likewise.
* obj-c++.dg/property/at-property-5.mm: Likewise.
* obj-c++.dg/property/dynamic-2.mm: Likewise.
* obj-c++.dg/property/property-neg-3.mm: Likewise.
* obj-c++.dg/property/synthesize-11.mm: Likewise.
* obj-c++.dg/property/synthesize-6.mm: Likewise.
* obj-c++.dg/property/synthesize-8.mm: Likewise.
* obj-c++.dg/property/synthesize-9.mm: Likewise.
* obj-c++.dg/tls/diag-5.mm: Likewise.
* obj-c++.dg/ivar-invalid-type-1.mm: Removed FIXME and uncommented
dg-error, now matched correctly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168699 138bc75d-0d04-0410-961f-82ee72b054a4