diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-11-18 03:50:28 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-11-18 03:50:28 +0000 |
commit | 361a5e6dd08e5e7e1417668a6dd92ebad1c54d84 (patch) | |
tree | 6bd881e894861bfc135ac31aa67a1fce3a15ef56 /gcc/config/sparc | |
parent | 9375ef6b605a1c13a2693d34ae97b32f8ae44a94 (diff) | |
download | gcc-361a5e6dd08e5e7e1417668a6dd92ebad1c54d84.tar.gz |
Initial revision
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8507 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc')
-rw-r--r-- | gcc/config/sparc/t-vxsparc | 13 | ||||
-rw-r--r-- | gcc/config/sparc/vxsparc.h | 53 |
2 files changed, 66 insertions, 0 deletions
diff --git a/gcc/config/sparc/t-vxsparc b/gcc/config/sparc/t-vxsparc new file mode 100644 index 00000000000..d99df4ebb97 --- /dev/null +++ b/gcc/config/sparc/t-vxsparc @@ -0,0 +1,13 @@ +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 + +MULTILIB_OPTIONS=msoft-float mv8 +MULTILIB_DIRNAMES=soft v8 +MULTILIB_MATCHES=msoft-float=mno-fpu + +LIBGCC = stmp-multilib +INSTALL_LIBGCC = install-multilib diff --git a/gcc/config/sparc/vxsparc.h b/gcc/config/sparc/vxsparc.h new file mode 100644 index 00000000000..fbb14c83df1 --- /dev/null +++ b/gcc/config/sparc/vxsparc.h @@ -0,0 +1,53 @@ +/* Definitions of target machine for GNU compiler. Vxworks SPARC version. + Copyright (C) 1994 Free Software Foundation, Inc. + Contributed by David Henkel-Wallace (gumby@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, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "sparc/sparc-aout.h" + +/* Specify what to link with. */ +/* VxWorks does all the library stuff itself. */ + +#undef LIB_SPEC +#define LIB_SPEC "" + +/* Provide required defaults for linker -e. */ +#undef LINK_SPEC +#define LINK_SPEC "%{!nostdlib:%{!r*:%{!e*:-e start}}}" + +/* VxWorks provides the functionality of crt0.o and friends itself. */ +#undef STARTFILE_SPEC +#define STARTFILE_SPEC "" + +#undef CPP_PREDEFINES +#define CPP_PREDEFINES "-Dsparc -Acpu(sparc) -Amachine(sparc)" + +#undef PTRDIFF_TYPE +#undef SIZE_TYPE +#undef WCHAR_TYPE +#undef WCHAR_TYPE_SIZE + +#define PTRDIFF_TYPE "long int" +#define SIZE_TYPE "unsigned int" +#define WCHAR_TYPE "char" +#define WCHAR_TYPE_SIZE 8 + +/* US Software GOFAST library support. */ +#include "gofast.h" +#undef INIT_SUBTARGET_OPTABS +#define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS |