add directory gnu
This commit is contained in:
236
gnu/gcc/gccdiff-1.40/Makefile.cd
Normal file
236
gnu/gcc/gccdiff-1.40/Makefile.cd
Normal file
@@ -0,0 +1,236 @@
|
||||
*** originals/Makefile Sat Aug 17 21:16:51 1991
|
||||
--- Makefile Sat Aug 17 21:21:23 1991
|
||||
***************
|
||||
*** 21,32 ****
|
||||
# Variables that exist for you to override.
|
||||
# See below for how to change them for certain systems.
|
||||
|
||||
! CFLAGS = -g $(XCFLAGS)
|
||||
! CC = cc
|
||||
BISON = bison
|
||||
BISONFLAGS = -v
|
||||
# This should be the version of ar to use with output from GCC.
|
||||
! AR = ar
|
||||
SHELL = /bin/sh
|
||||
# on sysV, define this as cp.
|
||||
INSTALL = install -c
|
||||
--- 21,33 ----
|
||||
# Variables that exist for you to override.
|
||||
# See below for how to change them for certain systems.
|
||||
|
||||
! XCFLAGS = -DNATIVE_MINIX
|
||||
! CFLAGS = -O $(XCFLAGS)
|
||||
! CC = gcc
|
||||
BISON = bison
|
||||
BISONFLAGS = -v
|
||||
# This should be the version of ar to use with output from GCC.
|
||||
! AR = gcc-ar
|
||||
SHELL = /bin/sh
|
||||
# on sysV, define this as cp.
|
||||
INSTALL = install -c
|
||||
***************
|
||||
*** 38,44 ****
|
||||
|
||||
# Compiler to use for compiling gnulib.
|
||||
# OLDCC should not be the GNU C compiler.
|
||||
! OLDCC = cc
|
||||
|
||||
# CFLAGS for use with OLDCC, for compiling gnulib.
|
||||
# NOTE: -O does not work on some Unix systems!
|
||||
--- 39,45 ----
|
||||
|
||||
# Compiler to use for compiling gnulib.
|
||||
# OLDCC should not be the GNU C compiler.
|
||||
! OLDCC = gcc
|
||||
|
||||
# CFLAGS for use with OLDCC, for compiling gnulib.
|
||||
# NOTE: -O does not work on some Unix systems!
|
||||
***************
|
||||
*** 46,52 ****
|
||||
CCLIBFLAGS=-O
|
||||
|
||||
# This should be the version of ar to use with output from $(OLDCC).
|
||||
! OLDAR = ar
|
||||
|
||||
# CFLAGS for use with OLDCC, for compiling hard-params.
|
||||
HARD_PARAMS_FLAGS=
|
||||
--- 47,53 ----
|
||||
CCLIBFLAGS=-O
|
||||
|
||||
# This should be the version of ar to use with output from $(OLDCC).
|
||||
! OLDAR = gcc-ar
|
||||
|
||||
# CFLAGS for use with OLDCC, for compiling hard-params.
|
||||
HARD_PARAMS_FLAGS=
|
||||
***************
|
||||
*** 54,64 ****
|
||||
# Directory where sources are, from where we are.
|
||||
srcdir = .
|
||||
# Directory in which to put the executable for the command `gcc'
|
||||
! bindir = $(prefix)/usr/local/bin
|
||||
# Directory in which to put the subprograms used by the compiler.
|
||||
! libdir = $(prefix)/usr/local/lib
|
||||
# Directory in which to put man pages.
|
||||
! mandir = $(prefix)/usr/local/man/man1
|
||||
# Number to put in man-page filename.
|
||||
manext = 1
|
||||
|
||||
--- 55,65 ----
|
||||
# Directory where sources are, from where we are.
|
||||
srcdir = .
|
||||
# Directory in which to put the executable for the command `gcc'
|
||||
! bindir = $(prefix)/usr/gnu/bin
|
||||
# Directory in which to put the subprograms used by the compiler.
|
||||
! libdir = $(prefix)/usr/gnu/lib
|
||||
# Directory in which to put man pages.
|
||||
! mandir = $(prefix)/usr/man/man1
|
||||
# Number to put in man-page filename.
|
||||
manext = 1
|
||||
|
||||
***************
|
||||
*** 238,244 ****
|
||||
# because all that file does, when not compiling with GCC,
|
||||
# is include the system varargs.h.
|
||||
|
||||
! all: config.status gnulib gcc cc1 cpp float.h gnulib2 # cc1plus
|
||||
|
||||
# Use this instead of `all' if you need to convert the libraries
|
||||
# before you can use the compiler.
|
||||
--- 239,245 ----
|
||||
# because all that file does, when not compiling with GCC,
|
||||
# is include the system varargs.h.
|
||||
|
||||
! all: config.status gcc cc1 cpp float.h
|
||||
|
||||
# Use this instead of `all' if you need to convert the libraries
|
||||
# before you can use the compiler.
|
||||
***************
|
||||
*** 260,268 ****
|
||||
--- 261,271 ----
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o gccnew gcc.o version.o $(LIBS)
|
||||
# Go via `gccnew' to avoid `file busy' if $(CC) is `gcc'.
|
||||
mv gccnew gcc
|
||||
+ chmem =12000 $@
|
||||
|
||||
cc1: $(C_OBJS) $(OBJS) $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(LIBS)
|
||||
+ chmem =1500000 $@
|
||||
|
||||
cc1plus: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o cc1plus $(CPLUS_OBJS) $(OBJS) $(LIBS)
|
||||
***************
|
||||
*** 324,331 ****
|
||||
# Compile hard-params with standard cc. It avoids some headaches.
|
||||
hard-params: hard-params.o
|
||||
$(OLDCC) $(HARD_PARAMS_FLAGS) $(LDFLAGS) hard-params.o -o $@
|
||||
hard-params.o: $(srcdir)/hard-params.c
|
||||
- -cp $(srcdir)/hard-params.c . > /dev/null 2>&1
|
||||
$(OLDCC) $(HARD_PARAMS_FLAGS) $(CPPFLAGS) -DNO_SC -c hard-params.c
|
||||
|
||||
# C language specific files.
|
||||
--- 327,334 ----
|
||||
# Compile hard-params with standard cc. It avoids some headaches.
|
||||
hard-params: hard-params.o
|
||||
$(OLDCC) $(HARD_PARAMS_FLAGS) $(LDFLAGS) hard-params.o -o $@
|
||||
+ chmem =150000 $@
|
||||
hard-params.o: $(srcdir)/hard-params.c
|
||||
$(OLDCC) $(HARD_PARAMS_FLAGS) $(CPPFLAGS) -DNO_SC -c hard-params.c
|
||||
|
||||
# C language specific files.
|
||||
***************
|
||||
*** 365,372 ****
|
||||
gcc.o: gcc.c $(CONFIG_H) gvarargs.h obstack.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) \
|
||||
-DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
|
||||
! -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-\" -c \
|
||||
! `echo $(srcdir)/gcc.c | sed 's,^\./,,'`
|
||||
|
||||
version.o: version.c
|
||||
obstack.o: obstack.c
|
||||
--- 368,374 ----
|
||||
gcc.o: gcc.c $(CONFIG_H) gvarargs.h obstack.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) \
|
||||
-DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
|
||||
! -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-\" -c $(srcdir)/gcc.c
|
||||
|
||||
version.o: version.c
|
||||
obstack.o: obstack.c
|
||||
***************
|
||||
*** 520,560 ****
|
||||
--- 522,570 ----
|
||||
|
||||
genconfig : genconfig.o rtl.o $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o genconfig genconfig.o rtl.o $(LIBS)
|
||||
+ chmem =200000 $@
|
||||
|
||||
genconfig.o : genconfig.c $(RTL_H) config.h
|
||||
|
||||
genflags : genflags.o rtl.o $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o genflags genflags.o rtl.o $(LIBS)
|
||||
+ chmem =200000 $@
|
||||
|
||||
genflags.o : genflags.c $(RTL_H) config.h
|
||||
|
||||
gencodes : gencodes.o rtl.o $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o gencodes gencodes.o rtl.o $(LIBS)
|
||||
+ chmem =200000 $@
|
||||
|
||||
gencodes.o : gencodes.c $(RTL_H) config.h
|
||||
|
||||
genemit : genemit.o rtl.o $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o genemit genemit.o rtl.o $(LIBS)
|
||||
+ chmem =200000 $@
|
||||
|
||||
genemit.o : genemit.c $(RTL_H) config.h
|
||||
|
||||
genrecog : genrecog.o rtl.o $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o genrecog genrecog.o rtl.o $(LIBS)
|
||||
+ chmem =400000 $@
|
||||
|
||||
genrecog.o : genrecog.c $(RTL_H) config.h
|
||||
|
||||
genextract : genextract.o rtl.o $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o genextract genextract.o rtl.o $(LIBS)
|
||||
+ chmem =200000 $@
|
||||
|
||||
genextract.o : genextract.c $(RTL_H) config.h
|
||||
|
||||
genpeep : genpeep.o rtl.o $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o genpeep genpeep.o rtl.o $(LIBS)
|
||||
+ chmem =200000 $@
|
||||
|
||||
genpeep.o : genpeep.c $(RTL_H) config.h
|
||||
|
||||
genoutput : genoutput.o rtl.o $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o genoutput genoutput.o rtl.o $(LIBS)
|
||||
+ chmem =400000 $@
|
||||
|
||||
genoutput.o : genoutput.c $(RTL_H) config.h
|
||||
|
||||
***************
|
||||
*** 564,569 ****
|
||||
--- 574,580 ----
|
||||
ln cccp cpp
|
||||
cccp: cccp.o cexp.o version.o $(LIBDEPS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
|
||||
+ chmem =1000000 $@
|
||||
cexp.o: $(srcdir)/cexp.c $(CONFIG_H)
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $(srcdir)/cexp.c
|
||||
$(srcdir)/cexp.c: $(srcdir)/cexp.y
|
||||
***************
|
||||
*** 572,578 ****
|
||||
$(CC) $(CFLAGS) $(INCLUDES) \
|
||||
-DGCC_INCLUDE_DIR=\"$(libdir)/gcc-include\" \
|
||||
-DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
|
||||
! -c `echo $(srcdir)/cccp.c | sed 's,^\./,,'`
|
||||
|
||||
$(srcdir)/cpp.info: $(srcdir)/cpp.texinfo
|
||||
makeinfo `echo $(srcdir)/cpp.texinfo | sed 's,^\./,,'`
|
||||
--- 583,589 ----
|
||||
$(CC) $(CFLAGS) $(INCLUDES) \
|
||||
-DGCC_INCLUDE_DIR=\"$(libdir)/gcc-include\" \
|
||||
-DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" \
|
||||
! -c $(srcdir)/cccp.c
|
||||
|
||||
$(srcdir)/cpp.info: $(srcdir)/cpp.texinfo
|
||||
makeinfo `echo $(srcdir)/cpp.texinfo | sed 's,^\./,,'`
|
||||
55
gnu/gcc/gccdiff-1.40/README
Normal file
55
gnu/gcc/gccdiff-1.40/README
Normal file
@@ -0,0 +1,55 @@
|
||||
Path: sserve!manuel!munnari.oz.au!uunet!mcsun!ukc!bru-cc!eesrajm
|
||||
From: eesrajm@brunel.ac.uk (Andrew J Michael)
|
||||
Newsgroups: comp.os.minix
|
||||
Subject: gcc-1.40 for 68k and 386
|
||||
Keywords: gcc 1.40
|
||||
Message-ID: <2302@mercury.brunel.ac.uk>
|
||||
Date: 28 Aug 91 08:12:33 GMT
|
||||
Organization: Brunel University, Uxbridge, UK
|
||||
Lines: 514
|
||||
|
||||
This would have gone out last week, but our news machine was down. My
|
||||
apologies ......
|
||||
|
||||
I had a look at gcc-1.40 over the weekend, and now have it running on both
|
||||
68k and 386. Enclosed below are the relevant patches.
|
||||
|
||||
Instructions for use:
|
||||
|
||||
(a). You must have an existing version of gcc on your system. If you
|
||||
havn't, get one from plains. I havn't attempted to bootstrap 1.40
|
||||
with anything other than gcc, so if you want to try it you are on your
|
||||
own. You'll need gas and gld from plains anyway.
|
||||
|
||||
(b). Get a virgin copy of gcc-1.40 from your favourite GNU archive site.
|
||||
|
||||
(c). Unpack the patches below - this is a uuencoded 13-bit compressed tar
|
||||
archive.
|
||||
|
||||
(d). Copy the xm* and tm* files into gcc-1.40/config, and the conf* files
|
||||
into gcc-1.40.
|
||||
|
||||
(e). Apply the patches - all the files ending in .cd are cdiffs.
|
||||
|
||||
(f). Don't run config.gcc, but use conf.minix68k or conf.minix386 as
|
||||
appropriate for your system.
|
||||
|
||||
(g). Hit "make" and wait. On a 33MHz 386 compilation will take about 30
|
||||
minutes. On an Atari ST expect several hours (!).
|
||||
|
||||
I strongly suggest using stage1 and stage2 as per the INSTALL instructions
|
||||
with the gcc sources. On the ST, gcc passed the (stage2 == stage3) test with
|
||||
no problems. On the 386 I needed an extra iteration for some non-obvious
|
||||
reason. The 386 version has successfully compiled mm and fs for a running
|
||||
kernel - I havn't had the chance to try the 68k version yet.
|
||||
|
||||
Enjoy.
|
||||
Andy Michael
|
||||
|
||||
--
|
||||
Andy Michael "You might think that. I
|
||||
85 Hawthorne Crescent couldn't possibly comment."
|
||||
West Drayton - `House of Cards'
|
||||
Middlesex email: eesrajm@brunel.ac.uk
|
||||
UB7 9PA or Andrew.Michael@brunel.ac.uk
|
||||
|
||||
56
gnu/gcc/gccdiff-1.40/c-typeck.c.cd
Normal file
56
gnu/gcc/gccdiff-1.40/c-typeck.c.cd
Normal file
@@ -0,0 +1,56 @@
|
||||
*** originals/c-typeck.c Sun Aug 18 16:59:15 1991
|
||||
--- c-typeck.c Sun Aug 18 17:01:14 1991
|
||||
***************
|
||||
*** 575,580 ****
|
||||
--- 575,614 ----
|
||||
{
|
||||
enum tree_code code = TREE_CODE (type);
|
||||
|
||||
+ #if (defined(NATIVE_MINIX) || defined(CROSS_MINIX))
|
||||
+ #ifdef m68k /* Only needed for MINIX-68k - ajm */
|
||||
+ extern tree cast_to_sizeof_type();
|
||||
+ tree t;
|
||||
+
|
||||
+ enum tree_code mincode = TREE_CODE (type);
|
||||
+
|
||||
+ if (mincode == FUNCTION_TYPE)
|
||||
+ {
|
||||
+ if (pedantic || warn_pointer_arith)
|
||||
+ warning ("sizeof applied to a function type");
|
||||
+ t = build_int (1);
|
||||
+ }
|
||||
+ else if (mincode == VOID_TYPE)
|
||||
+ {
|
||||
+ if (pedantic || warn_pointer_arith)
|
||||
+ warning ("sizeof applied to a void type");
|
||||
+ t = build_int (1);
|
||||
+ }
|
||||
+ else
|
||||
+ t=size_in_bytes(type);
|
||||
+ /*
|
||||
+ * Up to here, if you return t, nothing is changed.
|
||||
+ * The following code checks if the size is less than 32767.
|
||||
+ * In this case, t is cast to 'int' by cast_to_sizeof_type
|
||||
+ * We cannot expand cast_to_sizeof_type inline here because
|
||||
+ * it uses forcefit_type, which is local to fold-const.c
|
||||
+ */
|
||||
+ if (TREE_INT_CST_HIGH(t)==0 && TREE_INT_CST_LOW(t) <= 32767)
|
||||
+ t = cast_to_sizeof_type(t);
|
||||
+
|
||||
+ return convert_units (t, BITS_PER_UNIT,
|
||||
+ TYPE_PRECISION(char_type_node));
|
||||
+ #else /* what follows is the original code */
|
||||
if (code == FUNCTION_TYPE)
|
||||
{
|
||||
if (pedantic || warn_pointer_arith)
|
||||
***************
|
||||
*** 591,596 ****
|
||||
--- 625,632 ----
|
||||
/* Convert in case a char is more than one unit. */
|
||||
return convert_units (size_in_bytes (type), BITS_PER_UNIT,
|
||||
TYPE_PRECISION (char_type_node));
|
||||
+ #endif /* m68k */
|
||||
+ #endif /* NATIVE_MINIX || CROSS_MINIX */
|
||||
}
|
||||
|
||||
tree
|
||||
56
gnu/gcc/gccdiff-1.40/cccp.c.cd
Normal file
56
gnu/gcc/gccdiff-1.40/cccp.c.cd
Normal file
@@ -0,0 +1,56 @@
|
||||
*** originals/cccp.c Sat Aug 17 21:23:59 1991
|
||||
--- cccp.c Sat Aug 17 21:28:36 1991
|
||||
***************
|
||||
*** 57,64 ****
|
||||
#include <signal.h>
|
||||
|
||||
#ifndef VMS
|
||||
#include <sys/file.h>
|
||||
! #ifndef USG
|
||||
#include <sys/time.h> /* for __DATE__ and __TIME__ */
|
||||
#include <sys/resource.h>
|
||||
#else
|
||||
--- 57,66 ----
|
||||
#include <signal.h>
|
||||
|
||||
#ifndef VMS
|
||||
+ #ifndef NATIVE_MINIX
|
||||
#include <sys/file.h>
|
||||
! #endif /* NATIVE_MINIX */
|
||||
! #if (!(defined (USG) || defined (NATIVE_MINIX)))
|
||||
#include <sys/time.h> /* for __DATE__ and __TIME__ */
|
||||
#include <sys/resource.h>
|
||||
#else
|
||||
***************
|
||||
*** 66,72 ****
|
||||
#define rindex strrchr
|
||||
#include <time.h>
|
||||
#include <fcntl.h>
|
||||
! #endif /* USG */
|
||||
#endif /* not VMS */
|
||||
|
||||
/* VMS-specific definitions */
|
||||
--- 68,74 ----
|
||||
#define rindex strrchr
|
||||
#include <time.h>
|
||||
#include <fcntl.h>
|
||||
! #endif /* USG or NATIVE_MINIX */
|
||||
#endif /* not VMS */
|
||||
|
||||
/* VMS-specific definitions */
|
||||
***************
|
||||
*** 272,280 ****
|
||||
--- 274,286 ----
|
||||
struct file_name_list include_defaults[] =
|
||||
{
|
||||
#ifndef VMS
|
||||
+ #ifdef CROSS_MINIX /* Cross compiler - ajm */
|
||||
+ { 0, CROSSINC }
|
||||
+ #else
|
||||
{ &include_defaults[1], GCC_INCLUDE_DIR },
|
||||
{ &include_defaults[2], CC_INCLUDE_DIR },
|
||||
{ 0, "/usr/local/include" }
|
||||
+ #endif /* CROSS_MINIX */
|
||||
#else
|
||||
{ &include_defaults[1], "GNU_CC_INCLUDE:" }, /* GNU includes */
|
||||
{ &include_defaults[2], "SYS$SYSROOT:[SYSLIB.]" }, /* VAX-11 "C" includes */
|
||||
13
gnu/gcc/gccdiff-1.40/conf.minix386
Normal file
13
gnu/gcc/gccdiff-1.40/conf.minix386
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# Configuration script for GNU CC
|
||||
# The standard config.gcc is too big for MINIX unless
|
||||
# you do cute things so we just do it all directly
|
||||
|
||||
ln config/xm-minix386.h config.h
|
||||
ln config/tm-minix386.h tm.h
|
||||
ln config/i386.md md
|
||||
ln config/out-i386.c aux-output.c
|
||||
touch config.status
|
||||
|
||||
echo Set up for MINIX-386
|
||||
|
||||
13
gnu/gcc/gccdiff-1.40/conf.minix68k
Normal file
13
gnu/gcc/gccdiff-1.40/conf.minix68k
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# Configuration script for GNU CC
|
||||
# The standard config.gcc is too big for MINIX unless
|
||||
# you do cute things so we just do it all directly
|
||||
|
||||
ln config/xm-minix68k.h config.h
|
||||
ln config/tm-minix68k.h tm.h
|
||||
ln config/m68k.md md
|
||||
ln config/out-m68k.c aux-output.c
|
||||
touch config.status
|
||||
|
||||
echo Set up for MINIX-68k
|
||||
|
||||
19
gnu/gcc/gccdiff-1.40/dbxout.c.cd
Normal file
19
gnu/gcc/gccdiff-1.40/dbxout.c.cd
Normal file
@@ -0,0 +1,19 @@
|
||||
*** originals/dbxout.c Sat Aug 17 23:40:16 1991
|
||||
--- dbxout.c Sat Aug 17 23:41:02 1991
|
||||
***************
|
||||
*** 83,89 ****
|
||||
#define FORCE_TEXT
|
||||
#endif
|
||||
|
||||
! #ifdef USG
|
||||
#include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */
|
||||
#else
|
||||
#include <stab.h> /* On BSD, use the system's stab.h. */
|
||||
--- 83,89 ----
|
||||
#define FORCE_TEXT
|
||||
#endif
|
||||
|
||||
! #if (defined (USG) || defined (NATIVE_MINIX))
|
||||
#include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */
|
||||
#else
|
||||
#include <stab.h> /* On BSD, use the system's stab.h. */
|
||||
19
gnu/gcc/gccdiff-1.40/final.c.cd
Normal file
19
gnu/gcc/gccdiff-1.40/final.c.cd
Normal file
@@ -0,0 +1,19 @@
|
||||
*** originals/final.c Sat Aug 17 23:43:47 1991
|
||||
--- final.c Sat Aug 17 23:44:35 1991
|
||||
***************
|
||||
*** 57,63 ****
|
||||
|
||||
/* Get N_SLINE and N_SOL from stab.h if we can expect the file to exist. */
|
||||
#ifdef DBX_DEBUGGING_INFO
|
||||
! #ifdef USG
|
||||
#include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */
|
||||
#else
|
||||
#include <stab.h> /* On BSD, use the system's stab.h. */
|
||||
--- 57,63 ----
|
||||
|
||||
/* Get N_SLINE and N_SOL from stab.h if we can expect the file to exist. */
|
||||
#ifdef DBX_DEBUGGING_INFO
|
||||
! #if (defined (USG) || defined (NATIVE_MINIX))
|
||||
#include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */
|
||||
#else
|
||||
#include <stab.h> /* On BSD, use the system's stab.h. */
|
||||
26
gnu/gcc/gccdiff-1.40/fold-const.c.c
Normal file
26
gnu/gcc/gccdiff-1.40/fold-const.c.c
Normal file
@@ -0,0 +1,26 @@
|
||||
*** originals/fold-const.c Sat Aug 17 21:29:11 1991
|
||||
--- fold-const.c Sat Aug 17 21:29:53 1991
|
||||
***************
|
||||
*** 138,143 ****
|
||||
--- 138,158 ----
|
||||
}
|
||||
}
|
||||
}
|
||||
+ #if (defined(CROSS_MINIX) || defined(NATIVE_MINIX))
|
||||
+ #ifdef m68k /* Only needed for MINIX-68k - ajm */
|
||||
+ tree
|
||||
+ cast_to_sizeof_type(t)
|
||||
+ tree t;
|
||||
+ {
|
||||
+ extern int flag_traditional;
|
||||
+
|
||||
+ t = copy_node(t);
|
||||
+ TREE_TYPE(t) = flag_traditional ? integer_type_node : unsigned_type_node;
|
||||
+ force_fit_type(t);
|
||||
+ return t;
|
||||
+ }
|
||||
+ #endif /* m68k */
|
||||
+ #endif /* CROSS_MINIX || NATIVE_MINIX */
|
||||
|
||||
/* Add two 64-bit integers with 64-bit result.
|
||||
Each argument is given as two `int' pieces.
|
||||
106
gnu/gcc/gccdiff-1.40/gcc.c.cd
Normal file
106
gnu/gcc/gccdiff-1.40/gcc.c.cd
Normal file
@@ -0,0 +1,106 @@
|
||||
*** originals/gcc.c Sat Aug 17 21:30:05 1991
|
||||
--- gcc.c Sat Aug 17 21:34:57 1991
|
||||
***************
|
||||
*** 125,131 ****
|
||||
--- 125,135 ----
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <signal.h>
|
||||
+ #ifdef NATIVE_MINIX
|
||||
+ #include <unistd.h>
|
||||
+ #else
|
||||
#include <sys/file.h>
|
||||
+ #endif
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "config.h"
|
||||
***************
|
||||
*** 142,147 ****
|
||||
--- 146,155 ----
|
||||
#define vfork fork
|
||||
#endif /* USG */
|
||||
|
||||
+ #ifdef NATIVE_MINIX
|
||||
+ #define vfork fork
|
||||
+ #endif
|
||||
+
|
||||
#define obstack_chunk_alloc xmalloc
|
||||
#define obstack_chunk_free free
|
||||
extern int xmalloc ();
|
||||
***************
|
||||
*** 252,258 ****
|
||||
{".c",
|
||||
"cpp %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{i*} %{trigraphs} -undef \
|
||||
-D__GNUC__ %{ansi:-trigraphs -$ -D__STRICT_ANSI__} %{!ansi:%p} %P\
|
||||
! %c %{O:-D__OPTIMIZE__} %{traditional} %{pedantic} %{P}\
|
||||
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %C\
|
||||
%i %{!M*:%{!E:%{!pipe:%g.cpp}}}%{E:%W{o*}}%{M*:%W{o*}} |\n\
|
||||
%{!M*:%{!E:cc1 %{!pipe:%g.cpp} %1 \
|
||||
--- 260,267 ----
|
||||
{".c",
|
||||
"cpp %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{i*} %{trigraphs} -undef \
|
||||
-D__GNUC__ %{ansi:-trigraphs -$ -D__STRICT_ANSI__} %{!ansi:%p} %P\
|
||||
! %c %{O:-D__OPTIMIZE__} %{mshort:-D__MSHORT__} %{traditional} \
|
||||
! %{pedantic} %{P}\
|
||||
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %C\
|
||||
%i %{!M*:%{!E:%{!pipe:%g.cpp}}}%{E:%W{o*}}%{M*:%W{o*}} |\n\
|
||||
%{!M*:%{!E:cc1 %{!pipe:%g.cpp} %1 \
|
||||
***************
|
||||
*** 267,273 ****
|
||||
{".cc",
|
||||
"cpp -+ %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{i*} \
|
||||
-undef -D__GNUC__ -D__GNUG__ %p %P\
|
||||
! %c %{O:-D__OPTIMIZE__} %{traditional} %{pedantic} %{P}\
|
||||
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %C\
|
||||
%i %{!M*:%{!E:%{!pipe:%g.cpp}}}%{E:%W{o*}}%{M*:%W{o*}} |\n\
|
||||
%{!M*:%{!E:cc1plus %{!pipe:%g.cpp} %1\
|
||||
--- 276,283 ----
|
||||
{".cc",
|
||||
"cpp -+ %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{i*} \
|
||||
-undef -D__GNUC__ -D__GNUG__ %p %P\
|
||||
! %c %{O:-D__OPTIMIZE__} %{mshort:-D__MSHORT__} %{traditional}\
|
||||
! %{pedantic} %{P}\
|
||||
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %C\
|
||||
%i %{!M*:%{!E:%{!pipe:%g.cpp}}}%{E:%W{o*}}%{M*:%W{o*}} |\n\
|
||||
%{!M*:%{!E:cc1plus %{!pipe:%g.cpp} %1\
|
||||
***************
|
||||
*** 292,298 ****
|
||||
{".S",
|
||||
"cpp %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{trigraphs} \
|
||||
-undef -D__GNUC__ -$ %p %P\
|
||||
! %c %{O:-D__OPTIMIZE__} %{traditional} %{pedantic} %{P}\
|
||||
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %C\
|
||||
%i %{!M*:%{!E:%{!pipe:%g.s}}}%{E:%W{o*}}%{M*:%W{o*}} |\n\
|
||||
%{!M*:%{!E:%{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
|
||||
--- 302,309 ----
|
||||
{".S",
|
||||
"cpp %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{trigraphs} \
|
||||
-undef -D__GNUC__ -$ %p %P\
|
||||
! %c %{O:-D__OPTIMIZE__} %{mshort:-D__MSHORT__} %{traditional} \
|
||||
! %{pedantic} %{P}\
|
||||
%{Wcomment*} %{Wtrigraphs} %{Wall} %{w} %C\
|
||||
%i %{!M*:%{!E:%{!pipe:%g.s}}}%{E:%W{o*}}%{M*:%W{o*}} |\n\
|
||||
%{!M*:%{!E:%{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
|
||||
***************
|
||||
*** 303,312 ****
|
||||
--- 314,333 ----
|
||||
};
|
||||
|
||||
/* Here is the spec for running the linker, after compiling all files. */
|
||||
+ /* Note that MINIX doesn't use gnulib, which is already in the gcc libc.a */
|
||||
+
|
||||
+ #if (defined(CROSS_MINIX) || defined(NATIVE_MINIX))
|
||||
char *link_spec = "%{!c:%{!M*:%{!E:%{!S:ld %{o*} %l\
|
||||
%{A} %{d} %{e*} %{N} %{n} %{r} %{s} %{S} %{T*} %{t} %{u*} %{X} %{x} %{z}\
|
||||
+ %{y*} %{!nostdlib:%S} \
|
||||
+ %{L*} %o %{!nostdlib:%s %L}\n }}}}";
|
||||
+ #else
|
||||
+
|
||||
+ char *link_spec = "%{!c:%{!M*:%{!E:%{!S:ld %{o*} %l\
|
||||
+ %{A} %{d} %{e*} %{N} %{n} %{r} %{s} %{S} %{T*} %{t} %{u*} %{X} %{x} %{z}\
|
||||
%{y*} %{!A:%{!nostdlib:%S}} \
|
||||
%{L*} %o %{!nostdlib:%G gnulib%s %L gnulib%s %{!A:%E}}\n }}}}";
|
||||
+ #endif
|
||||
|
||||
/* Accumulate a command (program name and args), and run it. */
|
||||
|
||||
36
gnu/gcc/gccdiff-1.40/symout.c.cd
Normal file
36
gnu/gcc/gccdiff-1.40/symout.c.cd
Normal file
@@ -0,0 +1,36 @@
|
||||
*** originals/symout.c Sun Aug 18 17:27:01 1991
|
||||
--- symout.c Sun Aug 18 17:27:55 1991
|
||||
***************
|
||||
*** 31,37 ****
|
||||
|
||||
/* Get N_SO from stab.h if we can expect the file to exist. */
|
||||
#ifdef DBX_DEBUGGING_INFO
|
||||
! #ifdef USG
|
||||
#include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */
|
||||
#else
|
||||
#include <stab.h> /* On BSD, use the system's stab.h. */
|
||||
--- 31,37 ----
|
||||
|
||||
/* Get N_SO from stab.h if we can expect the file to exist. */
|
||||
#ifdef DBX_DEBUGGING_INFO
|
||||
! #if (defined (USG) || defined (NATIVE_MINIX))
|
||||
#include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */
|
||||
#else
|
||||
#include <stab.h> /* On BSD, use the system's stab.h. */
|
||||
***************
|
||||
*** 1241,1247 ****
|
||||
symout_strings (filename, 0, 0, 0);
|
||||
|
||||
buffer.filedir = (char *) next_address;
|
||||
! #ifdef USG
|
||||
strcpy (dir, getcwd (dir, MAXNAMLEN));
|
||||
#else
|
||||
#ifndef VMS
|
||||
--- 1241,1247 ----
|
||||
symout_strings (filename, 0, 0, 0);
|
||||
|
||||
buffer.filedir = (char *) next_address;
|
||||
! #if (defined (USG) || defined (NATIVE_MINIX))
|
||||
strcpy (dir, getcwd (dir, MAXNAMLEN));
|
||||
#else
|
||||
#ifndef VMS
|
||||
142
gnu/gcc/gccdiff-1.40/tm-minix386.h
Normal file
142
gnu/gcc/gccdiff-1.40/tm-minix386.h
Normal file
@@ -0,0 +1,142 @@
|
||||
/* Definitions for Intel 386 running system V with gnu tools
|
||||
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 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, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
/* This is very like tm-i386gas.h, but the default is soft-float, and
|
||||
.comm and .lcomm are rounded (which seems to be relied on by the
|
||||
Gnu Emacs garbage collector). */
|
||||
|
||||
|
||||
#include "tm-i386.h"
|
||||
/* Use the bsd assembler syntax. */
|
||||
/* we need to do this because gas is really a bsd style assembler,
|
||||
* and so doesn't work well this these att-isms:
|
||||
*
|
||||
* ASM_OUTPUT_SKIP is .set .,.+N, which isn't implemented in gas
|
||||
* ASM_OUTPUT_LOCAL is done with .set .,.+N, but that can't be
|
||||
* used to define bss static space
|
||||
*
|
||||
* Next is the question of whether to uses underscores. RMS didn't
|
||||
* like this idea at first, but since it is now obvious that we
|
||||
* need this separate tm file for use with gas, at least to get
|
||||
* dbx debugging info, I think we should also switch to underscores.
|
||||
* We can keep tm-i386v for real att style output, and the few
|
||||
* people who want both form will have to compile twice.
|
||||
*/
|
||||
|
||||
#include "tm-bsd386.h"
|
||||
|
||||
/* these come from tm-bsd386.h, but are specific to sequent */
|
||||
#undef DBX_NO_XREFS
|
||||
#undef DBX_CONTIN_LENGTH
|
||||
|
||||
/* By default, target has no 80387. */
|
||||
|
||||
#define TARGET_DEFAULT 0
|
||||
|
||||
/* Specify predefined symbols in preprocessor. */
|
||||
|
||||
#define CPP_PREDEFINES "-Di386"
|
||||
|
||||
/* Allow #sccs in preprocessor. */
|
||||
|
||||
#define SCCS_DIRECTIVE
|
||||
|
||||
/* Output #ident as a .ident. */
|
||||
|
||||
#define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
|
||||
|
||||
/* We do not want to output SDB debugging information. */
|
||||
|
||||
#undef SDB_DEBUGGING_INFO
|
||||
|
||||
/* We want to output DBX debugging information. */
|
||||
|
||||
#define DBX_DEBUGGING_INFO
|
||||
|
||||
/* Implicit library calls should use memcpy, not bcopy, etc. */
|
||||
|
||||
#define TARGET_MEM_FUNCTIONS
|
||||
|
||||
/* When using gas, .align N aligns to an N-byte boundary. */
|
||||
|
||||
#undef ASM_OUTPUT_ALIGN
|
||||
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
|
||||
if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
|
||||
|
||||
/* Align labels, etc. at 4-byte boundaries. */
|
||||
|
||||
#define ASM_OUTPUT_ALIGN_CODE(FILE) \
|
||||
fprintf ((FILE), "\t.align 4\n");
|
||||
|
||||
/* Machines that use the AT&T assembler syntax
|
||||
also return floating point values in an FP register. */
|
||||
/* Define how to find the value returned by a function.
|
||||
VALTYPE is the data type of the value (as a tree).
|
||||
If the precise function being called is known, FUNC is its FUNCTION_DECL;
|
||||
otherwise, FUNC is 0. */
|
||||
|
||||
#define VALUE_REGNO(MODE) \
|
||||
(((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0)
|
||||
|
||||
/* 1 if N is a possible register number for a function value. */
|
||||
|
||||
#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
|
||||
|
||||
#undef ASM_FILE_START
|
||||
#define ASM_FILE_START(FILE) \
|
||||
fprintf (FILE, "\t.file\t\"%s\"\n", dump_base_name);
|
||||
|
||||
/* These override the definitions in tm-bsd386.h */
|
||||
|
||||
/* This says how to output an assembler line
|
||||
to define a global common symbol. */
|
||||
|
||||
#undef ASM_OUTPUT_COMMON
|
||||
#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \
|
||||
( fputs (".comm ", (FILE)), \
|
||||
assemble_name ((FILE), (NAME)), \
|
||||
fprintf ((FILE), ",%d\n", (ROUNDED)))
|
||||
|
||||
/* This says how to output an assembler line
|
||||
to define a local common symbol. */
|
||||
|
||||
#undef ASM_OUTPUT_LOCAL
|
||||
#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
|
||||
( fputs (".lcomm ", (FILE)), \
|
||||
assemble_name ((FILE), (NAME)), \
|
||||
fprintf ((FILE), ",%d\n", (ROUNDED)))
|
||||
|
||||
|
||||
/* Specs for start file and linker since gcc and ack libraries don't mix */
|
||||
/* These are identical to the MINIX-68k version - ajm */
|
||||
|
||||
#define STARTFILE_SPEC \
|
||||
"%{pg:/usr/gnu/lib/gcrt0.o%s}\
|
||||
%{!pg:\
|
||||
%{p:/usr/gnu/lib/mcrtso.o%s}\
|
||||
%{!p:/usr/gnu/lib/crtso.o%s}}"
|
||||
|
||||
#define LIB_SPEC \
|
||||
"%{!p:\
|
||||
%{!pg:/usr/gnu/lib/libc.a}}\
|
||||
%{p:-lgnu-p.olb}\
|
||||
%{pg:gnu-p.olb}"
|
||||
|
||||
|
||||
|
||||
119
gnu/gcc/gccdiff-1.40/tm-minix68k.h
Normal file
119
gnu/gcc/gccdiff-1.40/tm-minix68k.h
Normal file
@@ -0,0 +1,119 @@
|
||||
/* target def file for MINIX-68k for use with GNU CC */
|
||||
|
||||
/* The following Macros control the compilation
|
||||
*
|
||||
* CROSS_MINIX defined when making cross compiler for MINIX
|
||||
* NATIVE_MINIX defined when making compiler for MINIX
|
||||
*/
|
||||
|
||||
#include "tm-m68k.h"
|
||||
|
||||
#ifndef CROSS_MINIX
|
||||
#undef alloca
|
||||
#endif
|
||||
|
||||
/* See tm-m68k.h. 0 means 68000 with no 68881. */
|
||||
|
||||
#define TARGET_DEFAULT 0
|
||||
|
||||
/* -m68020 requires special flags to the assembler. */
|
||||
|
||||
/* -m68000 (on atari) needs this flag to assembler, otherwise pc relative
|
||||
code is produced where it should not be (in places where the
|
||||
68000 only allows data ALTERABLE addressing modes) (++jrb 03/19/89) */
|
||||
#define ASM_SPEC "%{m68020:-mc68020}%{!m68020:-m68000}"
|
||||
|
||||
/* Names to predefine in the preprocessor for this target machine. */
|
||||
|
||||
#define CPP_PREDEFINES "-Dm68k"
|
||||
|
||||
/* default exec dir */
|
||||
#ifndef STANDARD_EXEC_PREFIX
|
||||
#ifdef CROSS_MINIX /* Cross-compiler */
|
||||
#define STANDARD_EXEC_PREFIX "/usr/local/cross-minix/lib/gcc-"
|
||||
#else /* Native compiler */
|
||||
#define STANDARD_EXEC_PREFIX "/usr/gnu/lib/gcc-"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Alignment of field after `int : 0' in a structure. */
|
||||
/* recent gcc's have this as 16, this is left in for the benfit of */
|
||||
/* older gcc */
|
||||
#undef EMPTY_FIELD_BOUNDARY
|
||||
#define EMPTY_FIELD_BOUNDARY 16
|
||||
|
||||
/* Every structure or union's size must be a multiple of 2 bytes. */
|
||||
|
||||
#undef STRUCTURE_SIZE_BOUNDARY
|
||||
#define STRUCTURE_SIZE_BOUNDARY 16
|
||||
|
||||
/* code seems to assume this... */
|
||||
#define DBX_DEBUGGING_INFO
|
||||
|
||||
#ifndef HAVE_VPRINTF
|
||||
#define HAVE_VPRINTF 1
|
||||
#endif
|
||||
|
||||
#ifdef abort
|
||||
#undef abort
|
||||
#define abort fancy_abort
|
||||
#endif
|
||||
|
||||
|
||||
/* the following stolen from tm-sun3.h, they seem to work better */
|
||||
/* This is how to output an assembler line defining a `double' constant. */
|
||||
|
||||
#undef ASM_OUTPUT_DOUBLE
|
||||
#define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
|
||||
fprintf (FILE, "\t.double 0r%.20e\n", (VALUE))
|
||||
|
||||
/* This is how to output an assembler line defining a `float' constant. */
|
||||
|
||||
#undef ASM_OUTPUT_FLOAT
|
||||
#define ASM_OUTPUT_FLOAT(FILE,VALUE) \
|
||||
fprintf (FILE, "\t.single 0r%.20e\n", (VALUE))
|
||||
|
||||
#undef ASM_OUTPUT_FLOAT_OPERAND
|
||||
#define ASM_OUTPUT_FLOAT_OPERAND(FILE,VALUE) \
|
||||
fprintf (FILE, "#0r%.9g", (VALUE))
|
||||
|
||||
#undef ASM_OUTPUT_DOUBLE_OPERAND
|
||||
#define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE) \
|
||||
fprintf (FILE, "#0r%.20g", (VALUE))
|
||||
|
||||
/* Specs for start file and link specs */
|
||||
|
||||
#ifdef CROSS_MINIX /* Cross compiler */
|
||||
#define STARTFILE_SPEC \
|
||||
"%{pg:/usr/local/cross-minix/lib/gcrt0.o%s}\
|
||||
%{!pg:\
|
||||
%{p:/usr/local/cross-minix/lib/mcrtso.o%s}\
|
||||
%{!p:%{mshort:/usr/local/cross-minix/lib/crtso.o%s}\
|
||||
%{!mshort:/usr/local/cross-minix/lib/crtso32.o%s}}}"
|
||||
#else /* Native compiler */
|
||||
#define STARTFILE_SPEC \
|
||||
"%{pg:/usr/gnu/lib/gcrt0.o%s}\
|
||||
%{!pg:\
|
||||
%{p:/usr/gnu/lib/mcrtso.o%s}\
|
||||
%{!p:%{mshort:/usr/gnu/lib/crtso.o%s}\
|
||||
%{!mshort:/usr/gnu/lib/crtso32.o%s}}}"
|
||||
#endif
|
||||
|
||||
#ifdef CROSS_MINIX /* Cross compiler */
|
||||
#define LIB_SPEC \
|
||||
"%{!p:\
|
||||
%{!pg:\
|
||||
%{mshort:/usr/local/cross-minix/lib/libc.a}\
|
||||
%{!mshort:/usr/local/cross-minix/lib/libc32.a}}}\
|
||||
%{p:-lgnu-p.olb}\
|
||||
%{pg:gnu-p.olb}"
|
||||
#else
|
||||
#define LIB_SPEC \
|
||||
"%{!p:\
|
||||
%{!pg:\
|
||||
%{mshort:/usr/gnu/lib/libc.a}\
|
||||
%{!mshort:/usr/gnu/lib/libc32.a}}}\
|
||||
%{p:-lgnu-p.olb}\
|
||||
%{pg:gnu-p.olb}"
|
||||
#endif
|
||||
|
||||
74
gnu/gcc/gccdiff-1.40/toplev.c.cd
Normal file
74
gnu/gcc/gccdiff-1.40/toplev.c.cd
Normal file
@@ -0,0 +1,74 @@
|
||||
*** originals/toplev.c Sat Aug 17 21:35:23 1991
|
||||
--- toplev.c Sat Aug 17 21:36:07 1991
|
||||
***************
|
||||
*** 41,50 ****
|
||||
--- 41,55 ----
|
||||
#undef FFS /* Some systems define this in param.h. */
|
||||
#else
|
||||
#ifndef VMS
|
||||
+ #ifdef NATIVE_MINIX
|
||||
+ #include <sys/times.h>
|
||||
+ #define HZ 60
|
||||
+ #else
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
#endif
|
||||
+ #endif
|
||||
|
||||
#include "input.h"
|
||||
#include "tree.h"
|
||||
***************
|
||||
*** 376,382 ****
|
||||
int
|
||||
gettime ()
|
||||
{
|
||||
! #ifdef USG
|
||||
struct tms tms;
|
||||
#else
|
||||
#ifndef VMS
|
||||
--- 381,387 ----
|
||||
int
|
||||
gettime ()
|
||||
{
|
||||
! #if (defined (USG) || defined (NATIVE_MINIX))
|
||||
struct tms tms;
|
||||
#else
|
||||
#ifndef VMS
|
||||
***************
|
||||
*** 395,401 ****
|
||||
if (quiet_flag)
|
||||
return 0;
|
||||
|
||||
! #ifdef USG
|
||||
times (&tms);
|
||||
return (tms.tms_utime + tms.tms_stime) * (1000000 / HZ);
|
||||
#else
|
||||
--- 400,406 ----
|
||||
if (quiet_flag)
|
||||
return 0;
|
||||
|
||||
! #if (defined (USG) || defined (NATIVE_MINIX))
|
||||
times (&tms);
|
||||
return (tms.tms_utime + tms.tms_stime) * (1000000 / HZ);
|
||||
#else
|
||||
***************
|
||||
*** 2001,2006 ****
|
||||
--- 2006,2012 ----
|
||||
|
||||
#ifndef USG
|
||||
#ifndef VMS
|
||||
+ #ifndef NATIVE_MINIX
|
||||
if (print_mem_flag)
|
||||
{
|
||||
extern char **environ;
|
||||
***************
|
||||
*** 2012,2017 ****
|
||||
--- 2018,2024 ----
|
||||
|
||||
system ("ps v");
|
||||
}
|
||||
+ #endif /* not NATIVE_MINIX */
|
||||
#endif /* not VMS */
|
||||
#endif /* not USG */
|
||||
|
||||
46
gnu/gcc/gccdiff-1.40/xm-minix386.h
Normal file
46
gnu/gcc/gccdiff-1.40/xm-minix386.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/* Configuration for GNU C-compiler for Intel 80386 running MINIX-386
|
||||
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 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, 675 Mass Ave, Cambridge, MA 02139, 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
|
||||
|
||||
/* Arguments to use with `exit'. */
|
||||
#define SUCCESS_EXIT_CODE 0
|
||||
#define FATAL_EXIT_CODE 33
|
||||
|
||||
|
||||
/* target machine dependencies.
|
||||
tm.h is a symbolic link to the actual target specific file. */
|
||||
#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)
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define alloca(n) __builtin_alloca(n)
|
||||
#endif
|
||||
29
gnu/gcc/gccdiff-1.40/xm-minix68k.h
Normal file
29
gnu/gcc/gccdiff-1.40/xm-minix68k.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/* The following Macros control the compilation
|
||||
*
|
||||
* CROSS_MINIX defined when making cross compiler for MINIX
|
||||
* NATIVE_MINIX defined when making compiler for MINIX
|
||||
*/
|
||||
|
||||
/* we use an extra file, as we don't do links */
|
||||
|
||||
/* generic m68k config file */
|
||||
|
||||
#include "xm-m68k.h"
|
||||
|
||||
/* exc that we don't want the funny alloca... */
|
||||
|
||||
#ifndef CROSS_MINIX
|
||||
#undef alloca
|
||||
#endif
|
||||
|
||||
/* #include "stddef.h" */
|
||||
|
||||
|
||||
/* for new-version (format 2) symsegs, as defined by the symseg.h
|
||||
taken from gdb */
|
||||
typedef long CORE_ADDR;
|
||||
|
||||
/* Oops. Looks like this won't work anyhow; new GDB read syms
|
||||
incrementally, so we can't use it. Use GDB 2.6; old symseg fmt...
|
||||
#define FORMAT_2_SYMSEG
|
||||
...*/
|
||||
Reference in New Issue
Block a user