diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2015-08-27 12:00:32 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2015-08-27 12:00:32 +0000 |
commit | 29424c7b8252f58a4b0981b3cd544aa37e566ccb (patch) | |
tree | 043907180f7dc85c20c43a6be62504f766633083 /gcc/config.gcc | |
parent | 58f51f50697f170937598b357cb4c51112960d5d (diff) | |
download | gcc-29424c7b8252f58a4b0981b3cd544aa37e566ccb.zip gcc-29424c7b8252f58a4b0981b3cd544aa37e566ccb.tar.gz gcc-29424c7b8252f58a4b0981b3cd544aa37e566ccb.tar.bz2 |
Use __cxa_atexit on Solaris 12+
* config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
Solaris 12+.
From-SVN: r227255
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 24f6d35..f8582eb 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -835,6 +835,12 @@ case ${target} in sol2_tm_file_head="dbxelf.h elfos.h ${cpu_type}/sysv4.h" sol2_tm_file_tail="${cpu_type}/sol2.h sol2.h" sol2_tm_file="${sol2_tm_file_head} ${sol2_tm_file_tail}" + case ${target} in + *-*-solaris2.1[2-9]*) + # __cxa_atexit was introduced in Solaris 12. + default_use_cxa_atexit=yes + ;; + esac use_gcc_stdint=wrap if test x$gnu_ld = xyes; then tm_file="usegld.h ${tm_file}" |