Commit a0d66c8d by Jeff Law

dummy import to prevent merge lossage

From-SVN: r24349
parent 83a86272
...@@ -19,13 +19,10 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -19,13 +19,10 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#ifndef FILE
#include <stdio.h>
#endif
#include <string.h>
#define __datalbl #define __datalbl
#include "config.h" #include "config.h"
#include <stdio.h>
#include <string.h>
#include "rtl.h" #include "rtl.h"
#include "tree.h" #include "tree.h"
#include "expr.h" #include "expr.h"
......
/* Subroutines used for code generation on AMD Am29000. /* Subroutines used for code generation on AMD Am29000.
Copyright (C) 1987, 88, 90-94, 1995 Free Software Foundation, Inc. Copyright (C) 1987, 88, 90-94, 1995, 1997 Free Software Foundation, Inc.
Contributed by Richard Kenner (kenner@nyu.edu) Contributed by Richard Kenner (kenner@nyu.edu)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -19,8 +19,8 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -19,8 +19,8 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include "config.h" #include "config.h"
#include <stdio.h>
#include "rtl.h" #include "rtl.h"
#include "regs.h" #include "regs.h"
#include "hard-reg-set.h" #include "hard-reg-set.h"
......
...@@ -10,7 +10,7 @@ ENQUIRE= ...@@ -10,7 +10,7 @@ ENQUIRE=
CROSS_LIBGCC1 = libgcc1-asm.a CROSS_LIBGCC1 = libgcc1-asm.a
LIBGCC1 = libgcc1-asm.a LIBGCC1 = libgcc1-asm.a
LIB1ASMSRC = arm/lib1funcs.asm LIB1ASMSRC = arm/lib1funcs.asm
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
MULTILIB_OPTIONS = mapcs-32 MULTILIB_OPTIONS = mapcs-32
MULTILIB_DIRNAMES = apcs-32 MULTILIB_DIRNAMES = apcs-32
......
...@@ -5,7 +5,3 @@ LIBGCC2_CFLAGS=-O2 -fomit-frame-pointer $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) -g0 ...@@ -5,7 +5,3 @@ LIBGCC2_CFLAGS=-O2 -fomit-frame-pointer $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) -g0
# Don't build enquire # Don't build enquire
ENQUIRE= ENQUIRE=
CROSS_LIBGCC1 = libgcc1-asm.a
LIB1ASMSRC = arm/lib1funcs.asm
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls
...@@ -6,4 +6,3 @@ X_CFLAGS= -DPOSIX -Dopterr=gcc_opterr -Doptind=gcc_optind \ ...@@ -6,4 +6,3 @@ X_CFLAGS= -DPOSIX -Dopterr=gcc_opterr -Doptind=gcc_optind \
OLDCC=/usr/ucb/cc OLDCC=/usr/ucb/cc
CC=$(OLDCC) CC=$(OLDCC)
FIXPROTO_DEFINES= -D_POSIX_SOURCE -D_XOPEN_C -D_BSD_C -D_XOPEN_SOURCE FIXPROTO_DEFINES= -D_POSIX_SOURCE -D_XOPEN_C -D_BSD_C -D_XOPEN_SOURCE
INSTALL=$(srcdir)/install.sh -c
...@@ -44,12 +44,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -44,12 +44,6 @@ Boston, MA 02111-1307, USA. */
#define USE_C_ALLOCA #define USE_C_ALLOCA
#endif #endif
/* Define this if the library function putenv is available on your machine */
#define HAVE_PUTENV 1
/* Define this if the library function vprintf is available on your machine */
#define HAVE_VPRINTF 1
/* Define this to be 1 if you know the host compiler supports prototypes, even /* Define this to be 1 if you know the host compiler supports prototypes, even
if it doesn't define __STDC__, or define it to be 0 if you do not want any if it doesn't define __STDC__, or define it to be 0 if you do not want any
prototypes when compiling GNU CC. */ prototypes when compiling GNU CC. */
......
/* Definitions of target machine for GNU compiler. Clipper/Clix version. /* Definitions of target machine for GNU compiler. Clipper/Clix version.
Copyright (C) 1988, 1993, 1996 Free Software Foundation, Inc. Copyright (C) 1988, 1993, 1996, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -31,6 +31,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -31,6 +31,8 @@ Boston, MA 02111-1307, USA. */
#undef LIB_SPEC #undef LIB_SPEC
#define TARGET_MEM_FUNCTIONS
#undef HAVE_ATEXIT #undef HAVE_ATEXIT
#define HAVE_ATEXIT #define HAVE_ATEXIT
......
...@@ -27,13 +27,4 @@ ...@@ -27,13 +27,4 @@
/* isinf isn't there, but finite is. */ /* isinf isn't there, but finite is. */
#define isinf(x) (!finite(x)) #define isinf(x) (!finite(x))
#define USG #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 index strchr
#define rindex strrchr
#define TARGET_MEM_FUNCTIONS
/* Subroutines for insn-output.c for Convex. /* Subroutines for insn-output.c for Convex.
Copyright (C) 1988, 1993, 1994 Free Software Foundation, Inc. Copyright (C) 1988, 1993, 1994, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -19,6 +19,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, ...@@ -19,6 +19,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include "config.h" #include "config.h"
#include <stdio.h>
#include "tree.h" #include "tree.h"
#include "rtl.h" #include "rtl.h"
#include "regs.h" #include "regs.h"
...@@ -31,9 +32,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -31,9 +32,6 @@ Boston, MA 02111-1307, USA. */
#include "output.h" #include "output.h"
#include "expr.h" #include "expr.h"
#undef NULL
#include <stdio.h>
/* Tables used in convex.h */ /* Tables used in convex.h */
char regno_ok_for_index_p_base[1 + LAST_VIRTUAL_REGISTER + 1]; char regno_ok_for_index_p_base[1 + LAST_VIRTUAL_REGISTER + 1];
......
# ld can make exe's c2-only if this lib is searched even though not loaded # ld can make exe's c2-only if this lib is searched even though not loaded
CCLIBFLAGS = -tm c1 CCLIBFLAGS = -tm c1
# Use -pcc to avoid surprises. # Use -pcc to avoid surprises.
CC = cc -pcc CC = cc -pcc
/* Configuration for GNU C-compiler for Convex. /* Configuration for GNU C-compiler for Convex.
Copyright (C) 1989, 1993 Free Software Foundation, Inc. Copyright (C) 1989, 1993, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -42,11 +42,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -42,11 +42,6 @@ Boston, MA 02111-1307, USA. */
#define P_tmpdir "/tmp/" #define P_tmpdir "/tmp/"
/* Use memcpy and memset -- either would work but these get inlined. */
#define bcopy(a,b,c) memcpy (b,a,c)
#define bzero(a,b) memset (a,0,b)
/* Convex uses Vax or IEEE floats. /* Convex uses Vax or IEEE floats.
Both formats have Vax semantics. */ Both formats have Vax semantics. */
......
/* Subroutines for insn-output.c for GNU compiler. Elxsi version. /* Subroutines for insn-output.c for GNU compiler. Elxsi version.
Copyright (C) 1987, 1992 Free Software Foundation, Inc Copyright (C) 1987, 1992, 1997 Free Software Foundation, Inc
This port, done by Mike Stump <mrs@cygnus.com> in 1988, and is the first This port, done by Mike Stump <mrs@cygnus.com> in 1988, and is the first
64 bit port of GNU CC. 64 bit port of GNU CC.
Based upon the VAX port. Based upon the VAX port.
...@@ -21,8 +21,8 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -21,8 +21,8 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include "config.h" #include "config.h"
#include <stdio.h>
#include "rtl.h" #include "rtl.h"
extern char *reg_names[]; extern char *reg_names[];
......
/* Subroutines for insn-output.c for Alliant FX computers. /* Subroutines for insn-output.c for Alliant FX computers.
Copyright (C) 1989,1991 Free Software Foundation, Inc. Copyright (C) 1989, 1991, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -20,8 +20,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -20,8 +20,8 @@ Boston, MA 02111-1307, USA. */
/* Some output-actions in alliant.md need these. */ /* Some output-actions in alliant.md need these. */
#include <stdio.h>
#include "config.h" #include "config.h"
#include <stdio.h>
#include "rtl.h" #include "rtl.h"
#include "regs.h" #include "regs.h"
#include "hard-reg-set.h" #include "hard-reg-set.h"
......
/* Configuration common to all targets running the GNU system. */ /* Configuration common to all targets running the GNU system. */
/* Macro to produce CPP_PREDEFINES for GNU on a given machine. */
#define GNU_CPP_PREDEFINES(machine) \
"-D" machine " -Acpu(" machine ") -Amachine(" machine ") \
-Dunix -Asystem(unix) \
-DMACH -Asystem(mach) \
-D__GNU__ -Asystem(gnu)"
/* Provide GCC options for standard feature-test macros. */ /* Provide GCC options for standard feature-test macros. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}" #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
......
/* Subroutines for insn-output.c for System/370. /* Subroutines for insn-output.c for System/370.
Copyright (C) 1989, 1993, 1995 Free Software Foundation, Inc. Copyright (C) 1989, 1993, 1995, 1997 Free Software Foundation, Inc.
Contributed by Jan Stein (jan@cd.chalmers.se). Contributed by Jan Stein (jan@cd.chalmers.se).
Modified for MVS C/370 by Dave Pitts (dpitts@nyx.cs.du.edu) Modified for MVS C/370 by Dave Pitts (dpitts@nyx.cs.du.edu)
...@@ -20,10 +20,10 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -20,10 +20,10 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include "config.h"
#include "rtl.h" #include "rtl.h"
#include "regs.h" #include "regs.h"
#include "hard-reg-set.h" #include "hard-reg-set.h"
...@@ -35,6 +35,11 @@ Boston, MA 02111-1307, USA. */ ...@@ -35,6 +35,11 @@ Boston, MA 02111-1307, USA. */
#include "insn-attr.h" #include "insn-attr.h"
#include "flags.h" #include "flags.h"
#include "recog.h" #include "recog.h"
#ifdef sun
#include <sys/types.h>
#include <ctype.h>
#endif
#include <time.h>
/* Label node, this structure is used to keep track of labels on the /* Label node, this structure is used to keep track of labels on the
...@@ -285,7 +290,7 @@ mvs_add_label (id) ...@@ -285,7 +290,7 @@ mvs_add_label (id)
label_anchor = lp; label_anchor = lp;
} }
/* Check to see if the label is in the list. If 1 is returned then a load /* Check to see if the label is in the list. If 1 is returned then a load
and branch on register must be generated. and branch on register must be generated.
ID is the label number of the label being checked. */ ID is the label number of the label being checked. */
...@@ -480,3 +485,100 @@ unsigned_jump_follows_p (insn) ...@@ -480,3 +485,100 @@ unsigned_jump_follows_p (insn)
return GET_CODE (insn) != GE && GET_CODE (insn) != GT return GET_CODE (insn) != GE && GET_CODE (insn) != GT
&& GET_CODE (insn) != LE && GET_CODE (insn) != LT; && GET_CODE (insn) != LE && GET_CODE (insn) != LT;
} }
void
i370_function_prolog (f, l)
FILE *f;
int l;
{
#if MACROPROLOGUE == 1
fprintf (f, "\tEDCPRLG USRDSAL=%d,BASEREG=%d\n",
STACK_POINTER_OFFSET + l - 120 +
current_function_outgoing_args_size, BASE_REGISTER);
fprintf (f, "PG%d\tEQU\t*\n", mvs_page_num );
fprintf (f, "\tLR\t11,1\n");
fprintf (f, "\tL\t%d,=A(PGT%d)\n", PAGE_REGISTER, mvs_page_num);
mvs_page_code = 6;
mvs_page_lit = 4;
mvs_check_page (f, 0, 0);
function_base_page = mvs_page_num;
#else /* MACROPROLOGUE != 1 */
static int function_label_index = 1;
static int function_first = 0;
static int function_year, function_month, function_day;
static int function_hour, function_minute, function_second;
int i;
if (!function_first)
{
struct tm *function_time;
time_t lcltime;
time (&lcltime);
function_time = localtime (&lcltime);
function_year = function_time->tm_year + 1900;
function_month = function_time->tm_mon + 1;
function_day = function_time->tm_mday;
function_hour = function_time->tm_hour;
function_minute = function_time->tm_min;
function_second = function_time->tm_sec;
fprintf (f, "PPA2\tDS\t0F\n");
fprintf (f, "\tDC\tX'03',X'00',X'33',X'00'\n");
fprintf (f, "\tDC\tV(CEESTART),A(0)\n");
fprintf (f, "\tDC\tA(CEETIMES)\n");
fprintf (f, "CEETIMES\tDS\t0F\n");
fprintf (f, "\tDC\tCL4'%d',CL4'%02d%02d',CL6'%02d%02d00'\n",
function_year, function_month, function_day,
function_hour, function_minute, function_second);
fprintf (f, "\tDC\tCL2'01',CL4'0100'\n");
}
fprintf (f, "$DSD%03d\tDSECT\n", function_label_index);
fprintf (f, "\tDS\tD\n");
fprintf (f, "\tDS\tCL(%d)\n", STACK_POINTER_OFFSET + l
+ current_function_outgoing_args_size);
fprintf (f, "\tORG\t$DSD%03d\n", function_label_index);
fprintf (f, "\tDS\tCL(120+8)\n");
fprintf (f, "\tORG\n");
fprintf (f, "\tDS\t0D\n");
fprintf (f, "$DSL%03d\tEQU\t*-$DSD%03d-8\n", function_label_index,
function_label_index);
fprintf (f, "\tDS\t0H\n");
assemble_name (f, mvs_function_name);
fprintf (f, "\tEQU\t*\n");
fprintf (f, "\tUSING\t*,15\n");
fprintf (f, "\tB\tFPL%03d\n", function_label_index);
fprintf (f, "\tDC\tAL1(FPL%03d+4-*)\n", function_label_index + 1);
fprintf (f, "\tDC\tX'CE',X'A0',AL1(16)\n");
fprintf (f, "\tDC\tAL4(PPA2)\n");
fprintf (f, "\tDC\tAL4(0)\n");
fprintf (f, "\tDC\tAL4($DSL%03d)\n", function_label_index);
fprintf (f, "FPL%03d\tEQU\t*\n", function_label_index + 1);
fprintf (f, "\tDC\tAL2(%d),C'%s'\n", strlen (mvs_function_name),
mvs_function_name);
fprintf (f, "FPL%03d\tDS\t0H\n", function_label_index);
fprintf (f, "\tSTM\t14,12,12(13)\n");
fprintf (f, "\tL\t2,76(,13)\n");
fprintf (f, "\tL\t0,16(,15)\n");
fprintf (f, "\tALR\t0,2\n");
fprintf (f, "\tCL\t0,12(,12)\n");
fprintf (f, "\tBNH\t*+10\n");
fprintf (f, "\tL\t15,116(,12)\n");
fprintf (f, "\tBALR\t14,15\n");
fprintf (f, "\tL\t15,72(,13)\n");
fprintf (f, "\tSTM\t15,0,72(2)\n");
fprintf (f, "\tMVI\t0(2),X'10'\n");
fprintf (f, "\tST\t2,8(,13)\n ");
fprintf (f, "\tST\t13,4(,2)\n ");
fprintf (f, "\tLR\t13,2\n");
fprintf (f, "\tDROP\t15\n");
fprintf (f, "\tBALR\t%d,0\n", BASE_REGISTER);
fprintf (f, "PG%d\tEQU\t*\n", mvs_page_num );
fprintf (f, "\tUSING\t*,%d\n", BASE_REGISTER);
fprintf (f, "\tLR\t11,1\n");
fprintf (f, "\tL\t%d,=A(PGT%d)\n", PAGE_REGISTER, mvs_page_num);
mvs_page_code = 4;
mvs_page_lit = 4;
mvs_check_page (f, 0, 0);
function_base_page = mvs_page_num;
function_first = 1;
function_label_index += 2;
#endif /* MACROPROLOGUE */
}
/* Configuration for GNU C-compiler for System/370. /* Configuration for GNU C-compiler for System/370.
Copyright (C) 1989, 1993 Free Software Foundation, Inc. Copyright (C) 1989, 1993, 1997 Free Software Foundation, Inc.
Contributed by Jan Stein (jan@cd.chalmers.se). Contributed by Jan Stein (jan@cd.chalmers.se).
Modified for MVS C/370 by Dave Pitts (dpitts@nyx.cs.du.edu) Modified for MVS C/370 by Dave Pitts (dpitts@nyx.cs.du.edu)
...@@ -44,10 +44,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -44,10 +44,6 @@ Boston, MA 02111-1307, USA. */
#include "tm.h" #include "tm.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)
/* Arguments to use with `exit'. */ /* Arguments to use with `exit'. */
#define SUCCESS_EXIT_CODE 0 #define SUCCESS_EXIT_CODE 0
......
...@@ -31,23 +31,18 @@ ...@@ -31,23 +31,18 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
/*
* Re rework of the solaris 2 version of gmon by J.W.Hawtin 12/8/1996
* Does not work right yet.
*/
/* /*
* This is a modified gmon.c by J.W.Hawtin <J.W.Hawtin@lboro.ac.uk>, * This is a modified gmon.c by J.W.Hawtin <oolon@ankh.org>,
* 14/8/96 based on the original gmon.c in GCC and the hacked version * 14/8/96 based on the original gmon.c in GCC and the hacked version
* solaris 2 sparc version (config/sparc/gmon-sol.c) by Mark Eichin. To do * solaris 2 sparc version (config/sparc/gmon-sol.c) by Mark Eichin. To do
* process profiling on solaris 2.4 X86 * process profiling on solaris 2.X X86
* *
* It must be used in conjunction with sol2-gc1.asm, which is used to start * It must be used in conjunction with sol2-gc1.asm, which is used to start
* and stop process monitoring. * and stop process monitoring.
* *
* Differences. * Differences.
* *
* On Solaris 2 _mcount is called my library functions not mcount, so support * On Solaris 2 _mcount is called by library functions not mcount, so support
* has been added for both. * has been added for both.
* *
* Also the prototype for profil() is different * Also the prototype for profil() is different
...@@ -58,7 +53,7 @@ ...@@ -58,7 +53,7 @@
* *
* Notes * Notes
* *
* This code could easily be integrated with the orginal gmon.c and perhaps * This code could easily be integrated with the original gmon.c and perhaps
* should be. * should be.
*/ */
...@@ -90,7 +85,7 @@ struct phdr { ...@@ -90,7 +85,7 @@ struct phdr {
#define HASHFRACTION 1 #define HASHFRACTION 1
#define ARCDENSITY 2 #define ARCDENSITY 2
#define MINARCS 50 #define MINARCS 50
#define BASEADDRESS 0x8000000 /* On Solaris 2 X86 all excutables start here #define BASEADDRESS 0x8000000 /* On Solaris 2 X86 all executables start here
and not at 0 */ and not at 0 */
struct tostruct { struct tostruct {
...@@ -264,6 +259,7 @@ internal_mcount() ...@@ -264,6 +259,7 @@ internal_mcount()
register struct tostruct *top; register struct tostruct *top;
register struct tostruct *prevtop; register struct tostruct *prevtop;
register long toindex; register long toindex;
static char already_setup;
/* /*
* find the return address for mcount, * find the return address for mcount,
...@@ -277,6 +273,17 @@ internal_mcount() ...@@ -277,6 +273,17 @@ internal_mcount()
This identifies the caller of the function just entered. */ This identifies the caller of the function just entered. */
frompcindex = (void *) __builtin_return_address (1); frompcindex = (void *) __builtin_return_address (1);
if(!already_setup) {
extern etext();
already_setup = 1;
/* monstartup(0, etext); */
monstartup(0x08040000, etext);
#ifdef USE_ONEXIT
on_exit(_mcleanup, 0);
#else
atexit(_mcleanup);
#endif
}
/* /*
* check that we are profiling * check that we are profiling
* and that we aren't recursively invoked. * and that we aren't recursively invoked.
......
! crt1.s for Solaris 2, x86 ! crt1.s for Solaris 2, x86
! Copyright (C) 1993 Free Software Foundation, Inc. ! Copyright (C) 1993, 1998 Free Software Foundation, Inc.
! Written By Fred Fish, Nov 1992 ! Written By Fred Fish, Nov 1992
! !
! This file is free software; you can redistribute it and/or modify it ! This file is free software; you can redistribute it and/or modify it
...@@ -149,7 +149,7 @@ _start: ...@@ -149,7 +149,7 @@ _start:
! A dummy profiling support routine for non-profiling executables, ! A dummy profiling support routine for non-profiling executables,
! in case we link in some objects that have been compiled for profiling. ! in case we link in some objects that have been compiled for profiling.
.globl _mcount .weak _mcount
_mcount: _mcount:
ret ret
.type _mcount,@function .type _mcount,@function
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
! information obtained by single stepping executables on other i386 SVR4 ! information obtained by single stepping executables on other i386 SVR4
! implementations. This file is the first thing linked into any executable. ! implementations. This file is the first thing linked into any executable.
! This is a modified crt1.s by J.W.Hawtin <J.W.Hawtin@lboro.ac.uk> 15/8/96, ! This is a modified crt1.s by J.W.Hawtin <oolon@ankh.org> 15/8/96,
! to allow program profiling, by calling monstartup on entry and _mcleanup ! to allow program profiling, by calling monstartup on entry and _mcleanup
! on exit ! on exit
......
...@@ -14,3 +14,14 @@ ...@@ -14,3 +14,14 @@
#ifdef DWARF_DEBUGGING_INFO #ifdef DWARF_DEBUGGING_INFO
#undef DWARF_DEBUGGING_INFO #undef DWARF_DEBUGGING_INFO
#endif #endif
/*
Changed from config/svr4.h in the following ways:
- Added "%{V}".
- Modified "{%v:-V}" to take into account "%{V}".
- Added "-s" so that stabs are saved in the final executable. */
#undef ASM_SPEC
#define ASM_SPEC \
"%{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} -s"
...@@ -17,7 +17,6 @@ DEBUG = ...@@ -17,7 +17,6 @@ DEBUG =
DEBUG_COLLECT = # -DDEBUG DEBUG_COLLECT = # -DDEBUG
CCLIBFLAGS = -O -DNO_HALF_PIC CCLIBFLAGS = -O -DNO_HALF_PIC
GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) -B./ -DPOSIX -DNO_HALF_PIC GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) -B./ -DPOSIX -DNO_HALF_PIC
INSTALL = installbsd -c
LDFLAGS = LDFLAGS =
MSTATS = # -mstats MSTATS = # -mstats
OLDCC = /usr/ccs/gcc/gcc OLDCC = /usr/ccs/gcc/gcc
......
/* Configuration for GNU C-compiler for IBM PS/2 running AIX/386.
Copyright (C) 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. */
#define USG
#undef TRUE #undef TRUE
#undef FALSE #undef FALSE
#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)
/* If not compiled with GNU C, use the portable alloca. */
#ifndef __GNUC__
#define USE_C_ALLOCA
#endif
#define HAVE_PUTENV
#include "i386/xm-sysv3.h"
#ifndef REAL_ARITHMETIC #ifndef REAL_ARITHMETIC
#define REAL_VALUE_ATOF(x, mode) strtod ((x), (char **)0) #define REAL_VALUE_ATOF(x, mode) strtod ((x), (char **)0)
extern double strtod (); extern double strtod ();
......
/* Configuration for GNU compiler /* Configuration for GNU compiler
for an Intel i386 or later processor running OS/2 2.x. for an Intel i386 or later processor running OS/2 2.x.
Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. Copyright (C) 1993, 1994, 1995, 1997, 1998 Free Software Foundation, Inc.
Contributed by Samuel Figueroa (figueroa@cs.nyu.edu) Contributed by Samuel Figueroa (figueroa@apple.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -28,20 +28,24 @@ Boston, MA 02111-1307, USA. */ ...@@ -28,20 +28,24 @@ Boston, MA 02111-1307, USA. */
#include <stdlib.h> /* this defines alloca */ #include <stdlib.h> /* this defines alloca */
#define USG #define USG
#define ONLY_INT_FIELDS #define ONLY_INT_FIELDS
#define HAVE_PUTENV
#define USE_PROTOTYPES 1 #define USE_PROTOTYPES 1
#define bcmp(a,b,c) memcmp (a,b,c)
#define bcopy(a,b,c) memcpy (b,a,c)
#define bzero(a,b) memset (a,0,b)
#define index strchr
#define rindex strrchr
#define strcasecmp stricmp #define strcasecmp stricmp
#define kill(a,b) raise(b) #define kill(a,b) raise(b)
#define mktemp tmpnam #define mktemp tmpnam
#else #else
#ifdef __EMX__
#define EMX
#define USG
#define BSTRING
#define HAVE_PUTENV
#define HAVE_VPRINTF
#define HAVE_STRERROR
#define strcasecmp stricmp
#else
#define ____386BSD____ #define ____386BSD____
int spawnv (int modeflag, char *path, char *argv[]); int spawnv (int modeflag, char *path, char *argv[]);
int spawnvp (int modeflag, char *path, char *argv[]); int spawnvp (int modeflag, char *path, char *argv[]);
#endif /* __EMX__ */
#endif /* __IBMC__ */ #endif /* __IBMC__ */
#ifndef PATH_SEPARATOR #ifndef PATH_SEPARATOR
...@@ -52,6 +56,14 @@ int spawnvp (int modeflag, char *path, char *argv[]); ...@@ -52,6 +56,14 @@ int spawnvp (int modeflag, char *path, char *argv[]);
#endif #endif
#define EXECUTABLE_SUFFIX ".exe" #define EXECUTABLE_SUFFIX ".exe"
/* The EMX compiler uses regular .o files */
#ifndef __EMX__
#define OBJECT_SUFFIX ".obj" #define OBJECT_SUFFIX ".obj"
#endif
/* This is required to make temporary file names unique on file
systems which severely restrict the length of file names. */
#define MKTEMP_EACH_FILE
#include "i386/xm-i386.h" #include "i386/xm-i386.h"
/* Configuration for GNU C-compiler for 386 running OSF/1
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. */
#undef TRUE #undef TRUE
#undef FALSE #undef FALSE
#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)
#define HAVE_PUTENV
#define HAVE_VPRINTF
/* Configuration for GCC for Intel i386 running SCO. */ /* Configuration for GCC for Intel i386 running SCO. */
#include "i386/xm-sysv3.h"
/* On SCO 3.2.1, ldexp rejects values outside [0.5, 1). */
#define BROKEN_LDEXP
/* Big buffers improve performance. */ /* Big buffers improve performance. */
#define IO_BUFFER_SIZE (0x8000 - 1024) #define IO_BUFFER_SIZE (0x8000 - 1024)
/* SCO has a very small ARG_MAX. */
#define SMALL_ARG_MAX
#ifndef __GNUC__ #ifndef __GNUC__
/* The SCO compiler gets it wrong, and treats enumerated bitfields /* The SCO compiler gets it wrong, and treats enumerated bitfields
as signed quantities, making it impossible to use an 8-bit enum as signed quantities, making it impossible to use an 8-bit enum
...@@ -20,6 +11,3 @@ ...@@ -20,6 +11,3 @@
#define ONLY_INT_FIELDS 1 #define ONLY_INT_FIELDS 1
#define CODE_FIELD_BUG 1 #define CODE_FIELD_BUG 1
#endif #endif
/* SCO lacks sys_siglist. */
#define NO_SYS_SIGLIST
/* Configuration for GNU C-compiler for Intel 80386.
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 NO_STAB_H
#include "i386/xm-i386.h"
/* Use semicolons to separate elements of a path. */ /* Use semicolons to separate elements of a path. */
#define PATH_SEPARATOR ';' #define PATH_SEPARATOR ';'
/* Target definitions for GNU compiler for Alliant FX/2800 /* Target definitions for GNU compiler for Alliant FX/2800
running Concentrix 2.2 running Concentrix 2.2
Copyright (C) 1991, 1996 Free Software Foundation, Inc. Copyright (C) 1991, 1996, 1998 Free Software Foundation, Inc.
Contributed by Howard Chu (hyc@hanauma.jpl.nasa.gov). Contributed by Howard Chu (hyc@hanauma.jpl.nasa.gov).
This file is part of GNU CC. This file is part of GNU CC.
...@@ -252,7 +252,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -252,7 +252,7 @@ Boston, MA 02111-1307, USA. */
#define DATA_ALIGNMENT(dummy,align) \ #define DATA_ALIGNMENT(dummy,align) \
((TREE_PUBLIC (decl) && \ ((TREE_PUBLIC (decl) && \
(TREE_CODE (TREE_TYPE (decl))==POINTER_TYPE)) ? 64:align) (POINTER_TYPE_P (TREE_TYPE (decl)))) ? 64: align)
#undef FUNCTION_PROFILER #undef FUNCTION_PROFILER
#define FUNCTION_PROFILER(FILE, LABELNO) \ #define FUNCTION_PROFILER(FILE, LABELNO) \
......
/* Definitions for Motorola 680x0 running A/UX /* Definitions for Motorola 680x0 running A/UX
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996, 1998 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -114,10 +114,10 @@ crt2.o%s " ...@@ -114,10 +114,10 @@ crt2.o%s "
For A/UX generate the result in d0, a0, or fp0 as appropriate. */ For A/UX generate the result in d0, a0, or fp0 as appropriate. */
#undef FUNCTION_VALUE #undef FUNCTION_VALUE
#define FUNCTION_VALUE(VALTYPE, FUNC) \ #define FUNCTION_VALUE(VALTYPE, FUNC) \
(TREE_CODE (VALTYPE) == REAL_TYPE && TARGET_68881 \ (TREE_CODE (VALTYPE) == REAL_TYPE && TARGET_68881 \
? gen_rtx (REG, TYPE_MODE (VALTYPE), 16) \ ? gen_rtx (REG, TYPE_MODE (VALTYPE), 16) \
: (TREE_CODE (VALTYPE) == POINTER_TYPE \ : (POINTER_TYPE_P (VALTYPE) \
? gen_rtx (REG, TYPE_MODE (VALTYPE), 8) \ ? gen_rtx (REG, TYPE_MODE (VALTYPE), 8) \
: gen_rtx (REG, TYPE_MODE (VALTYPE), 0))) : gen_rtx (REG, TYPE_MODE (VALTYPE), 0)))
......
/* Definitions for Motorola 680x0 running A/UX using /bin/as /* Definitions for Motorola 680x0 running A/UX using /bin/as
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -31,7 +31,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -31,7 +31,7 @@ Boston, MA 02111-1307, USA. */
#define ASM_SPEC "%{m68030:-68030 }%{m68040:-68040 }" #define ASM_SPEC "%{m68030:-68030 }%{m68040:-68040 }"
/* Modify AT&T SGS assembler syntax */ /* Modify AT&T SGS assembler syntax */
/* A/UX's as doesn't do dots in pseodo-ops */ /* A/UX's as doesn't do dots in pseudo-ops */
#define SDB_DEBUGGING_INFO #define SDB_DEBUGGING_INFO
......
/* Definitions for Motorola m68k running Linux /* Definitions for Motorola m68k running Linux-based GNU systems.
Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -50,7 +50,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -50,7 +50,7 @@ Boston, MA 02111-1307, USA. */
#undef LIB_SPEC #undef LIB_SPEC
#if 1 #if 1
/* We no longer link with libc_p.a or libg.a by default. If you want /* We no longer link with libc_p.a or libg.a by default. If you want
to profile or debug the Linux C library, please add -lc_p or -ggdb to profile or debug the GNU/Linux C library, please add -lc_p or -ggdb
to LDFLAGS at the link time, respectively. */ to LDFLAGS at the link time, respectively. */
#define LIB_SPEC \ #define LIB_SPEC \
"%{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} %{!ggdb:-lc} %{ggdb:-lg}" "%{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} %{!ggdb:-lc} %{ggdb:-lg}"
......
...@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA. */
# define FILE(n) file n # define FILE(n) file n
# define GLOBAL_SYM(s) global s # define GLOBAL_SYM(s) global s
# define LOCAL_LABEL(l) L%##l # define LOCAL_LABEL(l) L%##l
# define SECTION(n) section n # define IDENT(s) ident s
# define TEXT text # define TEXT text
#else /* Assume we are using GNU as. */ #else /* Assume we are using GNU as. */
# define COMM .comm # define COMM .comm
...@@ -35,8 +35,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -35,8 +35,7 @@ Boston, MA 02111-1307, USA. */
# define FILE(name) .file name # define FILE(name) .file name
# define GLOBAL_SYM(s) .globl s # define GLOBAL_SYM(s) .globl s
# define LOCAL_LABEL(l) .L.##l # define LOCAL_LABEL(l) .L.##l
# define SECTION(n) .section n # define IDENT(s) .section .comment;.asciz s
# define STRING(s) .asciz s
# define TEXT .text # define TEXT .text
#endif #endif
...@@ -86,24 +85,14 @@ LOCAL_LABEL(isatty): ...@@ -86,24 +85,14 @@ LOCAL_LABEL(isatty):
trap &0 trap &0
nop nop
GLOBAL_SYM (__stop_monitor)
__stop_monitor:
rts
EVEN EVEN
COMM splimit%,4 COMM splimit%,4
COMM environ,4 COMM environ,4
COMM mcount,4 IDENT ("$Id: mot3300-crt0.S,v 1.1.1.2 1998/01/14 19:39:06 law Exp $")
COMM mcount%,4 IDENT ("Contributed by Manfred Hollstein (manfred@lts.sel.alcatel.de)")
COMM monitor,4 IDENT ("Corrections by Philippe De Muyter (phdm@macqel.be)")
#ifdef STRING
SECTION (.comment)
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
byte ' ,'m,'a,'n,'f,'r,'e,'d,'@,'l,'t,'s,'.,'s
byte 'e,'l,'.,'a,'l,'c,'a,'t,'e,'l,'.,'d,'e,'
byte '(,'M,'a,'n,'f,'r,'e,'d,' ,'H,'o,'l,'l,'s
byte 't,'e,'i,'n,',,' ,'G,'e,'r,'m,'a,'n,'y,')
byte 10,0
#endif
/* The start module mcrt0.s for the SysV68 Motorola 3300 Delta Series. /* The start module mcrt0.s for the SysV68 Motorola 3300 Delta Series.
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Contributed by Manfred Hollstein (manfred@lts.sel.alcatel.de). Contributed by Manfred Hollstein (manfred@lts.sel.alcatel.de).
This file is part of GNU CC. This file is part of GNU CC.
...@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA. */
# define FILE(n) file n # define FILE(n) file n
# define GLOBAL_SYM(s) global s # define GLOBAL_SYM(s) global s
# define LOCAL_LABEL(l) L%##l # define LOCAL_LABEL(l) L%##l
# define SECTION(n) section n # define IDENT(s) ident s
# define TEXT text # define TEXT text
#else /* Assume we are using GNU as. */ #else /* Assume we are using GNU as. */
# define COMM .comm # define COMM .comm
...@@ -35,8 +35,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -35,8 +35,7 @@ Boston, MA 02111-1307, USA. */
# define FILE(name) .file name # define FILE(name) .file name
# define GLOBAL_SYM(s) .globl s # define GLOBAL_SYM(s) .globl s
# define LOCAL_LABEL(l) .L.##l # define LOCAL_LABEL(l) .L.##l
# define SECTION(n) .section n # define IDENT(s) .section .comment;.asciz s
# define STRING(s) .asciz s
# define TEXT .text # define TEXT .text
#endif #endif
...@@ -110,30 +109,27 @@ LOCAL_LABEL(isatty): ...@@ -110,30 +109,27 @@ LOCAL_LABEL(isatty):
jsr exit jsr exit
_exit: moveq &1,%d0 _exit: moveq &1,%d0
trap &0 trap &0
GLOBAL_SYM (mcount)
EVEN GLOBAL_SYM (__stop_monitor)
mcount: bra mcount% __stop_monitor:
clr.l -(%sp)
jsr monitor
add.w &4,%sp
rts
LOCAL_LABEL(errtxt): LOCAL_LABEL(errtxt):
#ifdef STRING
STRING ("No space for monitor buffer\n")
#else
byte 'N,'o,' ,'s,'p,'a,'c,'e,' ,'f,'o,'r,' ,'m,'o,'n byte 'N,'o,' ,'s,'p,'a,'c,'e,' ,'f,'o,'r,' ,'m,'o,'n
byte 'i,'t,'o,'r,' ,'b,'u,'f,'f,'e,'r,'\n,0 byte 'i,'t,'o,'r,' ,'b,'u,'f,'f,'e,'r,'\n
#endif LOCAL_LABEL(errtxt_end):
EVEN EVEN
LOCAL_LABEL(3): LOCAL_LABEL(3):
mov.l &28,-(%sp) pea LOCAL_LABEL(errtxt_end)-LOCAL_LABEL(errtxt)
mov.l &LOCAL_LABEL(errtxt),-(%sp) pea LOCAL_LABEL(errtxt)(%pc)
moveq &2,%d0 pea 2
mov.l %d0,-(%sp)
jsr write jsr write
bra.b _exit bra.b _exit
LOCAL_LABEL(endofstart): LOCAL_LABEL(endofstart):
nop
EVEN EVEN
...@@ -141,15 +137,6 @@ LOCAL_LABEL(endofstart): ...@@ -141,15 +137,6 @@ LOCAL_LABEL(endofstart):
COMM environ,4 COMM environ,4
COMM _countbase,4 COMM _countbase,4
#ifdef STRING IDENT ("$Id: mot3300Mcrt0.S,v 1.1.1.2 1998/01/14 19:39:08 law Exp $")
SECTION (.comment) IDENT ("Contributed by Manfred Hollstein (manfred@lts.sel.alcatel.de)")
STRING ("$Id: mot3300Mcrt0.S,v 1.1 1997/08/11 15:57:32 law Exp $\n") IDENT ("Corrections by Philippe De Muyter (phdm@macqel.be)")
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
byte ' ,'m,'a,'n,'f,'r,'e,'d,'@,'l,'t,'s,'.,'s
byte 'e,'l,'.,'a,'l,'c,'a,'t,'e,'l,'.,'d,'e,'
byte '(,'M,'a,'n,'f,'r,'e,'d,' ,'H,'o,'l,'l,'s
byte 't,'e,'i,'n,',,' ,'G,'e,'r,'m,'a,'n,'y,')
byte 10,0
#endif
/* Definitions of target machine for GNU compiler. Sun 2 running Sunos 4. /* Definitions of target machine for GNU compiler. Sun 2 running SunOS 4.
Copyright (C) 1987, 1988, 1993, 1996 Free Software Foundation, Inc. Copyright (C) 1987, 1988, 1993, 1996, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/* Specify extra dir to search for include files. */ /* Specify extra dir to search for include files. */
#define SYSTEM_INCLUDE_DIR "/usr/mach/include" #define SYSTEM_INCLUDE_DIR "/usr/mach/include"
/* LINK_SPEC is needed only for Sunos 4. */ /* LINK_SPEC is needed only for SunOS 4. */
#undef LINK_SPEC #undef LINK_SPEC
......
#include "m68k/sun3n.h" #include "m68k/sun3n.h"
/* LINK_SPEC is needed only for Sunos 4. */ /* LINK_SPEC is needed only for SunOS 4. */
#undef LINK_SPEC #undef LINK_SPEC
#include "m68k/sun3.h" #include "m68k/sun3.h"
/* LINK_SPEC is needed only for Sunos 4. */ /* LINK_SPEC is needed only for SunOS 4. */
#undef LINK_SPEC #undef LINK_SPEC
#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 index strchr
#define rindex strrchr
/* Override part of the obstack macros. */ /* Override part of the obstack macros. */
#define __PTR_TO_INT(P) ((int)(P)) #define __PTR_TO_INT(P) ((int)(P))
......
/* Definitions of host machine for GNU compiler.
Atari TT ASV 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 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 */
/* Add HZ define if missing */ /* Add HZ define if missing */
#ifndef HZ #ifndef HZ
#define HZ 100 /* System clock */ #define HZ 100 /* System clock */
#endif #endif
/* 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
/* 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 */
#define USG
#ifndef unos
#define unos
#endif
#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)
/* UNOS has vprintf() */
#define HAVE_VPRINTF
/* Avoid conflict with C library by changing name of this symbol. */ /* Avoid conflict with C library by changing name of this symbol. */
#define gettime gcc_gettime #define gettime gcc_gettime
#ifndef __GNUC__
#define USE_C_ALLOCA
#endif
/* Override part of the obstack macros. */ /* Override part of the obstack macros. */
#define __PTR_TO_INT(P) ((int)(P)) #define __PTR_TO_INT(P) ((int)(P))
......
#include "m68k/xm-m68k.h"
/* malloc does better with chunks the size of a page. */ /* malloc does better with chunks the size of a page. */
#define OBSTACK_CHUNK_SIZE (getpagesize ()) #define OBSTACK_CHUNK_SIZE (getpagesize ())
/* Host environment for 68000's running System V. */ /* 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
#ifndef _SIZE_T_ #ifndef _SIZE_T_
typedef int size_t; typedef int size_t;
#define _SIZE_T_ #define _SIZE_T_
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
64kb can be mapped out, thus catching references through null 64kb can be mapped out, thus catching references through null
pointers. We actually start at 0x10200 (for efficiency). Ideally, pointers. We actually start at 0x10200 (for efficiency). Ideally,
we want the page offset of a given word of the .text (output) we want the page offset of a given word of the .text (output)
section to be the same as it's page offset in the actual (output) section to be the same as its page offset in the actual (output)
linked core file so that paging of the .text section is efficient. linked core file so that paging of the .text section is efficient.
In order to do this we allow for up to 0x200 bytes of header stuff In order to do this we allow for up to 0x200 bytes of header stuff
in the output (linked) object file. in the output (linked) object file.
......
/* Definitions of target machine for GNU compiler. /* Definitions of target machine for GNU compiler.
Motorola m88100 running Omron Luna/88k. Motorola m88100 running Omron Luna/88k.
Copyright (C) 1991 Free Software Foundation, Inc. Copyright (C) 1991, 1997 Free Software Foundation, Inc.
Contributed by Jeffery Friedl (jfriedl@omron.co.jp) Contributed by Jeffrey Friedl (jfriedl@omron.co.jp)
This file is part of GNU CC. This file is part of GNU CC.
......
...@@ -44,5 +44,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -44,5 +44,3 @@ Boston, MA 02111-1307, USA. */
/* Override defaults for finding the MIPS tools. */ /* Override defaults for finding the MIPS tools. */
#define MD_STARTFILE_PREFIX "/bsd43/usr/lib/cmplrs/cc/" #define MD_STARTFILE_PREFIX "/bsd43/usr/lib/cmplrs/cc/"
#define MD_EXEC_PREFIX "/bsd43/usr/lib/cmplrs/cc/" #define MD_EXEC_PREFIX "/bsd43/usr/lib/cmplrs/cc/"
#include "mips/mips.h"
/* Definitions of target machine for GNU compiler. MIPS RISC-OS, 5.0 BSD version. /* Definitions of target machine for GNU compiler.
MIPS RISC-OS, 5.0 BSD version.
Copyright (C) 1991 Free Software Foundation, Inc. Copyright (C) 1991 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
......
/* Configuration for an Irix 5 host and Irix 6 target using SGI's cross64 /* Configuration for an Irix 5 host and Irix 6 target using SGI's cross64
package. */ package. */
#include "mips/iris6.h"
#define STANDARD_INCLUDE_DIR "/usr/cross64/usr/include" #define STANDARD_INCLUDE_DIR "/usr/cross64/usr/include"
#undef MD_EXEC_PREFIX #undef MD_EXEC_PREFIX
#define MD_EXEC_PREFIX "/usr/cross64/usr/bin/" #define MD_EXEC_PREFIX "/usr/cross64/usr/bin/"
......
/* Definitions of target machine for GNU compiler. DECstation (OSF/1) version. /* Definitions of target machine for GNU compiler. DECstation (OSF/1) version.
Copyright (C) 1992, 1996 Free Software Foundation, Inc. Copyright (C) 1992, 1996, 1998 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA. */
%{!shared: %{!non_shared: %{!call_shared: -non_shared}}}" %{!shared: %{!non_shared: %{!call_shared: -non_shared}}}"
#include "mips/ultrix.h" #include "mips/ultrix.h"
#include "mips/mips.h"
/* Specify size_t and wchar_t types. */ /* Specify size_t and wchar_t types. */
#undef SIZE_TYPE #undef SIZE_TYPE
......
/* Definitions of target machine for GNU compiler. MIPS ORION version with /* Definitions of target machine for GNU compiler. MIPS ORION version with
GOFAST floating point library. GOFAST floating point library.
Copyright (C) 1994 Free Software Foundation, Inc. Copyright (C) 1994, 1998 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -20,5 +20,3 @@ the Free Software Foundation, 59 Temple Place - Suite 330, ...@@ -20,5 +20,3 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#define MIPS_CPU_STRING_DEFAULT "orion" #define MIPS_CPU_STRING_DEFAULT "orion"
#include "mips/elf64.h"
...@@ -94,8 +94,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -94,8 +94,9 @@ Boston, MA 02111-1307, USA. */
#define MIPS_GNU #define MIPS_GNU
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#define CPP_PREDEFINES GNU_CPP_PREDEFINES("mips") \ #define CPP_PREDEFINES "-Dmips -Acpu(mips) -Amachine(mips) \
"-DMIPSEB -DR3000 -D_MIPSEB -D_R3000 \ -Dunix -Asystem(unix) -DMACH -Asystem(mach) -D__GNU__ -Asystem(gnu) \
-DMIPSEB -DR3000 -D_MIPSEB -D_R3000 \
-D_MIPS_SZINT=32 -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32" -D_MIPS_SZINT=32 -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32"
#undef LINK_SPEC #undef LINK_SPEC
......
/* Definitions of target machine for GNU compiler. Iris version. /* Definitions of target machine for GNU compiler. Iris version.
Copyright (C) 1991, 1993, 1995, 1996 Free Software Foundation, Inc. Copyright (C) 1991, 1993, 1995, 1996, 1998 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -70,5 +70,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -70,5 +70,3 @@ Boston, MA 02111-1307, USA. */
/* Plain char is unsigned in the SGI compiler. */ /* Plain char is unsigned in the SGI compiler. */
#define DEFAULT_SIGNED_CHAR 0 #define DEFAULT_SIGNED_CHAR 0
#include "mips/mips.h"
...@@ -22,8 +22,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -22,8 +22,6 @@ Boston, MA 02111-1307, USA. */
our own exit function. */ our own exit function. */
#define HAVE_ATEXIT #define HAVE_ATEXIT
#include "mips/iris3.h"
/* Profiling is supported via libprof1.a not -lc_p as in Irix 3. */ /* Profiling is supported via libprof1.a not -lc_p as in Irix 3. */
#undef STARTFILE_SPEC #undef STARTFILE_SPEC
#define STARTFILE_SPEC \ #define STARTFILE_SPEC \
......
...@@ -3,5 +3,3 @@ ...@@ -3,5 +3,3 @@
#define SUBTARGET_MIPS_AS_ASM_SPEC "-O0 %{v}" #define SUBTARGET_MIPS_AS_ASM_SPEC "-O0 %{v}"
#define SUBTARGET_ASM_OPTIMIZING_SPEC "" #define SUBTARGET_ASM_OPTIMIZING_SPEC ""
#include "mips/iris4.h"
/* Definitions for DECstation running BSD as target machine for GNU compiler. /* Definitions for DECstation running BSD as target machine for GNU compiler.
Copyright (C) 1993, 1995, 1996 Free Software Foundation, Inc. Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -30,11 +30,11 @@ Boston, MA 02111-1307, USA. */ ...@@ -30,11 +30,11 @@ Boston, MA 02111-1307, USA. */
#define GCC_INCLUDE_DIR "/usr/include" #define GCC_INCLUDE_DIR "/usr/include"
#undef INCLUDE_DEFAULTS #undef INCLUDE_DEFAULTS
#define INCLUDE_DEFAULTS \ #define INCLUDE_DEFAULTS \
{ \ { \
{ GPLUSPLUS_INCLUDE_DIR, 1, 1 }, \ { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, \
{ GCC_INCLUDE_DIR, 0, 0 }, \ { GCC_INCLUDE_DIR, "GCC", 0, 0 }, \
{ 0, 0, 0 } \ { 0, 0, 0, 0 } \
} }
/* Under NetBSD, the normal location of the various *crt*.o files is the /* Under NetBSD, the normal location of the various *crt*.o files is the
......
/* Definitions of target machine for GNU compiler. Sony RISC NEWS (mips) /* Definitions of target machine for GNU compiler. Sony RISC NEWS (mips)
Copyright (C) 1991 Free Software Foundation, Inc. Copyright (C) 1991, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -33,4 +33,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -33,4 +33,7 @@ Boston, MA 02111-1307, USA. */
#define MACHINE_TYPE "RISC NEWS-OS" #define MACHINE_TYPE "RISC NEWS-OS"
#include "mips/mips.h" /* INITIALIZE_TRAMPOLINE calls this library function to flush
program and data caches. */
#define CACHE_FLUSH_FUNC "cacheflush"
/* Definitions of target machine for GNU compiler. Sony RISC NEWS (mips) System V version. /* Definitions of target machine for GNU compiler.
Sony RISC NEWS (mips) System V version.
Copyright (C) 1992 Free Software Foundation, Inc. Copyright (C) 1992 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -59,4 +60,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -59,4 +60,3 @@ Boston, MA 02111-1307, USA. */
#endif /* !_SC_PAGE_SIZE */ #endif /* !_SC_PAGE_SIZE */
#endif /* L_trampoline */ #endif /* L_trampoline */
#include "mips/mips.h"
/* Definitions of target machine for GNU compiler. /* Definitions of target machine for GNU compiler.
DECstation (OSF/1 reference port with OSF/rose) version. DECstation (OSF/1 reference port with OSF/rose) version.
Copyright (C) 1991, 1992, 1995, 1996 Free Software Foundation, Inc. Copyright (C) 1991, 1992, 1995, 1996, 1998 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -147,5 +147,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -147,5 +147,3 @@ Boston, MA 02111-1307, USA. */
if (strcmp (lang_identify (), "c") != 0) \ if (strcmp (lang_identify (), "c") != 0) \
output_lang_identify (STREAM); \ output_lang_identify (STREAM); \
} }
#include "mips/mips.h"
#include "mips/sni-svr4.h"
/* Enable debugging. */ /* Enable debugging. */
#define DBX_DEBUGGING_INFO #define DBX_DEBUGGING_INFO
#define SDB_DEBUGGING_INFO #define SDB_DEBUGGING_INFO
...@@ -38,6 +36,3 @@ do { \ ...@@ -38,6 +36,3 @@ do { \
assemble_name (FILE, LABEL2); \ assemble_name (FILE, LABEL2); \
fprintf (FILE, "\n"); \ fprintf (FILE, "\n"); \
} while (0) } while (0)
/* Definitions of target machine for GNU compiler. MIPS RISC-OS System V version. /* Definitions of target machine for GNU compiler.
MIPS RISC-OS System V version.
Copyright (C) 1991 Free Software Foundation, Inc. Copyright (C) 1991 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -60,5 +61,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -60,5 +61,3 @@ Boston, MA 02111-1307, USA. */
/* Generate calls to memcpy, etc., not bcopy, etc. */ /* Generate calls to memcpy, etc., not bcopy, etc. */
#define TARGET_MEM_FUNCTIONS #define TARGET_MEM_FUNCTIONS
#include "mips/mips.h"
/* Definitions of target machine for GNU compiler. MIPS RISC-OS 5.0 System V version. /* Definitions of target machine for GNU compiler.
Copyright (C) 1991 Free Software Foundation, Inc. MIPS RISC-OS 5.0 System V version.
Copyright (C) 1991, 1998 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
......
/* Definitions of target machine for GNU compiler. MIPS RISC-OS System V.4 version. /* Definitions of target machine for GNU compiler.
Copyright (C) 1992 Free Software Foundation, Inc. MIPS RISC-OS System V.4 version.
Copyright (C) 1992, 1998 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -58,5 +59,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -58,5 +59,3 @@ Boston, MA 02111-1307, USA. */
/* Generate calls to memcpy, etc., not bcopy, etc. */ /* Generate calls to memcpy, etc., not bcopy, etc. */
#define TARGET_MEM_FUNCTIONS #define TARGET_MEM_FUNCTIONS
#include "mips/mips.h"
/* Definitions of target machine for GNU compiler. MIPS RISC-OS 5.0 System V.4 version. /* Definitions of target machine for GNU compiler.
MIPS RISC-OS 5.0 System V.4 version.
Copyright (C) 1992 Free Software Foundation, Inc. Copyright (C) 1992 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
......
/* Definitions of target machine for GNU compiler. Tandem S2 w/ NonStop UX. */ /* Definitions of target machine for GNU compiler. Tandem S2 w/ NonStop UX. */
#include "mips/svr4-5.h"
/* Use the default value for this. */ /* Use the default value for this. */
#undef STANDARD_INCLUDE_DIR #undef STANDARD_INCLUDE_DIR
......
/* Definitions of target machine for GNU compiler. DECstation (ultrix) version. /* Definitions of target machine for GNU compiler; DECstation (Ultrix) version.
Copyright (C) 1991 Free Software Foundation, Inc. Copyright (C) 1991, 1997, 1998 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -31,6 +31,12 @@ Boston, MA 02111-1307, USA. */ ...@@ -31,6 +31,12 @@ Boston, MA 02111-1307, USA. */
#define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc" #define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc"
#endif #endif
#define SUBTARGET_CPP_SPEC "\
%{.cc: -D__LANGUAGE_C -D_LANGUAGE_C} \
%{.cxx: -D__LANGUAGE_C -D_LANGUAGE_C} \
%{.C: -D__LANGUAGE_C -D_LANGUAGE_C} \
"
#ifndef STARTFILE_SPEC #ifndef STARTFILE_SPEC
#define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}" #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
#endif #endif
...@@ -46,4 +52,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -46,4 +52,10 @@ Boston, MA 02111-1307, USA. */
/* Generate calls to memcpy, etc., not bcopy, etc. */ /* Generate calls to memcpy, etc., not bcopy, etc. */
#define TARGET_MEM_FUNCTIONS #define TARGET_MEM_FUNCTIONS
#include "mips/mips.h" /* Work around assembler forward label references generated in exception
handling code. */
#define DWARF2_UNWIND_INFO 0
/* INITIALIZE_TRAMPOLINE calls this library function to flush
program and data caches. */
#define CACHE_FLUSH_FUNC "cacheflush"
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
CC = $(OLDCC) CC = $(OLDCC)
OPT = -O1 OPT = -O1
OLDCC = cc -Wf,-XNg1500 -Olimit 3000 $(OPT) OLDCC = cc -Wf,-XNg1500 -Olimit 3000 $(OPT)
INSTALL = installbsd -c
# The bison output files are machine-indep, # The bison output files are machine-indep,
# so different flags for a particular machine are not useful. # so different flags for a particular machine are not useful.
......
...@@ -17,7 +17,6 @@ DEBUG = ...@@ -17,7 +17,6 @@ DEBUG =
DEBUG_COLLECT = # -DDEBUG DEBUG_COLLECT = # -DDEBUG
CCLIBFLAGS = -O -DNO_HALF_PIC CCLIBFLAGS = -O -DNO_HALF_PIC
GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) -B./ -DPOSIX -DNO_HALF_PIC GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) -B./ -DPOSIX -DNO_HALF_PIC
INSTALL = installbsd -c
LIBGCC2_CFLAGS = -O2 $(GCC_CFLAGS) -g1 -pic-extern LIBGCC2_CFLAGS = -O2 $(GCC_CFLAGS) -g1 -pic-extern
LDFLAGS = LDFLAGS =
MSTATS = # -mstats MSTATS = # -mstats
......
...@@ -5,17 +5,13 @@ ...@@ -5,17 +5,13 @@
extern void *alloca (); extern void *alloca ();
#endif #endif
#include "mips/xm-iris5.h" #include "mips/xm-mips.h"
#define USG
#undef HOST_BITS_PER_LONG #undef HOST_BITS_PER_LONG
#define HOST_BITS_PER_LONG _MIPS_SZLONG #define HOST_BITS_PER_LONG _MIPS_SZLONG
/* Declare some functions needed for this machine. We don't want to
include these in the sources since other machines might define them
differently. */
extern void *malloc (), *realloc (), *calloc ();
#ifndef inhibit_libc #ifndef inhibit_libc
#include "string.h" #include "string.h"
#endif #endif
/* Configuration for GNU C-compiler for PC532 running Minix
Copyright (C) 1987,1990 Free Software Foundation, Inc.
Contributed by Jyrki Kuoppala <jkp@cs.hut.fi>, August 1990
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. */
/* We have USG-style include files and time functions */
#define USG
#include "ns32k/xm-ns32k.h"
#ifndef HZ #ifndef HZ
#define HZ 60 #define HZ 60
#endif #endif
......
/* Definitions of target machine for GNU compiler, for HP PA-RISC 1.1 /* Definitions of target machine for GNU compiler, for HP PA-RISC 1.1
Copyright (C) 1995, 1996 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
Contributed by Tim Moore (moore@defmacro.cs.utah.edu) Contributed by Tim Moore (moore@defmacro.cs.utah.edu)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -20,7 +20,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, ...@@ -20,7 +20,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* We can debug dynamically linked executables on hpux9; we also want /* We can debug dynamically linked executables on hpux9; we also want
derefercing of a NULL pointer to cause a SEGV. */ dereferencing of a NULL pointer to cause a SEGV. */
#undef LINK_SPEC #undef LINK_SPEC
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 1) #if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & 1)
#define LINK_SPEC \ #define LINK_SPEC \
......
/* Definitions of target machine for GNU compiler, for PRO. /* Definitions of target machine for GNU compiler, for PRO.
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -31,7 +31,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -31,7 +31,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dhppa -DPWB -Acpu(hppa) -Amachine(hppa)" #define CPP_PREDEFINES "-Dhppa -DPWB -Acpu(hppa) -Amachine(hppa)"
/* hpux8 and later have C++ compatable include files, so do not /* hpux8 and later have C++ compatible include files, so do not
pretend they are `extern "C"'. */ pretend they are `extern "C"'. */
#define NO_IMPLICIT_EXTERN_C #define NO_IMPLICIT_EXTERN_C
......
/* Configuration for GNU C-compiler for PA-RISC. /* Configuration for GNU C-compiler for PA-RISC.
Copyright (C) 1988, 1995 Free Software Foundation, Inc. Copyright (C) 1988, 1995, 1997 Free Software Foundation, Inc.
Contributed by Michael Tiemann (tiemann@cygnus.com). Contributed by Michael Tiemann (tiemann@cygnus.com).
This file is part of GNU CC. This file is part of GNU CC.
...@@ -24,13 +24,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -24,13 +24,6 @@ Boston, MA 02111-1307, USA. */
#define USG #define USG
/* Use System V memory functions. */ /* Use System V memory functions. */
#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
/* #defines that need visibility everywhere. */ /* #defines that need visibility everywhere. */
#define FALSE 0 #define FALSE 0
#define TRUE 1 #define TRUE 1
......
/* Definitions of target machine for GNU compiler, /* Definitions of target machine for GNU compiler,
for IBM RS/6000 running AIX version 3.1. for IBM RS/6000 running AIX version 3.1.
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Contributed by David Reese (Dave.Reese@East.Sun.COM) Contributed by David Reese (Dave.Reese@East.Sun.COM)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -46,6 +46,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -46,6 +46,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef LINK_START_DEFAULT_SPEC #undef LINK_START_DEFAULT_SPEC
#define LINK_START_DEFAULT_SPEC "%(link_start_solaris)" #define LINK_START_DEFAULT_SPEC "%(link_start_solaris)"
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
%(cpp_sysv) %(cpp_endian) %(cpp_cpu) \
%{mmvme: %(cpp_os_mvme) } \
%{msim: %(cpp_os_sim) } \
%{mcall-linux: %(cpp_os_linux) } \
%{mcall-solaris: %(cpp_os_solaris) } \
%{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-solaris: %(cpp_os_default) }}}}"
#undef CPP_OS_DEFAULT_SPEC #undef CPP_OS_DEFAULT_SPEC
#define CPP_OS_DEFAULT_SPEC "%(cpp_os_solaris)" #define CPP_OS_DEFAULT_SPEC "%(cpp_os_solaris)"
...@@ -165,3 +174,5 @@ while (0) ...@@ -165,3 +174,5 @@ while (0)
#undef MULTILIB_DEFAULTS #undef MULTILIB_DEFAULTS
#define MULTILIB_DEFAULTS { "mlittle", "mcall-solaris" } #define MULTILIB_DEFAULTS { "mlittle", "mcall-solaris" }
#define STDC_0_IN_SYSTEM_HEADERS
# Target config file for a System V based system (Solaris, Linux, Netbsd) with gas # Target config file for a System V based system (Solaris, GNU/Linux, Netbsd)
# with gas.
# Build libgcc.a with different options. With gas, build pic libraries # Build libgcc.a with different options. With gas, build pic libraries
# as well no floating point # as well no floating point
......
/* CYGNUS LOCAL -- waiting for FSF sources to be restored/meissner */ /* Special support for trampolines
/*
* special support for trampolines
* *
* Copyright (C) 1996 Free Software Foundation, Inc. * Copyright (C) 1996, 1997 Free Software Foundation, Inc.
* Written By Michael Meissner * Written By Michael Meissner
* *
* This file is free software; you can redistribute it and/or modify it * This file is free software; you can redistribute it and/or modify it
...@@ -82,7 +80,7 @@ FUNC_START(__trampoline_setup) ...@@ -82,7 +80,7 @@ FUNC_START(__trampoline_setup)
mflr r11 mflr r11
lwz r12,(.LCL0-.LCF0)(r11) lwz r12,(.LCL0-.LCF0)(r11)
add r11,r12,r11 add r11,r12,r11
lwz r7,.Ltramp(r11) /* trampoline addres -4 */ lwz r7,.Ltramp(r11) /* trampoline address -4 */
li r8,__trampoline_size /* verify that the trampoline is big enough */ li r8,__trampoline_size /* verify that the trampoline is big enough */
cmpw cr1,r8,r4 cmpw cr1,r8,r4
......
# configuration for IBM rs6000 running aix # configuration for IBM rs6000 running aix
INSTALL=/usr/ucb/install -c
# Show we need to use the C version of ALLOCA # Show we need to use the C version of ALLOCA
ALLOCA=alloca.o ALLOCA=alloca.o
......
/* Configuration for GNU C-compiler for IBM RS/6000 on MACH.
Copyright (C) 1992 Free Software Foundation, Inc.
Contributed by Richard Kenner (kenner@nyu.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 "rs6000/xm-rs6000.h"
#undef USG #undef USG
#undef COLLECT_EXPORT_LIST #undef COLLECT_EXPORT_LIST
/* Configuration for GNU C-compiler for Hitachi SH. /* Configuration for GNU C-compiler for Hitachi SH.
Copyright (C) 1993 Free Software Foundation, Inc. Copyright (C) 1993, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify GNU CC is free software; you can redistribute it and/or modify
...@@ -32,9 +33,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -32,9 +33,6 @@ Boston, MA 02111-1307, USA. */
#define alloca __builtin_alloca #define alloca __builtin_alloca
#endif #endif
/* We have the vprintf function. */
#define HAVE_VPRINTF 1
/* target machine dependencies. /* target machine dependencies.
tm.h is a symbolic link to the actual target specific file. */ tm.h is a symbolic link to the actual target specific file. */
#include "tm.h" #include "tm.h"
......
# configuration file for a bare sparc cpu, aout format files # configuration file for a bare sparc cpu
CROSS_LIBGCC1 = libgcc1-asm.a CROSS_LIBGCC1 = libgcc1-asm.a
LIB1ASMSRC = sparc/lb1spc.asm LIB1ASMSRC = sparc/lb1spc.asm
......
/* Configuration for GNU C-compiler for Sun Sparc. /* Configuration for GNU C-compiler for Sun Sparc.
Copyright (C) 1988, 1993, 1995 Free Software Foundation, Inc. Copyright (C) 1988, 1993, 1995, 1997 Free Software Foundation, Inc.
Contributed by Michael Tiemann (tiemann@cygnus.com). Contributed by Michael Tiemann (tiemann@cygnus.com).
This file is part of GNU CC. This file is part of GNU CC.
...@@ -43,8 +43,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -43,8 +43,6 @@ Boston, MA 02111-1307, USA. */
#define SUCCESS_EXIT_CODE 0 #define SUCCESS_EXIT_CODE 0
#define FATAL_EXIT_CODE 33 #define FATAL_EXIT_CODE 33
#define HAVE_POPEN
/* If compiled with Sun CC, the use of alloca requires this #include. */ /* If compiled with Sun CC, the use of alloca requires this #include. */
#ifndef __GNUC__ #ifndef __GNUC__
#include "alloca.h" #include "alloca.h"
......
/* Configuration for GNU C-compiler for Sun Sparc running System V.4. /* Configuration for GNU C-compiler for Sun Sparc running System V.4.
Copyright (C) 1992, 1993 Free Software Foundation, Inc. Copyright (C) 1992, 1993, 1998 Free Software Foundation, Inc.
Contributed by Ron Guilmette (rfg@netcom.com).
Written by Ron Guilmette (rfg@netcom.com).
This file is part of GNU CC. This file is part of GNU CC.
...@@ -44,8 +43,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -44,8 +43,6 @@ Boston, MA 02111-1307, USA. */
#define SUCCESS_EXIT_CODE 0 #define SUCCESS_EXIT_CODE 0
#define FATAL_EXIT_CODE 33 #define FATAL_EXIT_CODE 33
#include "xm-svr4.h"
#ifndef __GNUC__ #ifndef __GNUC__
#define ONLY_INT_FIELDS #define ONLY_INT_FIELDS
#endif #endif
/* Subroutines for insn-output.c for Tahoe. /* Subroutines for insn-output.c for Tahoe.
Copyright (C) 1989, 1991 Free Software Foundation, Inc. Copyright (C) 1989, 1991, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -20,6 +20,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -20,6 +20,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h" #include "config.h"
#include <stdio.h>
#include "rtl.h" #include "rtl.h"
#include "regs.h" #include "regs.h"
#include "hard-reg-set.h" #include "hard-reg-set.h"
...@@ -51,7 +52,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -51,7 +52,7 @@ Boston, MA 02111-1307, USA. */
rtx tahoe_reg_conversion_loc; rtx tahoe_reg_conversion_loc;
int int
extendable_operand (op, mode) extensible_operand (op, mode)
rtx op; rtx op;
enum machine_mode mode; enum machine_mode mode;
{ {
...@@ -67,8 +68,6 @@ extendable_operand (op, mode) ...@@ -67,8 +68,6 @@ extendable_operand (op, mode)
/* since the modes are basically the same. I had to add a special case, */ /* since the modes are basically the same. I had to add a special case, */
/* though, for symbol references with offsets. */ /* though, for symbol references with offsets. */
#include <stdio.h>
print_operand_address (file, addr) print_operand_address (file, addr)
FILE *file; FILE *file;
register rtx addr; register rtx addr;
......
...@@ -7,3 +7,6 @@ ...@@ -7,3 +7,6 @@
#define PTRDIFF_TYPE "int" #define PTRDIFF_TYPE "int"
#define WCHAR_TYPE "unsigned int" #define WCHAR_TYPE "unsigned int"
#define WCHAR_TYPE_SIZE 32 #define WCHAR_TYPE_SIZE 32
/* True for Ultrix 4.3 and later and possibly earlier. */
#define HAVE_ATEXIT
/* Subroutines for insn-output.c for Vax. /* Subroutines for insn-output.c for Vax.
Copyright (C) 1987, 1994, 1995, 1997 Free Software Foundation, Inc. Copyright (C) 1987, 1994, 1995, 1997, 1998 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -18,8 +18,8 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -18,8 +18,8 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include "config.h" #include "config.h"
#include <stdio.h>
#include "rtl.h" #include "rtl.h"
#include "regs.h" #include "regs.h"
#include "hard-reg-set.h" #include "hard-reg-set.h"
...@@ -614,34 +614,36 @@ check_float_value (mode, d, overflow) ...@@ -614,34 +614,36 @@ check_float_value (mode, d, overflow)
if (overflow) if (overflow)
{ {
bcopy (&float_values[0], d, sizeof (REAL_VALUE_TYPE)); bcopy ((char *) &float_values[0], (char *) d, sizeof (REAL_VALUE_TYPE));
return 1; return 1;
} }
if ((mode) == SFmode) if ((mode) == SFmode)
{ {
REAL_VALUE_TYPE r; REAL_VALUE_TYPE r;
bcopy (d, &r, sizeof (REAL_VALUE_TYPE)); bcopy ((char *) d, (char *) &r, sizeof (REAL_VALUE_TYPE));
if (REAL_VALUES_LESS (float_values[0], r)) if (REAL_VALUES_LESS (float_values[0], r))
{ {
bcopy (&float_values[0], d, sizeof (REAL_VALUE_TYPE)); bcopy ((char *) &float_values[0], (char *) d,
sizeof (REAL_VALUE_TYPE));
return 1; return 1;
} }
else if (REAL_VALUES_LESS (r, float_values[1])) else if (REAL_VALUES_LESS (r, float_values[1]))
{ {
bcopy (&float_values[1], d, sizeof (REAL_VALUE_TYPE)); bcopy ((char *) &float_values[1], (char*) d,
sizeof (REAL_VALUE_TYPE));
return 1; return 1;
} }
else if (REAL_VALUES_LESS (dconst0, r) else if (REAL_VALUES_LESS (dconst0, r)
&& REAL_VALUES_LESS (r, float_values[2])) && REAL_VALUES_LESS (r, float_values[2]))
{ {
bcopy (&dconst0, d, sizeof (REAL_VALUE_TYPE)); bcopy ((char *) &dconst0, (char *) d, sizeof (REAL_VALUE_TYPE));
return 1; return 1;
} }
else if (REAL_VALUES_LESS (r, dconst0) else if (REAL_VALUES_LESS (r, dconst0)
&& REAL_VALUES_LESS (float_values[3], r)) && REAL_VALUES_LESS (float_values[3], r))
{ {
bcopy (&dconst0, d, sizeof (REAL_VALUE_TYPE)); bcopy ((char *) &dconst0, (char *) d, sizeof (REAL_VALUE_TYPE));
return 1; return 1;
} }
} }
......
/* Configuration for GNU compiler for processor running Windows NT 3.x. /* Configuration for GNU compiler for processor running Windows NT 3.x.
Copyright (C) 1993, 1995 Free Software Foundation, Inc. Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc.
Contributed by Douglas B. Rupp (drupp@cs.washington.edu) Contributed by Douglas B. Rupp (drupp@cs.washington.edu)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -42,11 +42,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -42,11 +42,6 @@ Boston, MA 02111-1307, USA. */
#endif #endif
#define NO_SYS_SIGLIST 1 #define NO_SYS_SIGLIST 1
#define bcmp(a,b,c) memcmp (a,b,c)
#define bcopy(a,b,c) memcpy (b,a,c)
#define bzero(a,b) memset (a,0,b)
#define index strchr
#define rindex strrchr
#define kill(a,b) raise(b) #define kill(a,b) raise(b)
#define OBJECT_SUFFIX ".obj" #define OBJECT_SUFFIX ".obj"
...@@ -66,4 +61,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -66,4 +61,3 @@ Boston, MA 02111-1307, USA. */
#define S_IRWXU S_IRUSR | S_IWUSR | S_IXUSR #define S_IRWXU S_IRUSR | S_IWUSR | S_IXUSR
#define S_ISREG(m) (((m)&S_IFMT) == S_IFREG) #define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
/* PowerPC asm definitions for GNU C. */ /* PowerPC asm definitions for GNU C. */
/* Under winnt, 1) gas suppports the following as names and 2) in particular /* Under winnt, 1) gas supports the following as names and 2) in particular
defining "toc" breaks the FUNC_START macro as ".toc" becomes ".2" */ defining "toc" breaks the FUNC_START macro as ".toc" becomes ".2" */
#if !defined(__WINNT__) #if !defined(__WINNT__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment