aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1996-03-08 00:21:09 +0000
committerDoug Evans <dje@gnu.org>1996-03-08 00:21:09 +0000
commit838b5ca862aea53720a1a3b788a2e9f80226aa25 (patch)
tree3b152e1a4aab57aec3c3488e42ff435ef03589c2
parent1ee4af950a1ca0da892637caf35a67692601017a (diff)
downloadgcc-838b5ca862aea53720a1a3b788a2e9f80226aa25.zip
gcc-838b5ca862aea53720a1a3b788a2e9f80226aa25.tar.gz
gcc-838b5ca862aea53720a1a3b788a2e9f80226aa25.tar.bz2
Initial revision
From-SVN: r11496
-rw-r--r--gcc/config/sparc/splet.h25
-rw-r--r--gcc/config/sparc/t-splet26
2 files changed, 51 insertions, 0 deletions
diff --git a/gcc/config/sparc/splet.h b/gcc/config/sparc/splet.h
new file mode 100644
index 0000000..d9a9adf
--- /dev/null
+++ b/gcc/config/sparc/splet.h
@@ -0,0 +1,25 @@
+/* Definitions of target machine for GNU compiler, for SPARClet w/o FPU.
+ Copyright (C) 1996 Free Software Foundation, Inc.
+ Contributed by Doug Evans (dje@cygnus.com).
+
+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, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+#include "sparc/aout.h"
+
+#undef TARGET_DEFAULT
+#define TARGET_DEFAULT (MASK_APP_REGS + MASK_EPILOGUE)
diff --git a/gcc/config/sparc/t-splet b/gcc/config/sparc/t-splet
new file mode 100644
index 0000000..d036e09
--- /dev/null
+++ b/gcc/config/sparc/t-splet
@@ -0,0 +1,26 @@
+# configuration file for a bare sparclet cpu, aout format files
+
+CROSS_LIBGCC1 = libgcc1-asm.a
+LIB1ASMSRC = sparc/lb1spc.asm
+LIB1ASMFUNCS = _mulsi3 _divsi3 _modsi3
+
+# While we're developing, don't emit [su]mac insns.
+TARGET_LIBGCC2_CFLAGS = -mcpu=v7
+
+# These are really part of libgcc1, but this will cause them to be
+# built correctly, so...
+
+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
+
+MULTILIB_OPTIONS = mlive-g0
+MULTILIB_DIRNAMES = live-g0
+
+LIBGCC = stmp-multilib
+INSTALL_LIBGCC = install-multilib