OSDN Git Service

2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
authorcorsepiu <corsepiu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Oct 2012 01:01:12 +0000 (01:01 +0000)
committercorsepiu <corsepiu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Oct 2012 01:01:12 +0000 (01:01 +0000)
* config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
__USE_INIT_FINI__.
* config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@192829 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/avr/rtems.h
gcc/config/avr/t-rtems

index e322499..3100b8d 100644 (file)
@@ -1,3 +1,9 @@
+2012-10-26  Ralf Corsépius  <ralf.corsepius@rtems.org>
+
+       * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
+       __USE_INIT_FINI__.
+       * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.
+
 2012-10-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
 
        * config.gcc (microblaze*-*-rtems*): New target.
index efd8afa..4a9c1b4 100644 (file)
@@ -23,6 +23,5 @@ along with GCC; see the file COPYING3.  If not see
 #define TARGET_OS_CPP_BUILTINS()       \
 do {                                   \
   builtin_define ("__rtems__");                \
-  builtin_define ("__USE_INIT_FINI__");        \
   builtin_assert ("system=rtems");     \
 } while (0)
index a3ef8bd..db98616 100644 (file)
@@ -1,3 +1,4 @@
 # Multilibs for avr RTEMS targets.
 
-# ATM, this is just a stub
+# RTEMS uses _exit from newlib
+LIB1ASMFUNCS := $(filter-out _exit,$(LIB1ASMFUNCS))