From 29424c7b8252f58a4b0981b3cd544aa37e566ccb Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Thu, 27 Aug 2015 12:00:32 +0000 Subject: [PATCH] Use __cxa_atexit on Solaris 12+ * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on Solaris 12+. From-SVN: r227255 --- gcc/ChangeLog | 5 +++++ gcc/config.gcc | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad56ed16b12..6809668597f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-08-27 Rainer Orth + + * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on + Solaris 12+. + 2015-08-27 Ramana Radhakrishnan Andre Vieira diff --git a/gcc/config.gcc b/gcc/config.gcc index 24f6d35d5cb..f8582eb550d 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}" -- 2.30.2