OSDN Git Service

* config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / linux.h
index de7286d..ae64020 100644 (file)
@@ -55,12 +55,9 @@ Boston, MA 02111-1307, USA.  */
 
 #define TARGET_OS_CPP_BUILTINS()                               \
     do {                                                       \
-       builtin_define ("__gnu_linux__");                       \
+       LINUX_TARGET_OS_CPP_BUILTINS();                         \
        builtin_define ("__PIC__");                             \
        builtin_define ("__pic__");                             \
-       builtin_define_std ("unix");                            \
-       builtin_define_std ("linux");                           \
-       builtin_assert ("system=linux");                        \
        /* The GNU C++ standard library requires this.  */      \
        if (c_dialect_cxx ())                                   \
          builtin_define ("_GNU_SOURCE");                       \
@@ -81,7 +78,8 @@ Boston, MA 02111-1307, USA.  */
       }                                                                \
      else                                                      \
       {                                                                \
-        builtin_define ("_MIPS_SIM=_MIPS_SIM_ABI32");          \
+       builtin_define ("_ABIO32=1");                   \
+       builtin_define ("_MIPS_SIM=_ABIO32");           \
         builtin_define ("_MIPS_SZLONG=32");                    \
         builtin_define ("_MIPS_SZPTR=32");                     \
       }                                                                \
@@ -192,6 +190,7 @@ Boston, MA 02111-1307, USA.  */
 %{!shared: %{pthread:-lpthread} \
   %{profile:-lc_p} %{!profile: -lc}}"
 
+#ifndef inhibit_libc
 /* Do code reading to identify a signal frame, and set the frame
    state data appropriately.  See unwind-dw2.c for the structs.  */
 #ifdef IN_LIBGCC2
@@ -261,3 +260,4 @@ typedef struct _sig_ucontext {
                                                                      \
     goto SUCCESS;                                                    \
   } while (0)
+#endif