diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2012-03-14 17:08:03 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2012-03-14 17:08:03 +0000 |
commit | 7888f2660ec77865927a6c2e2f48ca357e610d34 (patch) | |
tree | 39b15eece6c1f4effe291a240aa3ff5c07c2fa1a /gcc | |
parent | 9fc4233a7f71afb113a75f62cec7f6758b05560e (diff) | |
download | gcc-7888f2660ec77865927a6c2e2f48ca357e610d34.zip gcc-7888f2660ec77865927a6c2e2f48ca357e610d34.tar.gz gcc-7888f2660ec77865927a6c2e2f48ca357e610d34.tar.bz2 |
Remove obsolete Solaris 8 support
libstdc++-v3:
* config/os/solaris/solaris2.8: Rename to ...
* config/os/solaris/solaris2.9: ... this.
* config/abi/post/solaris2.8: Rename to ...
* config/abi/post/solaris2.9: ... this.
* configure.host (os_include_dir): Remove solaris2.8.
Reflect renaming.
(abi_baseline_pair): Remove *-*-solaris2.8.
Reflect renaming.
* configure.ac (GLIBCXX_CHECK_MATH_PROTO): Remove
(GLIBCXX_CHECK_STDLIB_PROTO): Remove.
* acinclude.m4 (GLIBCXX_CHECK_MATH_PROTO): Remove
(GLIBCXX_CHECK_STDLIB_PROTO): Remove.
(GLIBCXX_CHECK_GTHREADS): Remove Solaris 8 handling.
* crossconfig.m4 (GLIBCXX_CROSSCONFIG): Remove *-solaris2.8
handling.
* configure: Regenerate.
* config.h.in: Regenerate.
* config/os/solaris/solaris2.9/os_defines.h
(__CORRECT_ISO_CPP_MATH_H_PROTO): Define.
(__CORRECT_ISO_CPP_STDLIB_H_PROTO): Define.
* include/c_global/cmath: Rename __CORRECT_ISO_CPP_MATH_H_PROTO1
to __CORRECT_ISO_CPP_MATH_H_PROTO.
[!__CORRECT_ISO_CPP_MATH_H_PROTO2]: Remove.
* include/tr1/cmath: Rename __CORRECT_ISO_CPP_MATH_H_PROTO1 to
__CORRECT_ISO_CPP_MATH_H_PROTO.
* doc/xml/manual/configure.xml (Configure, --enable-libstdcxx-threads):
Remove Solaris 8 reference.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
Don't xfail on *-*-solaris2.8.
* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc:
Likewise.
* testsuite/ext/enc_filebuf/char/13598.cc: Don't xfail on
*-*-solaris2.8.
libjava:
* configure.ac (THREADLIBS): Remove *-*-solaris2.8 handling.
* configure: Regenerate.
libgcc:
* config/i386/sol2-unwind.h (x86_fallback_frame_state): Remove
Solaris 8 handling.
* config/sparc/sol2-unwind.h (sparc64_is_sighandler): Remove
Solaris 8 handling.
(sparc_is_sighandler): Likewise.
libcpp:
* lex.c: Remove Solaris 8 reference.
gcc/testsuite:
* g++.dg/warn/miss-format-1.C: Remove *-*-solaris2.8 handling.
* gcc.dg/c99-stdint-6.c: Likewise.
* gcc.dg/lto/20090210_0.c: Likewise.
* gcc.dg/pr28796-2.c: Don't skip on sparc*-sun-solaris2.8.
* gcc.dg/pragma-init-fini.c: Don't skip on i?86-*-solaris2.8.
* gcc.dg/pragma-init-fini-2.c: Likewise.
* gcc.dg/torture/pr47917.c: Remove *-*-solaris2.8 handling.
* gcc.target/i386/pr22076.c: Remove i?86-*-solaris2.8 handling.
* gcc.target/i386/pr22152.c: Likewise.
* gcc.target/i386/vect8-ret.c: Likewise.
* lib/target-supports.exp (add_options_for_tls): Remove Solaris 8
handling.
gcc:
* config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
(*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
(i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
Solaris 8 support.
* configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
(ld_tls_support): Remove Solaris 8 references.
(lwp_dir, lwp_spec): Remove support for alternate thread library.
* acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.*
tests.
* configure: Regenerate.
* config.in: Regenerate.
* config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
* config/i386/sol2.h: Remove Solaris 8 references.
* doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
(i?86-*-solaris2.9): ... this.
Remove Solaris 8 references.
(Specific, *-*-solaris2*): Document Solaris 8 removal.
Remove Solaris 8 references.
fixincludes:
* inclhack.def (math_exception): Remove duplicate.
(solaris_cond_init): Remove.
(solaris_sys_va_list): Remove Solaris 8 support.
* fixincl.x: Regenerate.
* tests/base/pthread.h [SOLARIS_COND_INIT_CHECK]: Remove.
From-SVN: r185392
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 23 | ||||
-rw-r--r-- | gcc/acinclude.m4 | 18 | ||||
-rw-r--r-- | gcc/config.gcc | 12 | ||||
-rw-r--r-- | gcc/config.in | 6 | ||||
-rw-r--r-- | gcc/config/i386/sol2.h | 6 | ||||
-rw-r--r-- | gcc/config/sol2.h | 3 | ||||
-rwxr-xr-x | gcc/configure | 74 | ||||
-rw-r--r-- | gcc/configure.ac | 53 | ||||
-rw-r--r-- | gcc/doc/install.texi | 46 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 15 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/warn/miss-format-1.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/c99-stdint-6.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/20090210_0.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr28796-2.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pragma-init-fini-2.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pragma-init-fini.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr47917.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr22076.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr22152.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/vect8-ret.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 4 |
21 files changed, 79 insertions, 200 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a12bdeb..91590b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,28 @@ 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + * config.gcc (enable_obsolete): Remove *-*-solaris2.8*. + (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported. + (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove + Solaris 8 support. + * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*. + (ld_tls_support): Remove Solaris 8 references. + (lwp_dir, lwp_spec): Remove support for alternate thread library. + * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* + tests. + * configure: Regenerate. + * config.in: Regenerate. + + * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC. + * config/i386/sol2.h: Remove Solaris 8 references. + + * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ... + (i?86-*-solaris2.9): ... this. + Remove Solaris 8 references. + (Specific, *-*-solaris2*): Document Solaris 8 removal. + Remove Solaris 8 references. + +2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5. (mips-sgi-irix6.5*): Remove. * config.host (mips-sgi-irix*): Remove. diff --git a/gcc/acinclude.m4 b/gcc/acinclude.m4 index a394847..84b828f 100644 --- a/gcc/acinclude.m4 +++ b/gcc/acinclude.m4 @@ -461,23 +461,7 @@ changequote([,])dnl # error The C library not known to support .init_array/.fini_array # endif #endif -])],[ - case "${target}" in - *-*-solaris2.8*) - # .init_array/.fini_array support was introduced in Solaris 8 - # patches 109147-08 (sparc) and 109148-08 (x86). Since ld.so.1 and - # ld are guaranteed to be updated in lockstep, we can check ld -V - # instead. Unfortunately, proper ld version numbers were only - # introduced in rev. -14, so we check for that. - if test "$gcc_cv_sun_ld_vers_minor" -lt 272; then - gcc_cv_initfini_array=no - fi - ;; - *-*-solaris2.9* | *-*-solaris2.1[[0-9]]*) - # .init_array/.fini_array support is present since Solaris 9 FCS. - ;; - esac -], [gcc_cv_initfini_array=no]);; +])],, [gcc_cv_initfini_array=no]);; esac else AC_MSG_CHECKING(cross compile... guessing) diff --git a/gcc/config.gcc b/gcc/config.gcc index 6fb3b35..bf05d44 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -251,7 +251,6 @@ case ${target} in | arm*-*-uclinux* \ | arm*-wince-pe* \ | score-* \ - | *-*-solaris2.8* \ ) if test "x$enable_obsolete" != xyes; then echo "*** Configuration ${target} is obsolete." >&2 @@ -282,9 +281,9 @@ case ${target} in | *-*-rtemsaout* \ | *-*-rtemscoff* \ | *-*-solaris2 \ - | *-*-solaris2.[0-7] \ - | *-*-solaris2.[0-7].* \ - | *-*-sysv* \ + | *-*-solaris2.[0-8] \ + | *-*-solaris2.[0-8].* \ + | *-*-sysv* \ | vax-*-vms* \ ) echo "*** Configuration ${target} not supported" 1>&2 @@ -1321,9 +1320,8 @@ i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) # Set default arch_32 to pentium4, tune_32 to generic like the other # i386 targets, although config.guess defaults to i386-pc-solaris2*. case ${target} in - *-*-solaris2.[89]*) - # Solaris 8 and 9/x86 cannot execute SSE/SSE2 instructions by - # default. + *-*-solaris2.9*) + # Solaris 9/x86 cannot execute SSE/SSE2 instructions by default. with_arch_32=${with_arch_32:-pentiumpro} ;; *) diff --git a/gcc/config.in b/gcc/config.in index 9b8d206..8806012 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -1606,12 +1606,6 @@ #endif -/* Define to the linker flags to use for -pthread. */ -#ifndef USED_FOR_TARGET -#undef LIB_THREAD_LDFLAGS_SPEC -#endif - - /* Define to the library containing __tls_get_addr/___tls_get_addr. */ #ifndef USED_FOR_TARGET #undef LIB_TLS_SPEC diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h index 48dcfbb..43b34b8 100644 --- a/gcc/config/i386/sol2.h +++ b/gcc/config/i386/sol2.h @@ -1,6 +1,6 @@ /* Target definitions for GCC for Intel 80386 running Solaris 2 Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + 2004, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. Contributed by Fred Fish (fnf@cygnus.com). This file is part of GCC. @@ -21,7 +21,7 @@ along with GCC; see the file COPYING3. If not see /* Augment i386/unix.h version to return 8-byte vectors in memory, matching Sun Studio compilers until version 12, the only ones supported on - Solaris 8 and 9. */ + Solaris 9. */ #undef TARGET_SUBTARGET_DEFAULT #define TARGET_SUBTARGET_DEFAULT \ (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_VECT8_RETURNS) @@ -63,7 +63,7 @@ along with GCC; see the file COPYING3. If not see #define ASM_CPU_SPEC "" -/* Don't include ASM_PIC_SPEC. While the Solaris 8 and 9 assembler accepts +/* Don't include ASM_PIC_SPEC. While the Solaris 9 assembler accepts -K PIC, it gives many warnings: R_386_32 relocation is used for symbol "<symbol>" GNU as doesn't recognize -K at all. */ diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index b265f15..670dbaa 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -1,6 +1,6 @@ /* Operating system specific defines to be used when targeting GCC for any Solaris 2 system. - Copyright 2002, 2003, 2004, 2007, 2008, 2009, 2010, 2011 + Copyright 2002, 2003, 2004, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This file is part of GCC. @@ -173,7 +173,6 @@ along with GCC; see the file COPYING3. If not see %{static:-dn -Bstatic} \ %{shared:-G -dy %{!mimpure-text:-z text}} \ %{symbolic:-Bsymbolic -G -dy -z text} \ - %{pthreads|pthread|fprofile-generate*:" LIB_THREAD_LDFLAGS_SPEC "} \ %(link_arch) \ %{Qy:} %{!Qn:-Qy}" diff --git a/gcc/configure b/gcc/configure index ad34e55..9bf2298 100755 --- a/gcc/configure +++ b/gcc/configure @@ -22264,15 +22264,6 @@ else hppa64*-*-hpux* | ia64*-*-hpux*) gcc_cv_ld_hidden=yes ;; - *-*-solaris2.8*) - # .hidden support was backported to Solaris 8, starting with ld - # version 1.276. - if test "$ld_vers_minor" -ge 276; then - gcc_cv_ld_hidden=yes - else - gcc_cv_ld_hidden=no - fi - ;; *-*-solaris2.9* | *-*-solaris2.1[0-9]*) # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but # .symbolic was only added in Solaris 9 12/02. @@ -22470,22 +22461,6 @@ EOF _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : - case "${target}" in - *-*-solaris2.8*) - # .init_array/.fini_array support was introduced in Solaris 8 - # patches 109147-08 (sparc) and 109148-08 (x86). Since ld.so.1 and - # ld are guaranteed to be updated in lockstep, we can check ld -V - # instead. Unfortunately, proper ld version numbers were only - # introduced in rev. -14, so we check for that. - if test "$gcc_cv_sun_ld_vers_minor" -lt 272; then - gcc_cv_initfini_array=no - fi - ;; - *-*-solaris2.9* | *-*-solaris2.1[0-9]*) - # .init_array/.fini_array support is present since Solaris 9 FCS. - ;; - esac - else gcc_cv_initfini_array=no fi @@ -23611,10 +23586,9 @@ if test $gcc_cv_as_tls = yes; then fi fi case "$target" in - # TLS was introduced in the Solaris 9 FCS release and backported to - # Solaris 8 patches. Support for GNU-style TLS on x86 was only - # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun - # ld and GCC don't support any longer. + # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style + # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier + # Sun style that Sun ld and GCC don't support any longer. *-*-solaris2.*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; } @@ -23626,14 +23600,6 @@ $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; } ld_tls_support=yes else case "$target" in - # Solaris 8/x86 ld has GNU style TLS support since version 1.280. - i?86-*-solaris2.8) - min_tls_ld_vers_minor=280 - ;; - # Solaris 8/SPARC ld has TLS support since version 1.272. - sparc*-*-solaris2.8) - min_tls_ld_vers_minor=272 - ;; # Solaris 9/x86 ld has GNU style TLS support since version 1.374. i?86-*-solaris2.9) min_tls_ld_vers_minor=374 @@ -23658,33 +23624,6 @@ $as_echo "$ld_tls_support" >&6; } LIBS= LDFLAGS= - { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5 -$as_echo_n "checking alternate thread library... " >&6; } - case "$target" in - # TLS support was backported to Solaris 8 patches, but only lives in - # the alternate thread library which became the default in Solaris 9. - # We want to always use that, irrespective of TLS support. - *-*-solaris2.8) - # Take multilib subdir into account. There's no spec to handle - # this. The 64 symlink exists since Solaris 8. - lwp_dir=/usr/lib/lwp - lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}" - LDFLAGS="-L$lwp_dir -R$lwp_dir" - ;; - *-*-solaris2*) - lwp_dir="none" - lwp_spec="" - ;; - esac - # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support. - -cat >>confdefs.h <<_ACEOF -#define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec" -_ACEOF - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5 -$as_echo "$lwp_dir" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5 $as_echo_n "checking library containing $tga_func... " >&6; } # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr @@ -23754,13 +23693,6 @@ fi if test $set_have_as_tls = no; then LIBS= fi - # Even without TLS support on Solaris 8, explicitly link with libthread - # to guarantee that the alternate thread library is used. - case "$target" in - *-*-solaris2.8) - LIBS=-lthread - ;; - esac # Always define LIB_TLS_SPEC, even without TLS support. cat >>confdefs.h <<_ACEOF diff --git a/gcc/configure.ac b/gcc/configure.ac index c3d203a..807a410 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -2345,15 +2345,6 @@ else hppa64*-*-hpux* | ia64*-*-hpux*) gcc_cv_ld_hidden=yes ;; - *-*-solaris2.8*) - # .hidden support was backported to Solaris 8, starting with ld - # version 1.276. - if test "$ld_vers_minor" -ge 276; then - gcc_cv_ld_hidden=yes - else - gcc_cv_ld_hidden=no - fi - ;; *-*-solaris2.9* | *-*-solaris2.1[0-9]*) # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but # .symbolic was only added in Solaris 9 12/02. @@ -3170,10 +3161,9 @@ else [set_have_as_tls=yes]) fi case "$target" in - # TLS was introduced in the Solaris 9 FCS release and backported to - # Solaris 8 patches. Support for GNU-style TLS on x86 was only - # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun - # ld and GCC don't support any longer. + # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style + # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier + # Sun style that Sun ld and GCC don't support any longer. *-*-solaris2.*) AC_MSG_CHECKING(linker and ld.so.1 TLS support) ld_tls_support=no @@ -3184,14 +3174,6 @@ case "$target" in ld_tls_support=yes else case "$target" in - # Solaris 8/x86 ld has GNU style TLS support since version 1.280. - i?86-*-solaris2.8) - min_tls_ld_vers_minor=280 - ;; - # Solaris 8/SPARC ld has TLS support since version 1.272. - sparc*-*-solaris2.8) - min_tls_ld_vers_minor=272 - ;; # Solaris 9/x86 ld has GNU style TLS support since version 1.374. i?86-*-solaris2.9) min_tls_ld_vers_minor=374 @@ -3215,28 +3197,6 @@ case "$target" in LIBS= LDFLAGS= - AC_MSG_CHECKING(alternate thread library) - case "$target" in - # TLS support was backported to Solaris 8 patches, but only lives in - # the alternate thread library which became the default in Solaris 9. - # We want to always use that, irrespective of TLS support. - *-*-solaris2.8) - # Take multilib subdir into account. There's no spec to handle - # this. The 64 symlink exists since Solaris 8. - lwp_dir=/usr/lib/lwp - lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}" - LDFLAGS="-L$lwp_dir -R$lwp_dir" - ;; - *-*-solaris2*) - lwp_dir="none" - lwp_spec="" - ;; - esac - # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support. - AC_DEFINE_UNQUOTED(LIB_THREAD_LDFLAGS_SPEC, "$lwp_spec", - [Define to the linker flags to use for -pthread.]) - AC_MSG_RESULT($lwp_dir) - AC_MSG_CHECKING(library containing $tga_func) # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr # (32-bit x86) only lived in libthread, so check for that. Keep @@ -3246,13 +3206,6 @@ case "$target" in if test $set_have_as_tls = no; then LIBS= fi - # Even without TLS support on Solaris 8, explicitly link with libthread - # to guarantee that the alternate thread library is used. - case "$target" in - *-*-solaris2.8) - LIBS=-lthread - ;; - esac # Always define LIB_TLS_SPEC, even without TLS support. AC_DEFINE_UNQUOTED(LIB_TLS_SPEC, "$LIBS", [Define to the library containing __tls_get_addr/___tls_get_addr.]) diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 96ae614..ab82fea 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -3014,7 +3014,7 @@ information are. @item @uref{#ix86-x-linux,,i?86-*-linux*} @item -@uref{#ix86-x-solaris289,,i?86-*-solaris2.[89]} +@uref{#ix86-x-solaris289,,i?86-*-solaris2.9} @item @uref{#ix86-x-solaris210,,i?86-*-solaris2.10} @item @@ -3551,8 +3551,8 @@ found on @uref{http://www.bitwizard.nl/sig11/,,www.bitwizard.nl}. @html <hr /> @end html -@heading @anchor{ix86-x-solaris289}i?86-*-solaris2.[89] -The Sun assembler in Solaris 8 and 9 has several bugs and limitations. +@heading @anchor{ix86-x-solaris29}i?86-*-solaris2.9 +The Sun assembler in Solaris 9 has several bugs and limitations. While GCC works around them, several features are missing, so it is @c FIXME: which ones? recommended to use the GNU assembler instead. There is no bundled @@ -3562,9 +3562,9 @@ work. Solaris@tie{}2/x86 doesn't support the execution of SSE/SSE2 instructions before Solaris@tie{}9 4/04, even if the CPU supports them. Programs will receive @code{SIGILL} if they try. The fix is available both in -Solaris@tie{}9 Update@tie{}6 and kernel patch 112234-12 or newer. There is no -corresponding patch for Solaris 8. To avoid this problem, -@option{-march} defaults to @samp{pentiumpro} on Solaris 8 and 9. If +Solaris@tie{}9 Update@tie{}6 and kernel patch 112234-12 or newer. To +avoid this problem, +@option{-march} defaults to @samp{pentiumpro} on Solaris 9. If you have the patch installed, you can configure GCC with an appropriate @option{--with-arch} option, but need GNU @command{as} for SSE2 support. @@ -4066,9 +4066,8 @@ supported as cross-compilation target only. @c alone is too unspecific and must be avoided. @heading @anchor{x-x-solaris2}*-*-solaris2* -Support for Solaris 8 has been obsoleted in GCC 4.7, but can still be -enabled by configuring with @option{--enable-obsolete}. Support will be -removed in GCC 4.8. Support for Solaris 7 has been removed in GCC 4.6. +Support for Solaris 8 has removed in GCC 4.8. Support for Solaris 7 has +been removed in GCC 4.6. Sun does not ship a C compiler with Solaris 2 before Solaris 10, though you can download the Sun Studio compilers for free. In Solaris 10 and @@ -4141,13 +4140,6 @@ newer: @command{g++} will complain that types are missing. These headers assume that omitting the type means @code{int}; this assumption worked for C90 but is wrong for C++, and is now wrong for C99 also. -@command{g++} accepts such (invalid) constructs with the option -@option{-fpermissive}; it will assume that any missing type is @code{int} -(as defined by C90). - -There are patches for Solaris 8 (108652-24 or newer for SPARC, -108653-22 for Intel) that fix this bug. - Sun bug 4927647 sometimes causes random spurious testsuite failures related to missing diagnostic output. This bug doesn't affect GCC itself, rather it is a kernel bug triggered by the @command{expect} @@ -4155,27 +4147,19 @@ program which is used only by the GCC testsuite driver. When the bug causes the @command{expect} program to miss anticipated output, extra testsuite failures appear. -There are patches for Solaris 8 (117350-12 or newer for SPARC, -117351-12 or newer for Intel) and Solaris 9 (117171-11 or newer for +There are patches for Solaris 9 (117171-11 or newer for SPARC, 117172-11 or newer for Intel) that address this problem. -Solaris@tie{}8 provides an alternate implementation of the thread -library @samp{libthread}. It is required for TLS support and has -been made the default in Solaris@tie{}9, so it is always used on -Solaris@tie{}8. - -Thread-local storage (TLS) is supported in Solaris@tie{}8 and 9, but requires +Thread-local storage (TLS) is supported in Solaris@tie{}9, but requires some patches. The @samp{libthread} patches provide the @code{__tls_get_addr} (SPARC, 64-bit x86) resp.@ @code{___tls_get_addr} -(32-bit x86) functions. On Solaris@tie{}8, you need 108993-26 or newer on -SPARC, 108994-26 or newer on Intel. On Solaris@tie{}9, the necessary support +(32-bit x86) functions. On Solaris@tie{}9, the necessary support on SPARC is present since FCS, while 114432-05 or newer is required on -Intel. Additionally, on Solaris@tie{}8, patch 109147-14 or newer on SPARC or -109148-22 or newer on Intel are required for the Sun @command{ld} and -runtime linker (@command{ld.so.1}) support. Again, Solaris@tie{}9/SPARC -works since FCS, while 113986-02 is required on Intel. The linker +Intel. Additionally, on Solaris@tie{}9/x86, patch 113986-02 or newer is +required for the Sun @command{ld} and runtime linker (@command{ld.so.1}) +support, while Solaris@tie{}9/SPARC works since FCS. The linker patches must be installed even if GNU @command{ld} is used. Sun -@command{as} in Solaris@tie{}8 and 9 doesn't support the necessary +@command{as} in Solaris@tie{}9 doesn't support the necessary relocations, so GNU @command{as} must be used. The @command{configure} script checks for those prerequisites and automatically enables TLS support if they are met. Although those minimal patch versions should diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c310aef..65ad686 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,20 @@ 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + * g++.dg/warn/miss-format-1.C: Remove *-*-solaris2.8 handling. + * gcc.dg/c99-stdint-6.c: Likewise. + * gcc.dg/lto/20090210_0.c: Likewise. + * gcc.dg/pr28796-2.c: Don't skip on sparc*-sun-solaris2.8. + * gcc.dg/pragma-init-fini.c: Don't skip on i?86-*-solaris2.8. + * gcc.dg/pragma-init-fini-2.c: Likewise. + * gcc.dg/torture/pr47917.c: Remove *-*-solaris2.8 handling. + * gcc.target/i386/pr22076.c: Remove i?86-*-solaris2.8 handling. + * gcc.target/i386/pr22152.c: Likewise. + * gcc.target/i386/vect8-ret.c: Likewise. + * lib/target-supports.exp (add_options_for_tls): Remove Solaris 8 + handling. + +2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + * g++.dg/other/anon5.C: Don't skip on mips-sgi-irix*. * g++.dg/tree-prof/partition1.C: Likewise. * g++.dg/tree-prof/partition2.C: Likewise. diff --git a/gcc/testsuite/g++.dg/warn/miss-format-1.C b/gcc/testsuite/g++.dg/warn/miss-format-1.C index 0d8954d..0b3f6e9 100644 --- a/gcc/testsuite/g++.dg/warn/miss-format-1.C +++ b/gcc/testsuite/g++.dg/warn/miss-format-1.C @@ -4,7 +4,7 @@ /* { dg-options "-Wmissing-format-attribute" } */ /* { dg-options "-Wmissing-format-attribute -Wno-abi" { target arm_eabi } } */ /* VxWorks does not provide vscanf, either in kernel or RTP mode. */ -/* { dg-error "not declared" "" { target { *-*-solaris2.8 *-*-vxworks* } } 26 } */ +/* { dg-error "not declared" "" { target *-*-vxworks* } 26 } */ #include <stdio.h> #include <stdarg.h> @@ -23,7 +23,7 @@ bar (const char *fmt, ...) { va_list ap; va_start (ap, fmt); - vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" { xfail *-*-solaris2.8 *-*-vxworks* } } */ + vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" { xfail *-*-vxworks* } } */ va_end (ap); } diff --git a/gcc/testsuite/gcc.dg/c99-stdint-6.c b/gcc/testsuite/gcc.dg/c99-stdint-6.c index 3fe1473..b5727ee 100644 --- a/gcc/testsuite/gcc.dg/c99-stdint-6.c +++ b/gcc/testsuite/gcc.dg/c99-stdint-6.c @@ -2,7 +2,7 @@ with any system <inttypes.h> header. */ /* { dg-do compile { target inttypes_types } } */ /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ -/* { dg-options "-std=gnu99 -pedantic-errors -DNO_FAST_TYPES" { target *-*-solaris2.[89]* } } */ +/* { dg-options "-std=gnu99 -pedantic-errors -DNO_FAST_TYPES" { target *-*-solaris2.9* } } */ #include <inttypes.h> #ifndef SIGNAL_SUPPRESS diff --git a/gcc/testsuite/gcc.dg/lto/20090210_0.c b/gcc/testsuite/gcc.dg/lto/20090210_0.c index 794c18f..ce9dfac 100644 --- a/gcc/testsuite/gcc.dg/lto/20090210_0.c +++ b/gcc/testsuite/gcc.dg/lto/20090210_0.c @@ -2,7 +2,7 @@ /* { dg-require-effective-target fpic } */ /* { dg-suppress-ld-options {-fPIC} } */ /* { dg-require-effective-target tls_runtime } */ -/* { dg-extra-ld-options "-pthread" { target *-*-solaris2.[89] } } */ +/* { dg-extra-ld-options "-pthread" { target *-*-solaris2.9 } } */ int foo (int x) { return x; diff --git a/gcc/testsuite/gcc.dg/pr28796-2.c b/gcc/testsuite/gcc.dg/pr28796-2.c index 9b87c5a..f56a5d4 100644 --- a/gcc/testsuite/gcc.dg/pr28796-2.c +++ b/gcc/testsuite/gcc.dg/pr28796-2.c @@ -2,7 +2,6 @@ /* { dg-options "-O2 -funsafe-math-optimizations -fno-finite-math-only -DUNSAFE" } */ /* { dg-add-options ieee } */ /* { dg-skip-if "No Inf/NaN support" { spu-*-* } } */ -/* { dg-skip-if "Bug in _Q_dtoq" { sparc*-sun-solaris2.8 } } */ #include "tg-tests.h" diff --git a/gcc/testsuite/gcc.dg/pragma-init-fini-2.c b/gcc/testsuite/gcc.dg/pragma-init-fini-2.c index cd0a65d..91bc622 100644 --- a/gcc/testsuite/gcc.dg/pragma-init-fini-2.c +++ b/gcc/testsuite/gcc.dg/pragma-init-fini-2.c @@ -2,7 +2,6 @@ /* { dg-do link { target *-*-solaris2.* } } */ /* { dg-options "-fpic" } */ -/* { dg-xfail-if "no .pushsection/.popsection" { i?86-*-solaris2.8 && { ! gas } } } */ #include <stdio.h> diff --git a/gcc/testsuite/gcc.dg/pragma-init-fini.c b/gcc/testsuite/gcc.dg/pragma-init-fini.c index c49fec0..4013b8d 100644 --- a/gcc/testsuite/gcc.dg/pragma-init-fini.c +++ b/gcc/testsuite/gcc.dg/pragma-init-fini.c @@ -1,7 +1,6 @@ /* Tests for #pragma init and #pragma fini. */ /* { dg-do run { target *-*-solaris2.* } } */ -/* { dg-skip-if "no .pushsection/.popsection" { i?86-*-solaris2.8 && { ! gas } } } */ extern void abort (); diff --git a/gcc/testsuite/gcc.dg/torture/pr47917.c b/gcc/testsuite/gcc.dg/torture/pr47917.c index 34346d9..0ec78f6 100644 --- a/gcc/testsuite/gcc.dg/torture/pr47917.c +++ b/gcc/testsuite/gcc.dg/torture/pr47917.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-options "-std=c99" } */ -/* { dg-options "-std=c99 -D_XOPEN_SOURCE=500" { target *-*-solaris2.[89] } } */ +/* { dg-options "-std=c99 -D_XOPEN_SOURCE=500" { target *-*-solaris2.9 } } */ /* { dg-options "-std=gnu99" { target *-*-hpux* } } */ /* { dg-additional-options "-D__USE_MINGW_ANSI_STDIO=1" { target *-*-mingw* } } */ /* { dg-xfail-if "no C99 snprintf function" { *-*-hpux10* } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr22076.c b/gcc/testsuite/gcc.target/i386/pr22076.c index c1da4e9..38b40a2 100644 --- a/gcc/testsuite/gcc.target/i386/pr22076.c +++ b/gcc/testsuite/gcc.target/i386/pr22076.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fomit-frame-pointer -flax-vector-conversions -mmmx" } */ -/* { dg-options "-O2 -fomit-frame-pointer -flax-vector-conversions -mmmx -mno-vect8-ret-in-mem" { target i?86-*-solaris2.[89] *-*-vxworks* } } */ +/* { dg-options "-O2 -fomit-frame-pointer -flax-vector-conversions -mmmx -mno-vect8-ret-in-mem" { target i?86-*-solaris2.9 *-*-vxworks* } } */ #include <mmintrin.h> diff --git a/gcc/testsuite/gcc.target/i386/pr22152.c b/gcc/testsuite/gcc.target/i386/pr22152.c index 6d24432..0b00169 100644 --- a/gcc/testsuite/gcc.target/i386/pr22152.c +++ b/gcc/testsuite/gcc.target/i386/pr22152.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -msse2" } */ -/* { dg-options "-O2 -msse2 -mno-vect8-ret-in-mem" { target i?86-*-solaris2.[89] *-*-vxworks* } } */ +/* { dg-options "-O2 -msse2 -mno-vect8-ret-in-mem" { target i?86-*-solaris2.9 *-*-vxworks* } } */ /* { dg-additional-options "-mabi=sysv" { target x86_64-*-mingw* } } */ #include <mmintrin.h> diff --git a/gcc/testsuite/gcc.target/i386/vect8-ret.c b/gcc/testsuite/gcc.target/i386/vect8-ret.c index c2e2106..513369d 100644 --- a/gcc/testsuite/gcc.target/i386/vect8-ret.c +++ b/gcc/testsuite/gcc.target/i386/vect8-ret.c @@ -1,5 +1,5 @@ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-mmmx" { target i?86-*-solaris2.[89] *-*-vxworks* } } */ +/* { dg-options "-mmmx" { target i?86-*-solaris2.9 *-*-vxworks* } } */ /* { dg-options "-mmmx -mvect8-ret-in-mem" } */ #include <mmintrin.h> diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index c6acb03..b9a6601 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -569,11 +569,11 @@ proc check_effective_target_pcc_bitfield_type_matters { } { # Add to FLAGS all the target-specific flags needed to use thread-local storage. proc add_options_for_tls { flags } { - # On Solaris 8 and 9, __tls_get_addr/___tls_get_addr only lives in + # On Solaris 9, __tls_get_addr/___tls_get_addr only lives in # libthread, so always pass -pthread for native TLS. # Need to duplicate native TLS check from # check_effective_target_tls_native to avoid recursion. - if { [istarget *-*-solaris2.\[89\]*] && + if { [istarget *-*-solaris2.9*] && [check_no_messages_and_pattern tls_native "!emutls" assembly { __thread int i; int f (void) { return i; } |