Adapt Solaris 12 references
libgcc: * config.host (*-*-solaris2*): Adapt comment for Solaris 12 renaming. * config/sol2/crtpg.c (__start_crt_compiler): Likewise. * configure.ac (libgcc_cv_solaris_crts): Likewise. * configure: Regenerate. gcc: * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit since Solaris 11. Update comment. * configure.ac (gcc_cv_ld_pid): Adapt comment for Solaris 12 renaming. * config/sol2.h (STARTFILE_SPEC): Likewise. * configure: Regenerate. gcc/testsuite: * lib/target-supports.exp (check_effective_target_pie): Adapt comment for Solaris 12 renaming. * gcc.dg/torture/pr60092.c: Remove *-*-solaris2.11* dg-xfail-run-if. From-SVN: r254737
This commit is contained in:
parent
13545f19e0
commit
f021f1d3a6
14 changed files with 41 additions and 19 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2017-11-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit since
|
||||||
|
Solaris 11. Update comment.
|
||||||
|
* configure.ac (gcc_cv_ld_pid): Adapt comment for Solaris 12
|
||||||
|
renaming.
|
||||||
|
* config/sol2.h (STARTFILE_SPEC): Likewise.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2017-11-14 Carl Love <cel@us.ibm.com>
|
2017-11-14 Carl Love <cel@us.ibm.com>
|
||||||
|
|
||||||
* config/rs6000/rs6000.c (swap_endian_selector_for_mode): Remove
|
* config/rs6000/rs6000.c (swap_endian_selector_for_mode): Remove
|
||||||
|
|
|
@ -860,8 +860,8 @@ case ${target} in
|
||||||
sol2_tm_file_tail="${cpu_type}/sol2.h sol2.h"
|
sol2_tm_file_tail="${cpu_type}/sol2.h sol2.h"
|
||||||
sol2_tm_file="${sol2_tm_file_head} ${sol2_tm_file_tail}"
|
sol2_tm_file="${sol2_tm_file_head} ${sol2_tm_file_tail}"
|
||||||
case ${target} in
|
case ${target} in
|
||||||
*-*-solaris2.1[2-9]*)
|
*-*-solaris2.1[1-9]*)
|
||||||
# __cxa_atexit was introduced in Solaris 12.
|
# __cxa_atexit was introduced in Solaris 11.4.
|
||||||
default_use_cxa_atexit=yes
|
default_use_cxa_atexit=yes
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -205,8 +205,8 @@ along with GCC; see the file COPYING3. If not see
|
||||||
/* We don't use the standard svr4 STARTFILE_SPEC because it's wrong for us. */
|
/* We don't use the standard svr4 STARTFILE_SPEC because it's wrong for us. */
|
||||||
#undef STARTFILE_SPEC
|
#undef STARTFILE_SPEC
|
||||||
#ifdef HAVE_SOLARIS_CRTS
|
#ifdef HAVE_SOLARIS_CRTS
|
||||||
/* Since Solaris 11.x and Solaris 12, the OS delivers crt1.o, crti.o, and
|
/* Since Solaris 11.4, the OS delivers crt1.o, crti.o, and crtn.o, with a hook
|
||||||
crtn.o, with a hook for compiler-dependent stuff like profile handling. */
|
for compiler-dependent stuff like profile handling. */
|
||||||
#define STARTFILE_SPEC "%{!shared:%{!symbolic: \
|
#define STARTFILE_SPEC "%{!shared:%{!symbolic: \
|
||||||
crt1.o%s \
|
crt1.o%s \
|
||||||
%{p:%e-p is not supported; \
|
%{p:%e-p is not supported; \
|
||||||
|
|
2
gcc/configure
vendored
2
gcc/configure
vendored
|
@ -28246,7 +28246,7 @@ elif test x$gcc_cv_ld != x; then
|
||||||
else
|
else
|
||||||
case "$target" in
|
case "$target" in
|
||||||
*-*-solaris2.1[1-9]*)
|
*-*-solaris2.1[1-9]*)
|
||||||
# Solaris 11.x and Solaris 12 added PIE support.
|
# Solaris 11.3 added PIE support.
|
||||||
if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
|
if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
|
||||||
gcc_cv_ld_pie=yes
|
gcc_cv_ld_pie=yes
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -5106,7 +5106,7 @@ elif test x$gcc_cv_ld != x; then
|
||||||
else
|
else
|
||||||
case "$target" in
|
case "$target" in
|
||||||
*-*-solaris2.1[[1-9]]*)
|
*-*-solaris2.1[[1-9]]*)
|
||||||
# Solaris 11.x and Solaris 12 added PIE support.
|
# Solaris 11.3 added PIE support.
|
||||||
if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
|
if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
|
||||||
gcc_cv_ld_pie=yes
|
gcc_cv_ld_pie=yes
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2017-11-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* lib/target-supports.exp (check_effective_target_pie): Adapt
|
||||||
|
comment for Solaris 12 renaming.
|
||||||
|
|
||||||
|
* gcc.dg/torture/pr60092.c: Remove *-*-solaris2.11* dg-xfail-run-if.
|
||||||
|
|
||||||
2017-11-14 Carl Love <cel@us.ibm.com>
|
2017-11-14 Carl Love <cel@us.ibm.com>
|
||||||
|
|
||||||
* builtins-revb-runnable.c (dg-do run): Add lp64 directive. Fix
|
* builtins-revb-runnable.c (dg-do run): Add lp64 directive. Fix
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
/* { dg-skip-if "No undefined weak" { nvptx-*-* } } */
|
/* { dg-skip-if "No undefined weak" { nvptx-*-* } } */
|
||||||
/* { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */
|
/* { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */
|
||||||
/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } */
|
/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } */
|
||||||
/* { dg-xfail-run-if "posix_memalign modifies first arg on error" { *-*-solaris2.11* } { "-O0" } } */
|
|
||||||
|
|
||||||
typedef __SIZE_TYPE__ size_t;
|
typedef __SIZE_TYPE__ size_t;
|
||||||
extern int posix_memalign(void **memptr, size_t alignment, size_t size) __attribute__((weak));
|
extern int posix_memalign(void **memptr, size_t alignment, size_t size) __attribute__((weak));
|
||||||
|
|
|
@ -1175,8 +1175,8 @@ proc check_effective_target_pie { } {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if { [istarget *-*-solaris2.1\[1-9\]*] } {
|
if { [istarget *-*-solaris2.1\[1-9\]*] } {
|
||||||
# Full PIE support was added in Solaris 11.x and Solaris 12, but gcc
|
# Full PIE support was added in Solaris 11.3, but gcc errors out
|
||||||
# errors out if missing, so check for that.
|
# if missing, so check for that.
|
||||||
return [check_no_compiler_messages pie executable {
|
return [check_no_compiler_messages pie executable {
|
||||||
int main (void) { return 0; }
|
int main (void) { return 0; }
|
||||||
} "-pie -fpie"]
|
} "-pie -fpie"]
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
2017-11-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* config.host (*-*-solaris2*): Adapt comment for Solaris 12
|
||||||
|
renaming.
|
||||||
|
* config/sol2/crtpg.c (__start_crt_compiler): Likewise.
|
||||||
|
* configure.ac (libgcc_cv_solaris_crts): Likewise.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2017-11-07 Tom de Vries <tom@codesourcery.com>
|
2017-11-07 Tom de Vries <tom@codesourcery.com>
|
||||||
|
|
||||||
* config/rs6000/aix-unwind.h (REGISTER_CFA_OFFSET_FOR): Remove semicolon
|
* config/rs6000/aix-unwind.h (REGISTER_CFA_OFFSET_FOR): Remove semicolon
|
||||||
|
|
|
@ -277,7 +277,7 @@ case ${host} in
|
||||||
tmake_file="$tmake_file $cpu_type/t-sol2"
|
tmake_file="$tmake_file $cpu_type/t-sol2"
|
||||||
extra_parts="gmon.o crtbegin.o crtend.o"
|
extra_parts="gmon.o crtbegin.o crtend.o"
|
||||||
if test "${libgcc_cv_solaris_crts}" = yes; then
|
if test "${libgcc_cv_solaris_crts}" = yes; then
|
||||||
# Solaris 11.x and 12 provide crt1.o, crti.o, and crtn.o as part of the
|
# Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
|
||||||
# base system. crtp.o and crtpg.o implement the compiler-dependent parts.
|
# base system. crtp.o and crtpg.o implement the compiler-dependent parts.
|
||||||
extra_parts="$extra_parts crtp.o crtpg.o"
|
extra_parts="$extra_parts crtp.o crtpg.o"
|
||||||
# If the Solaris CRTs are present, both ld and gld will have PIE support.
|
# If the Solaris CRTs are present, both ld and gld will have PIE support.
|
||||||
|
|
|
@ -31,11 +31,10 @@ extern char _start[], _etext[];
|
||||||
|
|
||||||
int __start_crt_compiler (int, char **);
|
int __start_crt_compiler (int, char **);
|
||||||
|
|
||||||
/* Since Solaris 11.x and Solaris 12, the system-provided CRTs provide a
|
/* Since Solaris 11.4, the system-provided CRTs provide a hook to invoke
|
||||||
hook to invoke initialization code early during process startup.
|
initialization code early during process startup. __start_crt_compiler
|
||||||
__start_crt_compiler is documented in crt1.o(5). We use it to perform
|
is documented in crt1.o(5). We use it to perform initialization for
|
||||||
initialization for profiling as a substitute for the earlier separate
|
profiling as a substitute for the earlier separate gcrt1.o. */
|
||||||
gcrt1.o. */
|
|
||||||
|
|
||||||
int
|
int
|
||||||
__start_crt_compiler (int argc __attribute__ ((unused)),
|
__start_crt_compiler (int argc __attribute__ ((unused)),
|
||||||
|
|
2
libgcc/configure
vendored
2
libgcc/configure
vendored
|
@ -4875,7 +4875,7 @@ esac
|
||||||
|
|
||||||
case ${host} in
|
case ${host} in
|
||||||
*-*-solaris2*)
|
*-*-solaris2*)
|
||||||
# Check for system-provided CRTs on Solaris 11.x and Solaris 12.
|
# Check for system-provided CRTs on Solaris 11.4.
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
|
||||||
$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
|
$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
|
||||||
if test "${libgcc_cv_solaris_crts+set}" = set; then :
|
if test "${libgcc_cv_solaris_crts+set}" = set; then :
|
||||||
|
|
|
@ -296,7 +296,7 @@ esac
|
||||||
|
|
||||||
case ${host} in
|
case ${host} in
|
||||||
*-*-solaris2*)
|
*-*-solaris2*)
|
||||||
# Check for system-provided CRTs on Solaris 11.x and Solaris 12.
|
# Check for system-provided CRTs on Solaris 11.4.
|
||||||
AC_CACHE_CHECK([system-provided CRTs on Solaris],
|
AC_CACHE_CHECK([system-provided CRTs on Solaris],
|
||||||
[libgcc_cv_solaris_crts],
|
[libgcc_cv_solaris_crts],
|
||||||
[libgcc_cv_solaris_crts=no
|
[libgcc_cv_solaris_crts=no
|
||||||
|
|
4
libgo/configure
vendored
4
libgo/configure
vendored
|
@ -11114,7 +11114,7 @@ else
|
||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
#line 11117 "configure"
|
#line 11118 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
@ -11220,7 +11220,7 @@ else
|
||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
#line 11223 "configure"
|
#line 11224 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
Loading…
Add table
Reference in a new issue