config.gcc (*-*-rtems*): Use __cxa_atexit by default.
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Wed, 31 Jul 2013 12:58:35 +0000 (12:58 +0000)
committerJoel Sherrill <joel@gcc.gnu.org>
Wed, 31 Jul 2013 12:58:35 +0000 (12:58 +0000)
2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>

* config.gcc (*-*-rtems*): Use __cxa_atexit by default.
* config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.

From-SVN: r201370

gcc/ChangeLog
gcc/config.gcc
gcc/config/rs6000/rtems.h

index c0927cd4c81ea0954e07d848088724cd21b18992..5664eee817f2ebdbc71ebe9ea0853b92693f977b 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
+
+       * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
+       * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
+
 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
 
        * gen-pass-instances.awk: Fix offset of substr().
index efb74f7e1345626ad9236a917f6bf468d05bda90..e5e94857bea8efe5cbf90ced6606a1770ee39783 100644 (file)
@@ -760,6 +760,7 @@ case ${target} in
     yes) thread_file='rtems' ;;
   esac
   extra_options="${extra_options} rtems.opt"
+  default_use_cxa_atexit=yes
   use_gcc_stdint=wrap
   ;;
 *-*-uclinux*)
index b910b5ec5a2664ebbd6e2a632a895edb9696c327..fb22be1e8bbcbcd28343bd84494473c3086de3b6 100644 (file)
@@ -34,6 +34,9 @@
     }                                     \
   while (0)
 
+#undef TARGET_LIBGCC_SDATA_SECTION
+#define TARGET_LIBGCC_SDATA_SECTION ".sdata"
+
 #undef CPP_OS_DEFAULT_SPEC
 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_rtems)"