[gnu.gcc.bug] Patches for GCC 1.37.1 on UNIX ISC2.2

src@eliabel.sf.ca.us (08/18/90)

Here are the diff for GNU GCC 1.37.1 for ISC 2.2 with GAS and COFF,
and the native loader.

Eric P. Meyer
emeyer@eliabel.sf.ca.us
415-349 1021

diff -p gcc-1.37.1/Makefile ../gcc-1.37.1/Makefile
*** gcc-1.37.1/Makefile	Wed Jan 10 14:09:57 1990
--- ../gcc-1.37.1/Makefile	Wed Aug  1 13:35:08 1990
*************** BISONFLAGS = -v
*** 28,34 ****
  AR = ar
  SHELL = /bin/sh
  # on sysV, define this as cp.
! INSTALL = install -c
  
  # Compiler to use for compiling gnulib.
  # OLDCC should not be the GNU C compiler.
--- 28,35 ----
  AR = ar
  SHELL = /bin/sh
  # on sysV, define this as cp.
! #INSTALL = install -c
! INSTALL = cp
  
  # Compiler to use for compiling gnulib.
  # OLDCC should not be the GNU C compiler.
*************** DIR = ../gcc
*** 95,101 ****
  # But don't do that if compiling using GCC.
  
  # If your system has alloca() in /lib/libPW.a, un-comment the following line:
! # CLIB= -lPW
  
  # On a pyramid, you need to uncomment the following line:
  # CLIB = -lc /usr/.attlib/libPW.a
--- 96,102 ----
  # But don't do that if compiling using GCC.
  
  # If your system has alloca() in /lib/libPW.a, un-comment the following line:
! CLIB= -lPW
  
  # On a pyramid, you need to uncomment the following line:
  # CLIB = -lc /usr/.attlib/libPW.a
diff -p gcc-1.37.1/gcc.c ../gcc-1.37.1/gcc.c
*** gcc-1.37.1/gcc.c	Sat Jan  6 13:24:32 1990
--- ../gcc-1.37.1/gcc.c	Wed Aug  1 15:41:19 1990
*************** struct compiler compilers[] =
*** 242,248 ****
  		   %{v:-version} %{gg:-symout %g.sym} %{pg:-p} %{p}\
  		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  		   %{S:%{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
!               %{!S:as %{R} %{j} %{J} %{h} %{d2} %a %{gg:-G %g.sym}\
  		      %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
                        %{!pipe:%g.s}\n }}}"},
    {".cc",
--- 242,248 ----
  		   %{v:-version} %{gg:-symout %g.sym} %{pg:-p} %{p}\
  		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  		   %{S:%{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
!               %{!S:gas -C %{R} %{j} %{J} %{h} %{d2} %a %{gg:-G %g.sym}\
  		      %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
                        %{!pipe:%g.s}\n }}}"},
    {".cc",
*************** struct compiler compilers[] =
*** 257,263 ****
  		   %{v:-version} %{gg:-symout %g.sym} %{pg:-p} %{p}\
  		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  		   %{S:%{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
!               %{!S:as %{R} %{j} %{J} %{h} %{d2} %a %{gg:-G %g.sym}\
  		      %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
                        %{!pipe:%g.s}\n }}}"},
    {".i",
--- 257,263 ----
  		   %{v:-version} %{gg:-symout %g.sym} %{pg:-p} %{p}\
  		   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
  		   %{S:%{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
!               %{!S:gas -C %{R} %{j} %{J} %{h} %{d2} %a %{gg:-G %g.sym}\
  		      %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
                        %{!pipe:%g.s}\n }}}"},
    {".i",
*************** struct compiler compilers[] =
*** 265,274 ****
  	%{g} %{O} %{W*} %{w} %{pedantic} %{ansi} %{traditional}\
  	%{v:-version} %{gg:-symout %g.sym} %{pg:-p} %{p}\
  	%{S:%{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
!     %{!S:as %{R} %{j} %{J} %{h} %{d2} %a %{gg:-G %g.sym}\
              %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o} %{!pipe:%g.s}\n }"},
    {".s",
!    "%{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
              %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o} %i\n }"},
    {".S",
     "cpp %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{trigraphs} \
--- 265,274 ----
  	%{g} %{O} %{W*} %{w} %{pedantic} %{ansi} %{traditional}\
  	%{v:-version} %{gg:-symout %g.sym} %{pg:-p} %{p}\
  	%{S:%{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
!     %{!S:gas -C %{R} %{j} %{J} %{h} %{d2} %a %{gg:-G %g.sym}\
              %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o} %{!pipe:%g.s}\n }"},
    {".s",
!    "%{!S:gas -C %{R} %{j} %{J} %{h} %{d2} %a \
              %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o} %i\n }"},
    {".S",
     "cpp %{nostdinc} %{C} %{v} %{D*} %{U*} %{I*} %{M*} %{trigraphs} \
*************** struct compiler compilers[] =
*** 276,282 ****
          %c %{O:-D__OPTIMIZE__} %{traditional} %{pedantic}\
  	%{Wcomment*} %{Wtrigraphs} %{Wall} %C\
          %i %{!M*:%{!E:%{!pipe:%g.s}}}%{E:%{o*}}%{M*:%{o*}} |\n\
!     %{!M*:%{!E:%{!S:as %{R} %{j} %{J} %{h} %{d2} %a \
                      %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
  		    %{!pipe:%g.s}\n }}}"},
    /* Mark end of table */
--- 276,282 ----
          %c %{O:-D__OPTIMIZE__} %{traditional} %{pedantic}\
  	%{Wcomment*} %{Wtrigraphs} %{Wall} %C\
          %i %{!M*:%{!E:%{!pipe:%g.s}}}%{E:%{o*}}%{M*:%{o*}} |\n\
!     %{!M*:%{!E:%{!S:gas -C %{R} %{j} %{J} %{h} %{d2} %a \
                      %{c:%{o*}%{!o*:-o %w%b.o}}%{!c:-o %d%w%b.o}\
  		    %{!pipe:%g.s}\n }}}"},
    /* Mark end of table */
diff -p gcc-1.37.1/gnulib2.c ../gcc-1.37.1/gnulib2.c
*** gcc-1.37.1/gnulib2.c	Mon Nov  6 12:33:54 1989
--- ../gcc-1.37.1/gnulib2.c	Wed Aug  1 15:01:41 1990
***************
*** 2,7 ****
--- 2,10 ----
  /* Compile this one with gcc.  */
  
  #include "config.h"
+ #ifdef i386
+ #include <sys/types.h>
+ #endif
  #include <stddef.h>
  
  #ifndef SItype
diff -p gcc-1.37.1/stddef.h ../gcc-1.37.1/stddef.h
*** gcc-1.37.1/stddef.h	Wed Sep 20 22:00:22 1989
--- ../gcc-1.37.1/stddef.h	Wed Aug  1 14:06:30 1990
*************** typedef long ptrdiff_t;
*** 9,15 ****
--- 9,17 ----
  
  #ifndef _SIZE_T	/* in case <sys/types.h> has defined it. */
  #define _SIZE_T
+ #ifndef i386
  typedef unsigned long size_t;
+ #endif
  #endif /* _SIZE_T */
  
  /* A null pointer constant.  */