aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1994-07-11 20:48:16 +0000
committerRichard Stallman <rms@gnu.org>1994-07-11 20:48:16 +0000
commit5f0a312d748f0f46192c3a49dce16b88af872f56 (patch)
tree2e60783e224ca2aa5ef5231065e51f56294655e0
parentb959a1de929ca42b9310f2904a9ae81da96706ae (diff)
downloadgcc-5f0a312d748f0f46192c3a49dce16b88af872f56.zip
gcc-5f0a312d748f0f46192c3a49dce16b88af872f56.tar.gz
gcc-5f0a312d748f0f46192c3a49dce16b88af872f56.tar.bz2
*** empty log message ***
From-SVN: r7715
-rw-r--r--gcc/config/i386/lynx.h14
-rw-r--r--gcc/config/m68k/lynx.h16
2 files changed, 28 insertions, 2 deletions
diff --git a/gcc/config/i386/lynx.h b/gcc/config/i386/lynx.h
index f837f68..0a31801 100644
--- a/gcc/config/i386/lynx.h
+++ b/gcc/config/i386/lynx.h
@@ -22,3 +22,17 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dunix -Di386 -DI386 -DLynx -DIBITS32 -Asystem(unix) -Asystem(lynx) -Acpu(i386) -Amachine(i386)"
+
+/* This is how to output a reference to a user-level label named NAME. */
+
+/* Override the svr3 convention of adding a leading underscore. */
+
+#undef ASM_OUTPUT_LABELREF
+#define ASM_OUTPUT_LABELREF(FILE,NAME) fprintf (FILE, "%s", NAME)
+
+/* Apparently LynxOS clobbers ebx when you call into the OS. */
+
+#undef CALL_USED_REGISTERS
+#define CALL_USED_REGISTERS \
+/*ax,dx,cx,bx,si,di,bp,sp,st,st1,st2,st3,st4,st5,st6,st7,arg*/ \
+{ 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }
diff --git a/gcc/config/m68k/lynx.h b/gcc/config/m68k/lynx.h
index e05e657..bed1eaa 100644
--- a/gcc/config/m68k/lynx.h
+++ b/gcc/config/m68k/lynx.h
@@ -1,4 +1,4 @@
-/* Definitions for Motorola 680X0 running LynxOS.
+/* Definitions for Motorola 680x0 running LynxOS.
Copyright (C) 1993 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -18,6 +18,17 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "m68k/m68k.h"
+#include "m68k/m68k-coff.h"
+
+#undef CTORS_SECTION_ASM_OP
+#undef DTORS_SECTION_ASM_OP
+#undef ASM_OUTPUT_DESTRUCTOR
+#undef SELECT_RTX_SECTION
+
+#define BSS_SECTION_ASM_OP ".bss"
+
+#define ASM_LONG ".long"
+
#include "lynx.h"
/* See m68k.h. 7 means 68020 with 68881. */
@@ -27,8 +38,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#endif
/* Names to predefine in the preprocessor for this target machine. */
+
#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -Dmc68000 -DM68K -DLynx -DIBITS32 -Asystem(unix) -Asystem(lynx) -Acpu(m68k) -Amachine(m68k)"
+#define CPP_PREDEFINES "-Dunix -Dmc68000 -DM68K -DLynx -DIBITS32 -Asystem(unix) -Asystem(lynx) -Acpu(m68k) -Amachine(m68k)"
/* Every structure or union's size must be a multiple of 2 bytes. */