diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-08-11 15:56:58 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-08-11 15:56:58 +0000 |
commit | 071cd279a6ac9efccecd8171777a9fc99ac4796a (patch) | |
tree | b2e1ea43e0bdba8cca9bb02ed01f5e3da5a955a6 /gcc/config | |
parent | 5b48acd0eb694e43d357e6ad8f2daa604ad8d2ff (diff) | |
download | gcc-071cd279a6ac9efccecd8171777a9fc99ac4796a.tar.gz |
Initial revision
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14764 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
50 files changed, 715 insertions, 9 deletions
diff --git a/gcc/config/a29k/xm-unix.h b/gcc/config/a29k/xm-unix.h new file mode 100644 index 00000000000..206d8fdc41d --- /dev/null +++ b/gcc/config/a29k/xm-unix.h @@ -0,0 +1,43 @@ +/* Configuration for GNU C-compiler for AMD Am29000 processor. + Copyright (C) 1987, 1988, 1993 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, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* #defines that need visibility everywhere. */ +#define FALSE 0 +#define TRUE 1 + +/* This describes the machine the compiler is hosted on. */ +#define HOST_BITS_PER_CHAR 8 +#define HOST_BITS_PER_SHORT 16 +#define HOST_BITS_PER_INT 32 +#define HOST_BITS_PER_LONG 32 +#define HOST_BITS_PER_LONGLONG 64 + +#define HOST_WORDS_BIG_ENDIAN + +/* target machine dependencies. + tm.h is a symbolic link to the actual target specific file. */ +#include "tm.h" + +/* Arguments to use with `exit'. */ +#define SUCCESS_EXIT_CODE 0 +#define FATAL_EXIT_CODE 33 + +/* Ultra is V7, which is closest to USG. */ +#define USG diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index 831101e298d..3109b5c2696 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -267,6 +267,23 @@ extern void override_options (); /* Define to enable software floating point emulation. */ #define REAL_ARITHMETIC +/* The following #defines are used when compiling the routines in + libgcc1.c. Since the Alpha calling conventions require single + precision floats to be passed in the floating-point registers + (rather than in the general registers) we have to build the + libgcc1.c routines in such a way that they know the actual types + of their formal arguments and the actual types of their return + values. Otherwise, gcc will generate calls to the libgcc1.c + routines, passing arguments in the floating-point registers, + but the libgcc1.c routines will expect their arguments on the + stack (where the Alpha calling conventions require structs & + unions to be passed). */ + +#define FLOAT_VALUE_TYPE double +#define INTIFY(FLOATVAL) (FLOATVAL) +#define FLOATIFY(INTVAL) (INTVAL) +#define FLOAT_ARG_TYPE double + /* Define the size of `int'. The default is the same as the word size. */ #define INT_TYPE_SIZE 32 diff --git a/gcc/config/alpha/xm-linux.h b/gcc/config/alpha/xm-linux.h new file mode 100644 index 00000000000..9426c4ee5a7 --- /dev/null +++ b/gcc/config/alpha/xm-linux.h @@ -0,0 +1,3 @@ +#define HAVE_STRERROR +#define DONT_DECLARE_SYS_SIGLIST +#define USE_BFD diff --git a/gcc/config/arm/xm-linux.h b/gcc/config/arm/xm-linux.h new file mode 100644 index 00000000000..955379dab16 --- /dev/null +++ b/gcc/config/arm/xm-linux.h @@ -0,0 +1,24 @@ +/* Configuration for GCC for Intel i386 running Linux. + Copyright (C) 1993, 1994, 1995, 1997 Free Software Foundation, Inc. + Contributed by H.J. Lu (hjl@nynexst.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 <arm/xm-arm.h> +#include <xm-linux.h> + diff --git a/gcc/config/arm/xm-netbsd.h b/gcc/config/arm/xm-netbsd.h new file mode 100644 index 00000000000..1c7a656486c --- /dev/null +++ b/gcc/config/arm/xm-netbsd.h @@ -0,0 +1,10 @@ +/* Configuration for GCC for ARM running NetBSD as host. */ + +#include <arm/xm-arm.h> + +/* xm-netbsd.h defines this */ +#ifdef HAVE_VPRINTF +#undef HAVE_VPRINTF +#endif + +#include <xm-netbsd.h> diff --git a/gcc/config/i386/dgux.h b/gcc/config/i386/dgux.h index 469ce14ddc8..4a923fca679 100644 --- a/gcc/config/i386/dgux.h +++ b/gcc/config/i386/dgux.h @@ -25,7 +25,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "i386/sysv4.h" #ifndef VERSION_INFO2 -#define VERSION_INFO2 "$Revision: 1.5 $" +#define VERSION_INFO2 "$Revision: 1.1 $" #endif #ifndef VERSION_STRING diff --git a/gcc/config/i386/xm-bsd386.h b/gcc/config/i386/xm-bsd386.h new file mode 100644 index 00000000000..7a823b96032 --- /dev/null +++ b/gcc/config/i386/xm-bsd386.h @@ -0,0 +1,11 @@ +/* Configuration for GCC for Intel i386 running BSDI's BSD/386 as host. */ + +#include "i386/xm-i386.h" + +#define HAVE_STRERROR + +/* We have _sys_siglist, but the declaration in <signal.h> conflicts with + the declarations in collect2.c so disable the declarations + in those files. */ + +#define DONT_DECLARE_SYS_SIGLIST diff --git a/gcc/config/i386/xm-dgux.h b/gcc/config/i386/xm-dgux.h new file mode 100644 index 00000000000..5bdb9be0ebb --- /dev/null +++ b/gcc/config/i386/xm-dgux.h @@ -0,0 +1,12 @@ + +/* Configuration for GCC for Intel i386 running DG/ux */ + +/* looks just like sysv4 for now */ + +#include "i386/xm-i386.h" +#include "xm-svr4.h" + +/* If not compiled with GNU C, use the portable alloca. */ +#ifndef __GNUC__ +#define USE_C_ALLOCA +#endif diff --git a/gcc/config/i386/xm-freebsd.h b/gcc/config/i386/xm-freebsd.h new file mode 100644 index 00000000000..007a609f263 --- /dev/null +++ b/gcc/config/i386/xm-freebsd.h @@ -0,0 +1,4 @@ +/* Configuration for GCC for Intel i386 running FreeBSD as host. */ + +#include <i386/xm-i386.h> +#include <xm-freebsd.h> diff --git a/gcc/config/i386/xm-gnu.h b/gcc/config/i386/xm-gnu.h new file mode 100644 index 00000000000..0b5985f9065 --- /dev/null +++ b/gcc/config/i386/xm-gnu.h @@ -0,0 +1,5 @@ +/* Configuration for GCC for Intel i386 running GNU as host. */ + +#include <i386/xm-i386.h> +#include <xm-gnu.h> + diff --git a/gcc/config/i386/xm-linux.h b/gcc/config/i386/xm-linux.h new file mode 100644 index 00000000000..42f097ddc6c --- /dev/null +++ b/gcc/config/i386/xm-linux.h @@ -0,0 +1,24 @@ +/* Configuration for GCC for Intel i386 running Linux. + Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. + Contributed by H.J. Lu (hjl@nynexst.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 <i386/xm-i386.h> +#include <xm-linux.h> + diff --git a/gcc/config/i386/xm-netbsd.h b/gcc/config/i386/xm-netbsd.h new file mode 100644 index 00000000000..3a9f3241990 --- /dev/null +++ b/gcc/config/i386/xm-netbsd.h @@ -0,0 +1,4 @@ +/* Configuration for GCC for Intel i386 running NetBSD as host. */ + +#include <i386/xm-i386.h> +#include <xm-netbsd.h> diff --git a/gcc/config/i386/xm-sun.h b/gcc/config/i386/xm-sun.h new file mode 100644 index 00000000000..d2e714ecf5c --- /dev/null +++ b/gcc/config/i386/xm-sun.h @@ -0,0 +1,27 @@ +/* Configuration for GNU C-compiler for Intel 80386 running SunOS 4.0. + Copyright (C) 1988 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, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +#define USG + +#include "i386/xm-i386.h" + +#define bcopy(a,b,c) memcpy (b,a,c) +#define bzero(a,b) memset (a,0,b) +#define bcmp(a,b,c) memcmp (a,b,c) diff --git a/gcc/config/i386/xm-sysv3.h b/gcc/config/i386/xm-sysv3.h new file mode 100644 index 00000000000..72078bb1feb --- /dev/null +++ b/gcc/config/i386/xm-sysv3.h @@ -0,0 +1,4 @@ +/* Configuration for GCC for Intel i386 running System V Release 3. */ + +#include "i386/xm-i386.h" +#include "xm-svr3.h" diff --git a/gcc/config/i386/xm-winnt.h b/gcc/config/i386/xm-winnt.h new file mode 100644 index 00000000000..d36d2cdb11e --- /dev/null +++ b/gcc/config/i386/xm-winnt.h @@ -0,0 +1,24 @@ +/* Configuration for GNU compiler + for an Intel i386 or later processor running Windows NT 3.x. + Copyright (C) 1994 Free Software Foundation, Inc. + Contributed by Douglas B. Rupp (drupp@cs.washington.edu) + +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 "winnt/xm-winnt.h" +#include "i386/xm-i386.h" diff --git a/gcc/config/i860/i860.h b/gcc/config/i860/i860.h index 29a42cca316..47eb7dcfd1d 100644 --- a/gcc/config/i860/i860.h +++ b/gcc/config/i860/i860.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GNU compiler, for Intel 860. - Copyright (C) 1989, 1991, 1993, 1995, 1996 Free Software Foundation, Inc. - Hacked substantially by Ron Guilmette (rfg@segfault.us.com) to cater to + Copyright (C) 1989, 91, 93, 95, 96, 1997 Free Software Foundation, Inc. + Hacked substantially by Ron Guilmette (rfg@monkeys.com) to cater to the whims of the System V Release 4 assembler. This file is part of GNU CC. @@ -1369,7 +1369,7 @@ extern unsigned long sfmode_constant_to_ulong (); stack (where the i860 calling conventions require structs & unions to be passed). */ -#define FLOAT_TYPE_VALUE float +#define FLOAT_VALUE_TYPE float #define INTIFY(FLOATVAL) (FLOATVAL) #define FLOATIFY(INTVAL) (INTVAL) #define FLOAT_ARG_TYPE float diff --git a/gcc/config/i860/xm-fx2800.h b/gcc/config/i860/xm-fx2800.h new file mode 100644 index 00000000000..f1ab6d8c9c5 --- /dev/null +++ b/gcc/config/i860/xm-fx2800.h @@ -0,0 +1,7 @@ +/* Alliant FX/2800 running Concentrix 2.x. */ + +/* vfprintf is not present prior to Concentrix 2.2. Unfortunately, there + does not seem to be a cpp symbol that identifies OS revision. Undefine + the following if running 2.1 or older. */ + +#define HAVE_VPRINTF diff --git a/gcc/config/m68k/mot3300-crt0.S b/gcc/config/m68k/mot3300-crt0.S index c86e56b719b..e9fc1d463b5 100644 --- a/gcc/config/m68k/mot3300-crt0.S +++ b/gcc/config/m68k/mot3300-crt0.S @@ -97,7 +97,7 @@ LOCAL_LABEL(isatty): #ifdef STRING SECTION (.comment) - STRING ("$Id: crt0.S,v 1.6 1995/12/07 17:17:47 manfred Exp $\n") + STRING ("$Id: mot3300-crt0.S,v 1.1 1997/08/11 15:57:32 law Exp $\n") STRING ("Contributed by manfred@lts.sel.alcatel.de (Manfred Hollstein, Germany)\n") #else byte 'C,'o,'n,'t,'r,'i,'b,'u,'t,'e,'d,' ,'b,'y diff --git a/gcc/config/m68k/mot3300Mcrt0.S b/gcc/config/m68k/mot3300Mcrt0.S index 52561e630d1..acb317c92fe 100644 --- a/gcc/config/m68k/mot3300Mcrt0.S +++ b/gcc/config/m68k/mot3300Mcrt0.S @@ -143,7 +143,7 @@ LOCAL_LABEL(endofstart): #ifdef STRING SECTION (.comment) - STRING ("$Id: mcrt0.S,v 1.5 1995/12/07 17:23:39 manfred Exp $\n") + STRING ("$Id: mot3300Mcrt0.S,v 1.1 1997/08/11 15:57:32 law Exp $\n") STRING ("Contributed by manfred@lts.sel.alcatel.de (Manfred Hollstein, Germany)\n") #else byte 'C,'o,'n,'t,'r,'i,'b,'u,'t,'e,'d,' ,'b,'y diff --git a/gcc/config/m68k/xm-altos3068.h b/gcc/config/m68k/xm-altos3068.h new file mode 100644 index 00000000000..294f5645b5e --- /dev/null +++ b/gcc/config/m68k/xm-altos3068.h @@ -0,0 +1,7 @@ +#define USG + +#include "m68k/xm-m68k.h" + +#define bcopy(a,b,c) memcpy (b,a,c) +#define bzero(a,b) memset (a,0,b) +#define bcmp(a,b,c) memcmp (a,b,c) diff --git a/gcc/config/m68k/xm-amix.h b/gcc/config/m68k/xm-amix.h new file mode 100644 index 00000000000..69b4bd17c74 --- /dev/null +++ b/gcc/config/m68k/xm-amix.h @@ -0,0 +1,47 @@ +/* Definitions of host machine for GNU compiler. + Commodore Amiga A3000UX version. + + Copyright (C) 1991 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 1, 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 "m68k/xm-m68kv.h" /* Use the System V flavor of m68k host */ + +#define HAVE_VPRINTF /* Host has vprintf() in library */ +#define rindex strrchr +#define index strchr + +/* Define FULL_PROTOTYPES for protoize.c, to get <unistd.h> included. + We need this file for things like R_OK, not necessarily prototypes. */ + +#define FULL_PROTOTYPES + +#if defined (__GNUC__) && __GNUC__ == 1 +#define alloca __builtin_alloca +#endif + +#if 0 /* I don't want individual ports to be inconsistent about this. + I regard fancy_abort as a half-solution and not the right way + to do things. --rms. */ +/* The m88k and mips ports make use of fancy_abort to give possibly helpful + abort information rather than just dumping core. They do it in their + tm-* files. It seems more logical that this is a characteristic of + the host machine and not the target machine, so we do it here. */ + +#define abort fancy_abort /* give possibly helpful abort info */ +#endif diff --git a/gcc/config/m68k/xm-aux.h b/gcc/config/m68k/xm-aux.h new file mode 100644 index 00000000000..5ac1f4654d8 --- /dev/null +++ b/gcc/config/m68k/xm-aux.h @@ -0,0 +1,9 @@ +#ifndef USG +#define USG +#endif + +#ifndef AUX +#define AUX +#endif + +#include "m68k/xm-m68k.h" diff --git a/gcc/config/m68k/xm-hp320.h b/gcc/config/m68k/xm-hp320.h new file mode 100644 index 00000000000..d724c3a26c8 --- /dev/null +++ b/gcc/config/m68k/xm-hp320.h @@ -0,0 +1,19 @@ +/* USG is needed to prevent trying to use getrusage and getwd. */ +#define USG + +#include "m68k/xm-m68k.h" + +#define bcopy(a,b,c) memcpy (b,a,c) +#define bzero(a,b) memset (a,0,b) +#define bcmp(a,b,c) memcmp (a,b,c) +#define rindex strrchr +#define index strchr + +/* If compiling with HPUX compiler, we are probably using alloca.c, + so help it work right. */ +#ifndef __GNUC__ +#define USE_C_ALLOCA +#endif + +/* Don't try to use sys_siglist. */ +#define NO_SYS_SIGLIST diff --git a/gcc/config/m68k/xm-linux.h b/gcc/config/m68k/xm-linux.h new file mode 100644 index 00000000000..3b1050673fa --- /dev/null +++ b/gcc/config/m68k/xm-linux.h @@ -0,0 +1,4 @@ +/* Configuration for GCC for Motorola m68k running Linux. */ + +#include <m68k/xm-m68k.h> +#include <xm-linux.h> diff --git a/gcc/config/m68k/xm-m68kv.h b/gcc/config/m68k/xm-m68kv.h new file mode 100644 index 00000000000..ce3cf665e81 --- /dev/null +++ b/gcc/config/m68k/xm-m68kv.h @@ -0,0 +1,15 @@ +/* Host environment for 68000's running System V. */ + +#include "m68k/xm-m68k.h" + +#define USG +#define bcopy(a,b,c) memcpy (b,a,c) +#define bzero(a,b) memset (a,0,b) +#define bcmp(a,b,c) memcmp (a,b,c) + +#define rindex strrchr +#define index strchr + +#ifndef __GNUC__ +#define USE_C_ALLOCA +#endif diff --git a/gcc/config/m68k/xm-netbsd.h b/gcc/config/m68k/xm-netbsd.h new file mode 100644 index 00000000000..27a33cd5b83 --- /dev/null +++ b/gcc/config/m68k/xm-netbsd.h @@ -0,0 +1,4 @@ +/* Configuration for GCC for Motorola 68k running NetBSD as host. */ + +#include <m68k/xm-m68k.h> +#include <xm-netbsd.h> diff --git a/gcc/config/m68k/xm-sun3.h b/gcc/config/m68k/xm-sun3.h new file mode 100644 index 00000000000..eafe716e93b --- /dev/null +++ b/gcc/config/m68k/xm-sun3.h @@ -0,0 +1,5 @@ +/* Configuration for GCC for Motorola m68k on sun3. */ + +#define HAVE_POPEN + +#include "m68k/xm-m68k.h" diff --git a/gcc/config/m68k/xm-tower.h b/gcc/config/m68k/xm-tower.h new file mode 100644 index 00000000000..fcb456fa621 --- /dev/null +++ b/gcc/config/m68k/xm-tower.h @@ -0,0 +1,4 @@ +#include "m68k/xm-m68k.h" +#include "xm-svr3.h" + +#define HAVE_VPRINTF diff --git a/gcc/config/m88k/dgux.h b/gcc/config/m88k/dgux.h index edeffdf4f16..6a3c41020bc 100644 --- a/gcc/config/m88k/dgux.h +++ b/gcc/config/m88k/dgux.h @@ -30,7 +30,7 @@ Boston, MA 02111-1307, USA. */ (TARGET_SVR4 ? DWARF_DEBUG : SDB_DEBUG) #ifndef VERSION_INFO2 -#define VERSION_INFO2 "$Revision: 1.23 $" +#define VERSION_INFO2 "$Revision: 1.24 $" #endif #ifndef NO_BUGS #define AS_BUG_IMMEDIATE_LABEL diff --git a/gcc/config/m88k/m88k.h b/gcc/config/m88k/m88k.h index 8a45610a9b2..7fc8ed98793 100644 --- a/gcc/config/m88k/m88k.h +++ b/gcc/config/m88k/m88k.h @@ -198,13 +198,13 @@ extern char * reg_names[]; Redefined in sysv4.h, and luna.h. */ #define VERSION_INFO1 "m88k, " #ifndef VERSION_INFO2 -#define VERSION_INFO2 "$Revision: 1.72 $" +#define VERSION_INFO2 "$Revision: 1.1 $" #endif #ifndef VERSION_STRING #define VERSION_STRING version_string #ifdef __STDC__ -#define TM_RCS_ID "@(#)" __FILE__ " $Revision: 1.72 $ " __DATE__ +#define TM_RCS_ID "@(#)" __FILE__ " $Revision: 1.1 $ " __DATE__ #else #define TM_RCS_ID "$What: <@(#) m88k.h,v 1.1.1.2.2.2> $" #endif /* __STDC__ */ diff --git a/gcc/config/mips/elflorion.h b/gcc/config/mips/elflorion.h new file mode 100644 index 00000000000..4b7f111873f --- /dev/null +++ b/gcc/config/mips/elflorion.h @@ -0,0 +1,24 @@ +/* Definitions of target machine for GNU compiler. MIPS ORION version with + GOFAST floating point library. + Copyright (C) 1994 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, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +#define MIPS_CPU_STRING_DEFAULT "orion" + +#include "mips/elfl64.h" diff --git a/gcc/config/mips/nws3250v4.h b/gcc/config/mips/nws3250v4.h new file mode 100644 index 00000000000..611effe02a1 --- /dev/null +++ b/gcc/config/mips/nws3250v4.h @@ -0,0 +1,36 @@ +/* Definitions of target machine for GNU compiler. Sony RISC NEWS (mips) + Copyright (C) 1991 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, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +#define MIPS_NEWS + +#define CPP_PREDEFINES "\ +-Dmips -Dhost_mips -Dsony -Dsonyrisc -Dunix \ +-DLANGUAGE_C -DMIPSEB -DSYSTYPE_SYSV \ +-Asystem(unix) -Asystem(svr3) -Acpu(mips) -Amachine(mips)" + +#define MD_STARTFILE_PREFIX "/usr/ccs/lib/" + +#define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc crtn.o%s values-Xt.o%s" + +#define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt1.o%s}}" + +#define MACHINE_TYPE "RISC NEWS-OS SVr4" + +#include "mips/mips.h" diff --git a/gcc/config/mips/xm-iris3.h b/gcc/config/mips/xm-iris3.h new file mode 100644 index 00000000000..3d2a59a1447 --- /dev/null +++ b/gcc/config/mips/xm-iris3.h @@ -0,0 +1,8 @@ +#include "mips/xm-mips.h" + +#define USG + +#define bcopy(a,b,c) memcpy (b,a,c) +#define bzero(a,b) memset (a,0,b) +#define bcmp(a,b,c) memcmp (a,b,c) + diff --git a/gcc/config/mips/xm-iris4.h b/gcc/config/mips/xm-iris4.h new file mode 100644 index 00000000000..e12c226614e --- /dev/null +++ b/gcc/config/mips/xm-iris4.h @@ -0,0 +1,18 @@ +#include "mips/xm-mips.h" + +#define USG +#define HAVE_VPRINTF + +#define bcopy(a,b,c) memcpy (b,a,c) +#define bzero(a,b) memset (a,0,b) +#define bcmp(a,b,c) memcmp (a,b,c) + +#if 0 +#ifdef __GNUC__ +/* The normal irix compiler requires alloca.h or alloca doesn't work. + However, the IRIX compiler doesn't allow alloca to be stored in + something like ptr->field = alloca(), so we just use the normal + C alloca. */ +#include <alloca.h> +#endif +#endif diff --git a/gcc/config/mips/xm-netbsd.h b/gcc/config/mips/xm-netbsd.h new file mode 100644 index 00000000000..b9d3c709d9d --- /dev/null +++ b/gcc/config/mips/xm-netbsd.h @@ -0,0 +1,2 @@ +#include "mips/xm-mips.h" +#include "config/xm-netbsd.h" diff --git a/gcc/config/mips/xm-news.h b/gcc/config/mips/xm-news.h new file mode 100644 index 00000000000..9409d7fe0a6 --- /dev/null +++ b/gcc/config/mips/xm-news.h @@ -0,0 +1,6 @@ +/* This file is for the Sony Mips News running "NewsOS Version 5", + which is really System V. */ +#include "mips/xm-sysv.h" + +/* Sony has a funny name for this symbol. */ +#define sys_siglist _sys_siglist diff --git a/gcc/config/mips/xm-nws3250v4.h b/gcc/config/mips/xm-nws3250v4.h new file mode 100644 index 00000000000..34ab631acb4 --- /dev/null +++ b/gcc/config/mips/xm-nws3250v4.h @@ -0,0 +1,9 @@ +#define USG + +#include "xm-mips.h" + +/* If compiling with mips compiler, we are probably using alloca.c, + so help it work right. */ +#ifndef __GNUC__ +#define USE_C_ALLOCA +#endif diff --git a/gcc/config/mips/xm-sysv.h b/gcc/config/mips/xm-sysv.h new file mode 100644 index 00000000000..170538fb682 --- /dev/null +++ b/gcc/config/mips/xm-sysv.h @@ -0,0 +1,38 @@ +/* Configuration for GNU C-compiler for UMIPS operating system + Copyright (C) 1989, 1990, 1991 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, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* + * Notes for compiling gcc on umips (v3.0) + * - change the -g in the CFLAGS to a -g3 or take it out all together. + * - do not define DBX_DEBUGGING_INFO in tm.h, it doesn't exist (unless + * you get one from a bsd system) + */ + +#define USG + +#include "mips/xm-mips.h" + +#define bcopy(a,b,c) memcpy((b),(a),(c)) +#define bzero(a,b) memset((a),0,(b)) +#define bcmp(a,b,c) memcmp((a),(b),(c)) + +#define rindex strrchr +#define index strchr + diff --git a/gcc/config/mips/xm-sysv4.h b/gcc/config/mips/xm-sysv4.h new file mode 100644 index 00000000000..490a7722995 --- /dev/null +++ b/gcc/config/mips/xm-sysv4.h @@ -0,0 +1,11 @@ +#include "mips/xm-sysv.h" + +/* SVR4 provides no sys_siglist, + but does offer the same data under another name. */ +#define sys_siglist _sys_siglist + +/* There is a declaration in /usr/include/signal.h that conflicts with the + declarations in collect2.c and mips-tfile.c, so disable gcc's declarations. + This is at least true for CDC's EP/IX 2.1.1. It is suspected to be true + for RISC/OS 5.x also. */ +#define DONT_DECLARE_SYS_SIGLIST diff --git a/gcc/config/ns32k/xm-genix.h b/gcc/config/ns32k/xm-genix.h new file mode 100644 index 00000000000..76be3b76fc8 --- /dev/null +++ b/gcc/config/ns32k/xm-genix.h @@ -0,0 +1,9 @@ +/* Config file for ns32k running system V. */ + +#include "ns32k/xm-ns32k.h" + +#define USG + +#define bcopy(a,b,c) memcpy (b,a,c) +#define bzero(a,b) memset (a,0,b) +#define bcmp(a,b,c) memcmp (a,b,c) diff --git a/gcc/config/ns32k/xm-netbsd.h b/gcc/config/ns32k/xm-netbsd.h new file mode 100644 index 00000000000..4040751d1d9 --- /dev/null +++ b/gcc/config/ns32k/xm-netbsd.h @@ -0,0 +1,10 @@ +/* Configuration for GCC for ns32k running NetBSD as host. */ + +#include <ns32k/xm-ns32k.h> + +/* ns32k/xm-ns32k.h defines these macros, but we don't need them */ +#undef memcmp +#undef memcpy +#undef memset + +#include <xm-netbsd.h> diff --git a/gcc/config/sparc/xm-netbsd.h b/gcc/config/sparc/xm-netbsd.h new file mode 100644 index 00000000000..5f11b8d2f48 --- /dev/null +++ b/gcc/config/sparc/xm-netbsd.h @@ -0,0 +1,4 @@ +/* Configuration for GCC for Sun SPARC running NetBSD as host. */ + +#include <sparc/xm-sparc.h> +#include <xm-netbsd.h> diff --git a/gcc/config/sparc/xm-pbd.h b/gcc/config/sparc/xm-pbd.h new file mode 100644 index 00000000000..dad9fdc6b34 --- /dev/null +++ b/gcc/config/sparc/xm-pbd.h @@ -0,0 +1,13 @@ +/* Host environment for the tti "Unicom" PBB 68020 boards */ + +#include "sparc/xm-sparc.h" + +#define USG +#define bcopy(a,b,c) memcpy (b,a,c) +#define bzero(a,b) memset (a,0,b) +#define bcmp(a,b,c) memcmp (a,b,c) + +#ifndef __GNUC__ +#define USE_C_ALLOCA +#endif + diff --git a/gcc/config/vax/x-vax b/gcc/config/vax/x-vax new file mode 100644 index 00000000000..bb58a6a1df3 --- /dev/null +++ b/gcc/config/vax/x-vax @@ -0,0 +1,3 @@ +# If compiling GCC with the Unix assembler, -J will handle a large function. +# With GAS, it should have no effect. +X_CPPFLAGS = -J diff --git a/gcc/config/vax/xm-vaxv.h b/gcc/config/vax/xm-vaxv.h new file mode 100644 index 00000000000..18a1d73ac98 --- /dev/null +++ b/gcc/config/vax/xm-vaxv.h @@ -0,0 +1,7 @@ +/* Config file for Vax running system V. */ + +#define USG + +#define bcopy(a,b,c) memcpy (b,a,c) +#define bzero(a,b) memset (a,0,b) +#define bcmp(a,b,c) memcmp (a,b,c) diff --git a/gcc/config/xm-freebsd.h b/gcc/config/xm-freebsd.h new file mode 100644 index 00000000000..f73c9aa60fa --- /dev/null +++ b/gcc/config/xm-freebsd.h @@ -0,0 +1,33 @@ +/* Configuration for GNU C-compiler for hosts running FreeBSD. + 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, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* This file defines machine-independent things specific to a host + running FreeBSD. This file should not be specified as $xm_file itself; + instead $xm_file should be CPU/xm-freebsd.h, which should include both + CPU/xm-CPU.h and this file xm-freebsd.h. */ + +/* FreeBSD has strerror. */ +#define HAVE_STRERROR + +/* We have _sys_siglist, but the declaration in <signal.h> conflicts with + the declarations in collect2.c and mips-tfile.c, so disable the declarations + in those files. */ + +#define DONT_DECLARE_SYS_SIGLIST diff --git a/gcc/config/xm-linux.h b/gcc/config/xm-linux.h new file mode 100644 index 00000000000..88b558cc5bf --- /dev/null +++ b/gcc/config/xm-linux.h @@ -0,0 +1,47 @@ +/* Configuration for GCC for Intel i386 running Linux. + Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. + Contributed by H.J. Lu (hjl@nynexst.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. */ + +#undef HAVE_VPRINTF +#define HAVE_VPRINTF + +#undef HAVE_STRERROR +#define HAVE_STRERROR + +#undef HAVE_POPEN +#define HAVE_POPEN + +#undef POSIX +#define POSIX + +#undef DONT_DECLARE_SYS_SIGLIST +#define DONT_DECLARE_SYS_SIGLIST + +/* We do have one, but I'd like to use the one come with gcc since + we have been doing that for a long time with USG defined. H.J. */ +#define NO_STAB_H + +#undef BSTRING +#define BSTRING +#undef bcmp +#undef bcopy +#undef bzero +#undef index +#undef rindex diff --git a/gcc/config/xm-netbsd.h b/gcc/config/xm-netbsd.h new file mode 100644 index 00000000000..00000ce9706 --- /dev/null +++ b/gcc/config/xm-netbsd.h @@ -0,0 +1,27 @@ +/* Configuration for GNU C-compiler for hosts running NetBSD. + Copyright (C) 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, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* This file defines machine-independent things specific to a host + running NetBSD. This file should not be specified as $xm_file itself; + instead $xm_file should be CPU/xm-netbsd.h, which should include both + CPU/xm-CPU.h and this file xm-netbsd.h. */ + +#define HAVE_STRERROR +#define HAVE_VPRINTF diff --git a/gcc/config/xm-svr3.h b/gcc/config/xm-svr3.h new file mode 100644 index 00000000000..ac1000fb1cb --- /dev/null +++ b/gcc/config/xm-svr3.h @@ -0,0 +1,33 @@ +/* Configuration for GNU C-compiler for hosts running System V Release 3 + Copyright (C) 1991, 1993 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, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +#define bcopy(src,dst,len) memcpy ((dst),(src),(len)) +#define bzero(dst,len) memset ((dst),0,(len)) +#define bcmp(left,right,len) memcmp ((left),(right),(len)) + +#define rindex strrchr +#define index strchr + +#define USG +#define HAVE_VPRINTF + +#ifndef SVR3 +#define SVR3 +#endif diff --git a/gcc/config/xm-svr4.h b/gcc/config/xm-svr4.h new file mode 100644 index 00000000000..30084322510 --- /dev/null +++ b/gcc/config/xm-svr4.h @@ -0,0 +1,35 @@ +/* Configuration for GNU C-compiler for hosts running System V Release 4 + Copyright (C) 1988 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, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +#define bcopy(src,dst,len) memcpy ((dst),(src),(len)) +#define bzero(dst,len) memset ((dst),0,(len)) +#define bcmp(left,right,len) memcmp ((left),(right),(len)) + +#define rindex strrchr +#define index strchr + +#define USG +#define HAVE_VPRINTF + +#define POSIX + +/* SVR4 provides no sys_siglist, + but does offer the same data under another name. */ +#define sys_siglist _sys_siglist |