OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / mach.h
index 4390a6f..75d4a81 100644 (file)
@@ -1,72 +1,44 @@
-/* Configuration for an i386 running Mach as the target machine.  */
-#include "i386gas.h"
+/* Configuration for an i386 running Mach as the target machine.
 
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -Di386 -DMACH"
+Copyright (C) 1992, 1993, 1997, 1998, 2000, 2001,
+2002 Free Software Foundation, Inc.
 
-/* Specify extra dir to search for include files.  */
-#define SYSTEM_INCLUDE_DIR "/usr/mach/include"
-\f
-/* Defines to be able to build libgcc.a with GCC.  */
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 3, or (at your option) any later
+version.
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
 
-#define perform_udivsi3(a,b)                                           \
-{                                                                      \
-  register int dx asm("dx");                                           \
-  register int ax asm("ax");                                           \
-                                                                       \
-  dx = 0;                                                              \
-  ax = a;                                                              \
-  asm ("divl %3" : "=a" (ax), "=d" (dx) : "a" (ax), "g" (b), "d" (dx));        \
-  return ax;                                                           \
-}
+Under Section 7 of GPL version 3, you are granted additional
+permissions described in the GCC Runtime Library Exception, version
+3.1, as published by the Free Software Foundation.
 
-#define perform_divsi3(a,b)                                                    \
-{                                                                      \
-  register int dx asm("dx");                                           \
-  register int ax asm("ax");                                           \
-                                                                       \
-  ax = a;                                                              \
-  asm ("cltd\n\tidivl %3" : "=a" (ax), "=d" (dx) : "a" (ax), "g" (b)); \
-  return ax;                                                           \
-}
+You should have received a copy of the GNU General Public License and
+a copy of the GCC Runtime Library Exception along with this program;
+see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
+<http://www.gnu.org/licenses/>.  */
 
-#define perform_umodsi3(a,b)                                           \
-{                                                                      \
-  register int dx asm("dx");                                           \
-  register int ax asm("ax");                                           \
-                                                                       \
-  dx = 0;                                                              \
-  ax = a;                                                              \
-  asm ("divl %3" : "=a" (ax), "=d" (dx) : "a" (ax), "g" (b), "d" (dx));        \
-  return dx;                                                           \
-}
+#define TARGET_VERSION fprintf (stderr, " (80386, Mach)"); 
 
-#define perform_modsi3(a,b)                                                    \
-{                                                                      \
-  register int dx asm("dx");                                           \
-  register int ax asm("ax");                                           \
-                                                                       \
-  ax = a;                                                              \
-  asm ("cltd\n\tidivl %3" : "=a" (ax), "=d" (dx) : "a" (ax), "g" (b)); \
-  return dx;                                                           \
-}
+#define TARGET_OS_CPP_BUILTINS()               \
+  do                                           \
+    {                                          \
+       builtin_define_std ("unix");            \
+       builtin_define_std ("MACH");            \
+       builtin_assert ("system=unix");         \
+       builtin_assert ("system=mach");         \
+    }                                          \
+  while (0)
+
+/* Specify extra dir to search for include files.  */
+#define SYSTEM_INCLUDE_DIR "/usr/mach/include"
 
-#define perform_fix_truncdfsi2(a)                                              \
-{                                                                      \
-  auto unsigned short ostatus;                                         \
-  auto unsigned short nstatus;                                         \
-  auto int ret;                                                                \
-                                                                       \
-  &ostatus;                    /* guarantee these land in memory */    \
-  &nstatus;                                                            \
-  &ret;                                                                        \
-                                                                       \
-  asm volatile ("fnstcw %0" : "=m" (ostatus));                         \
-  nstatus = ostatus | 0x0c00;                                          \
-  asm volatile ("fldcw %0" : /* no outputs */ : "m" (nstatus));                \
-  asm volatile ("fldl %0" : /* no outputs */ : "m" (a));               \
-  asm volatile ("fistpl %0" : "=m" (ret));                             \
-  asm volatile ("fldcw %0" : /* no outputs */ : "m" (nstatus));                \
-                                                                       \
-  return ret;                                                          \
-}
+/* Don't default to pcc-struct-return, because gcc is the only compiler, and
+   we want to retain compatibility with older gcc versions.  */
+#define DEFAULT_PCC_STRUCT_RETURN 0