From 228c1313ff36f619420b46ed15fdc848b3ce2d69 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 31 Jul 2013 12:58:35 +0000 Subject: [PATCH] config.gcc (*-*-rtems*): Use __cxa_atexit by default. 2013-07-31 Sebastian Huber * config.gcc (*-*-rtems*): Use __cxa_atexit by default. * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define. From-SVN: r201370 --- gcc/ChangeLog | 5 +++++ gcc/config.gcc | 1 + gcc/config/rs6000/rtems.h | 3 +++ 3 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c0927cd4c81..5664eee817f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-07-31 Sebastian Huber + + * config.gcc (*-*-rtems*): Use __cxa_atexit by default. + * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define. + 2013-07-31 Jan-Benedict Glaw * gen-pass-instances.awk: Fix offset of substr(). diff --git a/gcc/config.gcc b/gcc/config.gcc index efb74f7e134..e5e94857bea 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -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*) diff --git a/gcc/config/rs6000/rtems.h b/gcc/config/rs6000/rtems.h index b910b5ec5a2..fb22be1e8bb 100644 --- a/gcc/config/rs6000/rtems.h +++ b/gcc/config/rs6000/rtems.h @@ -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)" -- 2.30.2