Initial revision
authorDoug Evans <dje@gnu.org>
Fri, 12 May 1995 15:35:12 +0000 (15:35 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 12 May 1995 15:35:12 +0000 (15:35 +0000)
From-SVN: r9643

gcc/config/a29k/t-vx29k [new file with mode: 0644]
gcc/config/a29k/vx29k.h [new file with mode: 0644]

diff --git a/gcc/config/a29k/t-vx29k b/gcc/config/a29k/t-vx29k
new file mode 100644 (file)
index 0000000..a043633
--- /dev/null
@@ -0,0 +1,16 @@
+LIBGCC1 = libgcc1.null
+CROSS_LIBGCC1 = libgcc1.null
+
+# We don't want to put exit in libgcc.a for VxWorks, because VxWorks
+# does not have _exit.
+LIBGCC2_CFLAGS = -O2 $(GCC_CFLAGS) -g1 -Dexit=unused_exit
+LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
+
+dp-bit.c: $(srcdir)/config/fp-bit.c
+       cat $(srcdir)/config/fp-bit.c > dp-bit.c
+
+fp-bit.c: $(srcdir)/config/fp-bit.c
+       echo '#define FLOAT' > fp-bit.c
+       cat $(srcdir)/config/fp-bit.c >> fp-bit.c
+
+
diff --git a/gcc/config/a29k/vx29k.h b/gcc/config/a29k/vx29k.h
new file mode 100644 (file)
index 0000000..3fa65cc
--- /dev/null
@@ -0,0 +1,40 @@
+/* Definitions of target machine for GNU compiler.  Vxworks 29k version.
+   Copyright (C) 1994, 1995 Free Software Foundation, Inc.
+
+This file is part of GNU CC.
+
+GNU CC 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 2, or (at your option)
+any later version.
+
+GNU CC 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.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING.  If not, write to
+the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+
+/* This file just exists to give specs for the 29k running on VxWorks.  */
+
+#include "a29k/a29k-udi.h"
+
+/* Names to predefine in the preprocessor for this target machine.  */
+
+#undef  CPP_PREDEFINES
+#define CPP_PREDEFINES "-D_AM29K -D_AM29000 -Acpu(a29k) -Amachine(a29k) -D__vxworks -D__vxworks_5"
+
+/* VxWorks does all the library stuff itself.  */
+
+#undef LIB_SPEC
+#define LIB_SPEC ""
+
+/* VxWorks provides the functionality of crt0.o and friends itself.  */
+
+#undef STARTFILE_SPEC
+#define STARTFILE_SPEC "crtbegin.o%s"
+
+#undef ENDFILE_SPEC
+#define ENDFILE_SPEC "crtend.o%s"