bks@UUNET.UU.NET (Bennett Smith) (08/18/89)
I am having problems getting a satisfactory version of gcc up.
I would appreciate any suggestions you might have.
Thanks for your time.
Sincerly yours,
Bennett Smith, bks@ircam.uucp
SUMMARY:
I was trying to put up gcc 1.35 on the next system 0.9
as a prelude to putting up g++.
During compilation, I get messages like
cc -c -g -I./config tree.c
varargs.h:24: warning: va_start redefined
cc -c -g -I./config rtl.c
In function read_name:
rtl.c:1079: warning: assignment of integer from pointer lacks a cast
The comparison between stage 1 and stage 2 worked ok, so I installed
the compiler. (See PART 2 for transcript.) However, there were problems
compiling old programs. A minimal example: gcc -c the following program
#include <stdio.h>
#include <sys/types.h>
foo() { return 55; }
gives the errors
/usr/include/sys/types.h:124: redefinition of `size_t'
/usr/local/lib/gcc/gcc-include/stddef.h:10: here is the previous declaration of `size_t'
Both of these problems suggest incompatibilities in the include files.
WHAT I DID:
I did a cp -rp of the gcc directory on a sun. Other than the Makefile,
the sun files were dated 26 April 89 at the latest, so I conclude that
they are unchanged from the distribution. ( Later, I recreated files
c-parse.tab.c and cexp.c on the next using GNU Bison version 1.01,
and the only differences were a different version of the copyleft,
and the line #define YYERRCODE 256.)
Having run into the " redefinition of `size_t'" problem described
above in the summary, I did a "make realclean" and started over.
The stage 1 recompile aborted with the same complaint over the
redefinition of size_t, maybe because now the directory
/usr/local/lib/gcc/gcc-include was installed, and full of include
files which seem to clash with the standard NeXT /usr/includes.
I suspect that there is some simple solution to this, like
redefining STANDARD_STARTFILE_PREFIX, but I'd like to ask before
starting to thrash around, and getting hopelessly confused.
Other details:
The sun was a sun3 running Sun UNIX 4.2 Release 3.5
Next system release 0.9: NeXT Mach/4.3 0.9, dated May 1 89.
Next Bison version 1.01
Next cc version 9i0.83 (GNU version 1.26)
Here follows:
==============PART 1=============
a directory listing, and a listing of Makefile
==============PART 2=============
a transcript of the gcc build session, including stage 1 and
stage 2 verificaton.
==============PART 3=============
a transcript of the second gcc make session, terminating in one
of those "redefinition of `size_t'" messages.
==============PART 1=============
total 2722
-rw-rw-rw- 1 bks 19089 Apr 24 08:01 ,Makefile
drwxrwxrwx 6 bks 4096 Aug 16 19:21 ./
drwxr-xr-x 7 bks 1024 Aug 16 18:25 ../
-rw-rw-rw- 1 bks 913 Nov 30 1988 .gdbinit
-rw-rw-rw- 1 bks 3537 Aug 16 14:35 .places
-rw-rw-rw- 1 bks 16693 Apr 24 08:48 INSTALL
-rw-r--r-- 1 bks 19093 Jun 20 12:42 Makefile
-rw-rw-rw- 1 bks 382 Apr 26 20:40 README
drwxrwxr-x 2 bks 1024 Jun 20 12:41 SCCS/
-rw-rw-rw- 1 bks 5214 Oct 17 1986 alloca.c
-rw-rw-rw- 1 bks 708 Oct 8 1988 assert.h
-rw-rw-rw- 1 bks 2058 Feb 22 17:50 basic-block.h
-rw-rw-rw- 1 bks 11820 Apr 11 19:43 c-convert.c
-rw-rw-rw- 1 bks 115979 Apr 26 08:44 c-decl.c
-rw-rw-rw- 1 bks 1129 Mar 30 06:47 c-parse.gperf
-rw-rw-rw- 1 bks 1130 Feb 22 17:50 c-parse.h
-rw-rw-rw- 1 bks 67945 Apr 10 12:20 c-parse.y
-rw-rw-rw- 1 bks 4236 Mar 30 01:58 c-tree.h
-rw-rw-rw- 1 bks 109739 Apr 24 21:30 c-typeck.c
-rw-rw-rw- 1 bks 10403 Feb 22 17:50 caller-save.c
-rw-rw-rw- 1 bks 139837 Apr 22 05:52 cccp.c
-rw-rw-rw- 1 bks 10733 Feb 22 17:46 cexp.y
-rw-rw-rw- 1 bks 82968 Apr 12 01:18 combine.c
-rw-rw-rw- 1 bks 3918 Feb 22 17:50 conditions.h
drwxrwxrwx 2 bks 2048 Jun 20 15:36 config/
-rwxrwxrwx 1 bks 6148 Apr 7 17:56 config.gcc*
-rw-rw-rw- 1 bks 1378 Feb 22 18:26 config.h.dist
-rw-rw-rw- 1 bks 106980 Apr 13 05:08 cse.c
-rw-rw-rw- 1 bks 35202 Apr 21 19:16 dbxout.c
drwxrwxr-x 2 bks 1024 Jun 20 12:40 doc/
-rw-rw-rw- 1 bks 39369 Apr 11 05:40 emit-rtl.c
-rw-rw-rw- 1 bks 15225 Feb 22 17:49 explow.c
-rw-rw-rw- 1 bks 48197 Feb 22 17:49 expmed.c
-rw-rw-rw- 1 bks 161060 Apr 25 21:47 expr.c
-rw-rw-rw- 1 bks 12647 Mar 29 23:56 expr.h
-rw-rw-rw- 1 bks 40140 Mar 30 00:36 final.c
-rwxrwxrwx 1 bks 2779 Apr 24 00:38 fixincludes*
-rw-rw-rw- 1 bks 5434 Mar 30 01:58 flags.h
-rw-rw-rw- 1 bks 63110 Apr 25 22:53 flow.c
-rw-rw-rw- 1 bks 44463 Mar 11 23:44 fold-const.c
-rw-rw-rw- 1 bks 28281 Jan 20 1989 gcc.1
-rw-rw-rw- 1 bks 46819 Apr 22 05:50 gcc.c
-rw-rw-rw- 1 bks 353 Jan 23 1988 gdbfiles.h
-rw-rw-rw- 1 bks 3110 Feb 22 17:53 gencodes.c
-rw-rw-rw- 1 bks 5947 Feb 22 17:53 genconfig.c
-rw-rw-rw- 1 bks 11452 Feb 22 17:53 genemit.c
-rw-rw-rw- 1 bks 7813 Feb 22 17:53 genextract.c
-rw-rw-rw- 1 bks 2819 Feb 22 17:53 genflags.c
-rw-rw-rw- 1 bks 21154 Apr 6 17:14 genoutput.c
-rw-rw-rw- 1 bks 9681 Feb 22 17:53 genpeep.c
-rw-rw-rw- 1 bks 25858 Feb 22 17:53 genrecog.c
-rw-rw-rw- 1 bks 33318 Feb 22 17:53 global-alloc.c
-rw-rw-rw- 1 bks 7496 Feb 12 1989 gnulib.c
-rw-rw-rw- 1 bks 8989 Apr 23 19:07 gnulib2.c
-rw-rw-rw- 1 bks 8012 Feb 22 18:22 hard-reg-set.h
-rw-rw-rw- 1 bks 56051 Apr 24 06:07 integrate.c
-rw-rw-rw- 1 bks 43193 Mar 29 21:39 jump.c
-rw-rw-rw- 1 bks 1161 Dec 6 1987 limits.h
-rw-rw-rw- 1 bks 37361 Mar 12 18:00 local-alloc.c
-rw-rw-rw- 1 bks 148132 Apr 10 23:03 loop.c
-rw-rw-rw- 1 bks 4714 Apr 2 19:01 machmode.def
-rw-rw-rw- 1 bks 5730 Feb 22 18:22 masm386.c
-rwxrwxrwx 1 bks 110 Jun 6 1987 move-if-change*
-rw-rw-rw- 1 bks 8380 Mar 28 21:42 obstack.c
-rw-rw-rw- 1 bks 14128 Feb 22 17:45 obstack.h
-rw-rw-rw- 1 bks 60151 Apr 5 01:47 optabs.c
drwxrwxr-x 2 bks 1024 Jun 20 12:40 other/
-rw-rw-rw- 1 bks 1356 Feb 22 17:56 output.h
-rw-rw-rw- 1 bks 15231 Apr 24 21:28 print-tree.c
-rw-rw-rw- 1 bks 2666 Feb 22 17:55 real.h
-rw-rw-rw- 1 bks 28603 Apr 10 23:46 recog.c
-rw-rw-rw- 1 bks 2570 Feb 22 17:55 recog.h
-rw-rw-rw- 1 bks 23927 Feb 22 18:28 regclass.c
-rw-rw-rw- 1 bks 5058 Feb 22 18:28 regs.h
-rw-rw-rw- 1 bks 92489 Apr 25 23:07 reload.c
-rw-rw-rw- 1 bks 1851 Feb 22 18:28 reload.h
-rw-rw-rw- 1 bks 85324 Mar 23 15:03 reload1.c
-rw-rw-rw- 1 bks 31410 Apr 1 23:10 rtl.c
-rw-rw-rw- 1 bks 22060 Apr 1 21:32 rtl.def
-rw-rw-rw- 1 bks 19180 Apr 1 23:11 rtl.h
-rw-rw-rw- 1 bks 23936 Feb 22 18:28 sdbout.c
-rw-rw-rw- 1 bks 4738 Mar 3 16:55 stab.def
-rw-rw-rw- 1 bks 237 Sep 13 1988 stab.h
-rw-r--r-- 1 bks 0 Jun 20 14:07 stamp-gnulib2
-rw-rw-rw- 1 bks 780 Apr 20 18:36 stdarg.h
-rw-rw-rw- 1 bks 393 May 14 1988 stddef.h
-rw-rw-rw- 1 bks 141603 Apr 15 22:11 stmt.c
-rw-rw-rw- 1 bks 28409 Apr 3 02:20 stor-layout.c
-rw-rw-rw- 1 bks 14317 Feb 22 18:28 stupid.c
-rw-rw-rw- 1 bks 34329 Feb 22 18:28 symout.c
-rw-rw-rw- 1 bks 13408 Feb 22 18:28 symseg.h
-rw-rw-rw- 1 bks 4618 Feb 22 18:27 tm.h.dist
-rw-rw-rw- 1 bks 47042 Apr 6 17:12 toplev.c
-rw-rw-rw- 1 bks 57442 Mar 10 23:44 tree.c
-rw-rw-rw- 1 bks 27504 Feb 22 18:29 tree.def
-rw-rw-rw- 1 bks 31220 Feb 22 18:27 tree.h
-rw-rw-rw- 1 bks 4143 Apr 5 23:26 va-mips.h
-rw-rw-rw- 1 bks 1222 Nov 30 1988 va-spur.h
-rw-rw-rw- 1 bks 867 Apr 6 06:11 varargs.h
-rw-rw-rw- 1 bks 51536 Apr 5 02:49 varasm.c
-rw-rw-rw- 1 bks 31 Apr 26 20:40 version.c
herbie(bks):4 cat Makefile
# Makefile for GNU C compiler.
# Copyright (C) 1987, 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.
# Variables you should change for certain systems:
# These are what you would need on HPUX:
# CFLAGS = -Wc,-Ns2000 -Wc,-Ne700 -Wc,-Np300
# If you are using the GNU assembler and linker on HPUX,
# add -I../hp-include to CFLAGS.
# -g is desirable in CFLAGS, but a compiler bug in HPUX version 5
# bites whenever tree.def, rtl.def or machmode.def is included
# (ie., on every source file).
# CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700
# For CCLIBFLAGS you might want to specify the switch that
# forces only 68000 instructions to be used.
# If you are making gcc for the first time, and if you are compiling it with
# a non-gcc compiler, and if your system doesn't have a working alloca() in any
# of the standard libraries (as is true for HP/UX or Genix),
# then get alloca.c from GNU Emacs and un-comment the following line:
# ALLOCA = alloca.o
# If your system has alloca() in /lib/libPW.a, un-comment the following line:
# CLIB= -lPW
# If your system's malloc() routine fails for any reason (as it does on
# certain versions of Genix), try getting the files
# malloc.c and getpagesize.h from GNU Emacs and un-comment the following line:
# MALLOC = malloc.o
# If you are running GCC on an Apollo (SR10.x),
# go into a Berkeley environment and use this:
# CFLAGS = -g -A nansi -A cpu,3000 -A runtype,bsd4.3 -A systype,any -DSHORT_ENUM_BUG
# (Says vasta@apollo.com.)
# Variables that exist for you to override.
CFLAGS = -g $(XCFLAGS)
CC = cc
BISON = bison
BISONFLAGS = -v
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.
OLDCC = cc
# CFLAGS for use with OLDCC, for compiling gnulib.
CCLIBFLAGS=
# 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/gcc
# Directory in which to put man pages.
mandir = $(prefix)/usr/local/man/man1
# Number to put in man-page filename.
manext = 1
# Additional system libraries to link with.
CLIB=
# Change this to a null string if obstacks are installed in the
# system library.
OBSTACK=obstack.o
# Dependency on obstack, alloca, malloc or whatever library facilities
# are not installed in the system libraries.
LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)
# How to link with both our special library facilities
# and the system's installed libraries.
LIBS = $(OBSTACK) $(ALLOCA) $(MALLOC) $(CLIB)
DIR = ../gcc
# End of variables for you to override.
# Always use -I$(srcdir)/config when compiling.
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) -I$(srcdir)/config $<
# Language-specific object files for C.
C_OBJS = c-parse.tab.o c-decl.o c-typeck.o c-convert.o
# Language-specific object files for C++.
# (These are not yet released.)
CPLUS_OBJS = cplus-parse.o cplus-decl.o cplus-typeck.o \
cplus-cvt.o cplus-search.o cplus-lex.o \
cplus-class.o cplus-init.o cplus-method.o
# Language-independent object files.
OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
rtl.o expr.o stmt.o expmed.o explow.o optabs.o varasm.o \
symout.o dbxout.o sdbout.o emit-rtl.o insn-emit.o \
integrate.o jump.o cse.o loop.o flow.o stupid.o combine.o \
regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o \
insn-peep.o final.o recog.o insn-recog.o insn-extract.o insn-output.o
# Files to be copied away after each stage in building.
STAGE_GCC=gcc
STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
cc1 cpp cccp # cc1plus
# Members of gnulib.
LIBFUNCS = _eprintf _builtin_new _builtin_New _builtin_del \
_umulsi3 _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
_lshrsi3 _lshlsi3 _ashrsi3 _ashlsi3 _cmpdi2 _ucmpdi2 \
_divdf3 _muldf3 _negdf2 _adddf3 _subdf3 _cmpdf2 \
_fixunsdfsi _fixunsdfdi _fixdfsi _fixdfdi \
_floatsidf _floatdidf _truncdfsf2 _extendsfdf2 \
_addsf3 _negsf2 _subsf3 _cmpsf2 _mulsf3 _divsf3 _varargs
# Library members defined in gnulib2.c.
LIB2FUNCS = _adddi3 _subdi3 _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 \
_div_internal
# Header files that are made available to programs compiled with gcc.
USER_H = stddef.h stdarg.h assert.h varargs.h va-*.h limits.h
# If you want to recompile everything, just do rm *.o.
# CONFIG_H = config.h tm.h
CONFIG_H =
RTL_H = rtl.h rtl.def machmode.def
TREE_H = tree.h real.h tree.def machmode.def
CPLUS_TREE_H = $(TREE_H) cplus-tree.h c-tree.h
all: gnulib gcc cc1 cpp # cc1plus gnulib2
# gnulib2 is commented out in 1.35 since it's too late for real testing.
# Do `make gnulib2' explicitly if you want `long long' support.
lang-c: gnulib gcc cc1 cpp # gnulib2
# lang-cplus: gnulib gcc cc1plus cpp
doc: cpp.info gplus.info gcc.info
compilations: ${OBJS}
gcc: gcc.o version.o $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o gccnew gcc.o version.o $(LIBS)
# Go via `gccnew' to avoid `file busy' if $(CC) is `gcc'.
mv gccnew gcc
gcc.o: gcc.c $(CONFIG_H)
$(CC) $(CFLAGS) -I$(srcdir)/config \
-DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
-DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-\" -c gcc.c
cc1: $(C_OBJS) $(OBJS) $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(LIBS)
cc1plus: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o cc1plus $(CPLUS_OBJS) $(OBJS) $(LIBS)
#Library of arithmetic subroutines
# Don't compile this with gcc!
# (That would cause most arithmetic functions to call themselves.)
gnulib: gnulib.c
-mkdir libtemp
cd libtemp; \
rm -f gnulib; \
for name in $(LIBFUNCS); \
do \
echo $${name}; \
rm -f $${name}.c; \
cp ../gnulib.c $${name}.c; \
$(OLDCC) $(CCLIBFLAGS) -O -I.. -I../config -c -DL$${name} $${name}.c; \
$(AR) qc gnulib $${name}.o; \
done
mv libtemp/gnulib .
rm -rf libtemp
if [ -f /usr/bin/ranlib ] ; then ranlib gnulib ;fi
# On HPUX, if you are working with the GNU assembler and linker,
# the previous line must be replaced with the following two lines.
# No change is needed here if you are using the HPUX assembler and linker.
# mv gnulib gnulib-hp
# ../hp-bin/hpxt gnulib-hp gnulib
gnulib2: stamp-gnulib2 ;
stamp-gnulib2: gnulib2.c
-mkdir libtemp
cd libtemp; \
cp ../gnulib .; \
for name in $(LIB2FUNCS); \
do \
echo $${name}; \
rm -f $${name}.c; \
cp ../gnulib2.c $${name}.c; \
../gcc -B../ -fstrength-reduce -O -I.. -I../config -c -DL$${name} $${name}.c; \
$(AR) qc gnulib $${name}.o; \
done
mv libtemp/gnulib .
rm -rf libtemp
if [ -f /usr/bin/ranlib ] ; then ranlib gnulib ;fi
touch stamp-gnulib2
# On HPUX, this might require some change; no one has tried it.
# C language specific files.
c-parse.tab.o : c-parse.tab.c $(CONFIG_H) $(TREE_H) c-parse.h c-tree.h
c-parse.tab.c : c-parse.y
$(BISON) $(BISONFLAGS) c-parse.y
c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-parse.h flags.h
c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H)
# C++ language specific files.
cplus-parse.o : cplus-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
$(CC) -c $(CFLAGS) -I$(srcdir)/config \
-DPARSE_OUTPUT=\"$(PWD)/cplus-parse.output\" cplus-parse.c
cplus-parse.h cplus-parse.c : cplus-parse.y
@echo expect 49 shift/reduce conflicts and 4 reduce/reduce conflicts
$(BISON) $(BISONFLAGS) -d -o cplus-parse.c cplus-parse.y
cplus-lex.o : cplus-lex.c $(CONFIG_H) $(CPLUS_TREE_H) cplus-parse.h
cplus-decl.o : cplus-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
cplus-typeck.o : cplus-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
cplus-class.o : cplus-class.c $(CONFIG_H) $(CPLUS_TREE_H)
cplus-init.o : cplus-init.c $(CONFIG_H) $(CPLUS_TREE_H)
cplus-method.o : cplus-method.c $(CONFIG_H) $(CPLUS_TREE_H)
cplus-cvt.o : cplus-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
cplus-search.o : cplus-search.c $(CONFIG_H) $(CPLUS_TREE_H)
new-method.o : new-method.c $(CONFIG_H) $(CPLUS_TREE_H)
# Language-independent files.
tree.o : tree.c $(CONFIG_H) $(TREE_H) flags.h
print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H)
fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H)
toplev.o : toplev.c $(CONFIG_H) $(TREE_H) flags.h
rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h expr.h \
insn-codes.h hard-reg-set.h
stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
insn-flags.h expr.h insn-config.h regs.h insn-codes.h
expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
insn-flags.h insn-codes.h expr.h insn-config.h recog.h
expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
insn-flags.h insn-codes.h expr.h insn-config.h recog.h
explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h
optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
insn-flags.h insn-codes.h expr.h insn-config.h recog.h
symout.o : symout.c $(CONFIG_H) $(TREE_H) $(RTL_H) symseg.h gdbfiles.h
dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h
sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) c-tree.h
emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h real.h
integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h \
insn-flags.h insn-codes.h
jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h regs.h
stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h
cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h
loop.o : loop.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
regs.h recog.h flags.h expr.h
flow.o : flow.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h
combine.o : combine.c $(CONFIG_H) $(RTL_H) flags.h \
insn-config.h regs.h basic-block.h recog.h
regclass.o : regclass.c $(CONFIG_H) $(RTL_H) flags.h regs.h \
insn-config.h recog.h hard-reg-set.h
local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h \
insn-config.h recog.h hard-reg-set.h
global-alloc.o : global-alloc.c $(CONFIG_H) $(RTL_H) flags.h \
basic-block.h regs.h hard-reg-set.h insn-config.h
reload.o : reload.c $(CONFIG_H) $(RTL_H) \
reload.h recog.h hard-reg-set.h insn-config.h regs.h
reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h \
reload.h regs.h hard-reg-set.h insn-config.h basic-block.h
caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
reload.h regs.h hard-reg-set.h insn-config.h basic-block.h recog.h
final.o : final.c $(CONFIG_H) $(RTL_H) regs.h recog.h conditions.h gdbfiles.h \
insn-config.h real.h
recog.o : recog.c $(CONFIG_H) $(RTL_H) \
regs.h recog.h hard-reg-set.h insn-config.h
# Normally this target is not used; but it is used if you
# define ALLOCA=alloca.o. In that case, you must get a suitable alloca.c
# from the GNU Emacs distribution.
# Note some machines won't allow $(CC) without -S on this source file.
alloca.o: alloca.c
$(CC) $(CFLAGS) -S alloca.c
as alloca.s -o alloca.o
# Now the source files that are generated from the machine description.
.PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c
# The following pair of rules has this effect:
# genconfig is run only if the md has changed since genconfig was last run;
# but the file insn-config.h is touched only when its contents actually change.
# Each of the other insn-* files is handled by a similar pair of rules.
insn-config.h: stamp-config.h ;
stamp-config.h : md genconfig
./genconfig md > tmp-insn-config.h
./move-if-change tmp-insn-config.h insn-config.h
touch stamp-config.h
insn-flags.h: stamp-flags.h ;
stamp-flags.h : md genflags
./genflags md > tmp-insn-flags.h
./move-if-change tmp-insn-flags.h insn-flags.h
touch stamp-flags.h
insn-codes.h: stamp-codes.h ;
stamp-codes.h : md gencodes
./gencodes md > tmp-insn-codes.h
./move-if-change tmp-insn-codes.h insn-codes.h
touch stamp-codes.h
insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h insn-config.h real.h
$(CC) $(CFLAGS) -I$(srcdir)/config -c insn-emit.c
insn-emit.c: stamp-emit.c ;
stamp-emit.c : md genemit
./genemit md > tmp-insn-emit.c
./move-if-change tmp-insn-emit.c insn-emit.c
touch stamp-emit.c
insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h
$(CC) $(CFLAGS) -I$(srcdir)/config -c insn-recog.c
insn-recog.c: stamp-recog.c ;
stamp-recog.c : md genrecog
./genrecog md > tmp-insn-recog.c
./move-if-change tmp-insn-recog.c insn-recog.c
touch stamp-recog.c
insn-extract.o : insn-extract.c $(RTL_H)
$(CC) $(CFLAGS) -I$(srcdir)/config -c insn-extract.c
insn-extract.c: stamp-extract.c ;
stamp-extract.c : md genextract
./genextract md > tmp-insn-extract.c
./move-if-change tmp-insn-extract.c insn-extract.c
touch stamp-extract.c
insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h real.h
$(CC) $(CFLAGS) -I$(srcdir)/config -c insn-peep.c
insn-peep.c: stamp-peep.c ;
stamp-peep.c : md genpeep
./genpeep md > tmp-insn-peep.c
./move-if-change tmp-insn-peep.c insn-peep.c
touch stamp-peep.c
insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h real.h conditions.h \
hard-reg-set.h insn-config.h insn-flags.h output.h aux-output.c
$(CC) $(CFLAGS) -I$(srcdir)/config -c insn-output.c
insn-output.c: stamp-output.c ;
stamp-output.c : md genoutput
./genoutput md > tmp-insn-output.c
./move-if-change tmp-insn-output.c insn-output.c
touch stamp-output.c
# Now the programs that generate those files.
genconfig : genconfig.o rtl.o $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o genconfig genconfig.o rtl.o $(LIBS)
genconfig.o : genconfig.c $(RTL_H)
genflags : genflags.o rtl.o $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o genflags genflags.o rtl.o $(LIBS)
genflags.o : genflags.c $(RTL_H)
gencodes : gencodes.o rtl.o $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o gencodes gencodes.o rtl.o $(LIBS)
gencodes.o : gencodes.c $(RTL_H)
genemit : genemit.o rtl.o $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o genemit genemit.o rtl.o $(LIBS)
genemit.o : genemit.c $(RTL_H)
genrecog : genrecog.o rtl.o $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o genrecog genrecog.o rtl.o $(LIBS)
genrecog.o : genrecog.c $(RTL_H)
genextract : genextract.o rtl.o $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o genextract genextract.o rtl.o $(LIBS)
genextract.o : genextract.c $(RTL_H)
genpeep : genpeep.o rtl.o $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o genpeep genpeep.o rtl.o $(LIBS)
genpeep.o : genpeep.c $(RTL_H)
genoutput : genoutput.o rtl.o $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o genoutput genoutput.o rtl.o $(LIBS)
genoutput.o : genoutput.c $(RTL_H)
# Making the preprocessor
cpp: cccp
-rm -f cpp
ln cccp cpp
cccp: cccp.o cexp.o version.o $(LIBDEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
cexp.o: cexp.c
cexp.c: cexp.y
$(BISON) cexp.y
mv cexp.tab.c cexp.c
cccp.o: cccp.c
$(CC) $(CFLAGS) -I$(srcdir)/config \
-DGCC_INCLUDE_DIR=\"$(libdir)/gcc-include\" \
-DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" -c cccp.c
cpp.info: cpp.texinfo
makeinfo $<
gplus.info: gplus.texinfo
makeinfo $<
gcc.info: gcc.texinfo
makeinfo $<
# gnulib is not deleted because deleting it would be inconvenient
# for most uses of this target.
clean:
-rm -f $(STAGESTUFF) $(STAGE_GCC)
-rm -f stamp-*.[ch]
-rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
-rm -f core
# Like clean but also delete the links made to configure gcc.
cleanlinks: clean
-rm -f tm.h aux-output.c config.h md config.status
# Get rid of every file that's generated from some other file (except INSTALL).
realclean: cleanlinks
-rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs
# -rm -f cplus-parse.tab.c cplus-parse.output
-rm -f c-parse.tab.c c-parse.output
-rm -f gnulib cexp.c TAGS
-rm -f cpp.info* cpp.?? cpp.??s cpp.log cpp.toc cpp.*aux
-rm -f gcc.info* gcc.?? gcc.??s gcc.log gcc.toc gcc.*aux
-rm -f gplus.info* gplus.?? gplus.??s gplus.log gplus.toc gplus.*aux
-rm -f *.dvi
# Copy the files into directories where they will be run.
install: all
-mkdir $(libdir)
-if [ -f cc1 ] ; then $(INSTALL) cc1 $(libdir)/gcc-cc1 ;fi
-if [ -f cc1plus ] ; then $(INSTALL) cc1plus $(libdir)/gcc-cc1plus ;fi
$(INSTALL) gnulib $(libdir)/gcc-gnulib
-if [ -f /usr/bin/ranlib ] ; then (cd $(libdir); ranlib gcc-gnulib) ;fi
$(INSTALL) cpp $(libdir)/gcc-cpp
$(INSTALL) gcc $(bindir)
-mkdir $(libdir)/gcc-include
chmod ugo+rx $(libdir)/gcc-include
for file in $(USER_H); do $(INSTALL) $${file} $(libdir)/gcc-include; done
$(INSTALL) gcc.1 $(mandir)/gcc.$(manext)
# do make -f ../gcc/Makefile maketest DIR=../gcc
# in the intended test directory to make it a suitable test directory.
maketest:
ln -s $(DIR)/*.[chy] .
ln -s $(DIR)/*.def .
ln -s $(DIR)/*.md .
-rm -f =*
ln -s $(DIR)/.gdbinit .
-ln -s $(DIR)/bison.simple .
ln -s $(DIR)/config.gcc .
ln -s $(DIR)/move-if-change .
if [ -f Makefile ] ; then false; else ln -s $(DIR)/Makefile . ; fi
-rm tm.h aux-output.c config.h md
make clean
# You must then run config.gcc to set up for compilation.
bootstrap: all force
$(MAKE) stage1
$(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)"
$(MAKE) stage2
$(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)"
bootstrap2: force
$(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)"
$(MAKE) stage2
$(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)"
bootstrap3: force
$(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)"
# Copy the object files from a particular stage into a subdirectory.
stage1: force
-mkdir stage1
-mv $(STAGESTUFF) $(STAGE_GCC) stage1
-rm -f stage1/gnulib
-ln gnulib stage1 || (cp gnulib stage1 && ranlib stage1/gnulib)
stage2: force
-mkdir stage2
-mv $(STAGESTUFF) $(STAGE_GCC) stage2
-rm -f stage2/gnulib
-ln gnulib stage2 || (cp gnulib stage2 && ranlib stage2/gnulib)
stage3: force
-mkdir stage3
-mv $(STAGESTUFF) $(STAGE_GCC) stage3
-rm -f stage3/gnulib
-ln gnulib stage3 || (cp gnulib stage3 && ranlib stage3/gnulib)
TAGS: force
mkdir temp
-mv c-parse.tab.c cplus-parse.c cplus-parse.h cexp.c temp
etags *.y *.h *.c
mv temp/* .
rmdir temp
#In GNU Make, ignore whether `stage*' exists.
.PHONY: stage1 stage2 stage3 clean realclean TAGS bootstrap
force:
==============PART 2=============
herbie> config.gcc next
Linked `config.h' to `config/xm-m68k.h'.
Linked `tm.h' to `config/tm-next.h'.
Linked `md' to `config/m68k.md'.
Linked `aux-output.c' to `config/out-m68k.c'.
Links are now set up for use with a next.
herbie> make
cc -g -I./config -DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/gcc/\" -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc/gcc-\" -c gcc.c
cc -c -g -I./config version.c
cc -c -g -I./config obstack.c
cc -g -o gccnew gcc.o version.o obstack.o
mv gccnew gcc
cc -c -g -I./config c-parse.tab.c
cc -c -g -I./config c-decl.c
cc -c -g -I./config c-typeck.c
cc -c -g -I./config c-convert.c
cc -c -g -I./config toplev.c
cc -c -g -I./config tree.c
varargs.h:24: warning: va_start redefined
varargs.h:33: warning: va_arg redefined
cc -c -g -I./config print-tree.c
cc -c -g -I./config stor-layout.c
cc -c -g -I./config fold-const.c
cc -c -g -I./config rtl.c
In function read_name:
rtl.c:1079: warning: assignment of integer from pointer lacks a cast
cc -c -g -I./config genflags.c
In function fatal:
genflags.c:79: warning: argument passing of pointer from integer lacks a cast
cc -g -o genflags genflags.o rtl.o obstack.o
./genflags md > tmp-insn-flags.h
./move-if-change tmp-insn-flags.h insn-flags.h
touch stamp-flags.h
cc -c -g -I./config gencodes.c
In function fatal:
gencodes.c:77: warning: argument passing of pointer from integer lacks a cast
cc -g -o gencodes gencodes.o rtl.o obstack.o
./gencodes md > tmp-insn-codes.h
./move-if-change tmp-insn-codes.h insn-codes.h
touch stamp-codes.h
cc -c -g -I./config genconfig.c
In function fatal:
genconfig.c:194: warning: argument passing of pointer from integer lacks a cast
cc -g -o genconfig genconfig.o rtl.o obstack.o
./genconfig md > tmp-insn-config.h
./move-if-change tmp-insn-config.h insn-config.h
touch stamp-config.h
cc -c -g -I./config expr.c
cc -c -g -I./config stmt.c
cc -c -g -I./config expmed.c
cc -c -g -I./config explow.c
cc -c -g -I./config optabs.c
cc -c -g -I./config varasm.c
cc -c -g -I./config symout.c
cc -c -g -I./config dbxout.c
cc -c -g -I./config sdbout.c
cc -c -g -I./config emit-rtl.c
varargs.h:24: warning: va_start redefined
varargs.h:33: warning: va_arg redefined
cc -c -g -I./config genemit.c
In function fatal:
genemit.c:392: warning: argument passing of pointer from integer lacks a cast
cc -g -o genemit genemit.o rtl.o obstack.o
./genemit md > tmp-insn-emit.c
./move-if-change tmp-insn-emit.c insn-emit.c
touch stamp-emit.c
cc -g -I./config -c insn-emit.c
cc -c -g -I./config integrate.c
cc -c -g -I./config jump.c
cc -c -g -I./config cse.c
cc -c -g -I./config loop.c
cc -c -g -I./config flow.c
cc -c -g -I./config stupid.c
cc -c -g -I./config combine.c
cc -c -g -I./config regclass.c
cc -c -g -I./config local-alloc.c
cc -c -g -I./config global-alloc.c
cc -c -g -I./config reload.c
cc -c -g -I./config reload1.c
cc -c -g -I./config caller-save.c
cc -c -g -I./config genpeep.c
In function fatal:
genpeep.c:337: warning: argument passing of pointer from integer lacks a cast
cc -g -o genpeep genpeep.o rtl.o obstack.o
./genpeep md > tmp-insn-peep.c
./move-if-change tmp-insn-peep.c insn-peep.c
touch stamp-peep.c
cc -g -I./config -c insn-peep.c
cc -c -g -I./config final.c
cc -c -g -I./config recog.c
cc -c -g -I./config genrecog.c
In function fatal:
genrecog.c:996: warning: argument passing of pointer from integer lacks a cast
cc -g -o genrecog genrecog.o rtl.o obstack.o
./genrecog md > tmp-insn-recog.c
./move-if-change tmp-insn-recog.c insn-recog.c
touch stamp-recog.c
cc -g -I./config -c insn-recog.c
cc -c -g -I./config genextract.c
In function fatal:
genextract.c:240: warning: argument passing of pointer from integer lacks a cast
cc -g -o genextract genextract.o rtl.o obstack.o
./genextract md > tmp-insn-extract.c
./move-if-change tmp-insn-extract.c insn-extract.c
touch stamp-extract.c
cc -g -I./config -c insn-extract.c
cc -c -g -I./config genoutput.c
In function fatal:
genoutput.c:699: warning: argument passing of pointer from integer lacks a cast
In function error:
genoutput.c:708: warning: argument passing of pointer from integer lacks a cast
cc -g -o genoutput genoutput.o rtl.o obstack.o
./genoutput md > tmp-insn-output.c
./move-if-change tmp-insn-output.c insn-output.c
touch stamp-output.c
cc -g -I./config -c insn-output.c
cc -g -o cc1 c-parse.tab.o c-decl.o c-typeck.o c-convert.o toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o rtl.o expr.o stmt.o expmed.o explow.o optabs.o varasm.o symout.o dbxout.o sdbout.o emit-rtl.o insn-emit.o integrate.o jump.o
cse.o loop.o flow.o stupid.o combine.o regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o insn-peep.o final.o recog.o insn-recog.o insn-extract.o insn-output.o obstack.o
cc -g -I./config -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc/gcc-include\" -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/gcc/g++-include\" -c cccp.c
In function macroexpand:
cccp.c:4114: warning: argument passing between incompatible pointer types
In function error:
cccp.c:4537: warning: argument passing between incompatible pointer types
In function warning:
cccp.c:4588: warning: argument passing between incompatible pointer types
In function error_with_line:
cccp.c:4608: warning: argument passing between incompatible pointer types
In function dump_all_macros:
cccp.c:4886: warning: return of integer from pointer lacks a cast
cc -c -g -I./config cexp.c
cexp.y:222: warning: NULL redefined
cc -g -o cccp cccp.o cexp.o version.o obstack.o
rm -f cpp
ln cccp cpp
herbie> make stage1
mkdir stage1
mv *.o insn-flags.h insn-config.h insn-codes.h insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c genemit genoutput genrecog genextract genflags gencodes genconfig genpeep cc1 cpp cccp gcc stage1
rm -f stage1/gnulib
ln gnulib stage1 || (cp gnulib stage1 && ranlib stage1/gnulib)
herbie> make CC=stage1/gcc CFLAGS="-g -O -Bstage1/"
stage1/gcc -g -O -Bstage1/ -I./config -DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/gcc/\" -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc/gcc-\" -c gcc.c
stage1/gcc -c -g -O -Bstage1/ -I./config version.c
stage1/gcc -c -g -O -Bstage1/ -I./config obstack.c
stage1/gcc -g -O -Bstage1/ -o gccnew gcc.o version.o obstack.o
mv gccnew gcc
stage1/gcc -c -g -O -Bstage1/ -I./config c-parse.tab.c
stage1/gcc -c -g -O -Bstage1/ -I./config c-decl.c
stage1/gcc -c -g -O -Bstage1/ -I./config c-typeck.c
stage1/gcc -c -g -O -Bstage1/ -I./config c-convert.c
stage1/gcc -c -g -O -Bstage1/ -I./config toplev.c
stage1/gcc -c -g -O -Bstage1/ -I./config tree.c
varargs.h:24: warning: va_start redefined
varargs.h:33: warning: va_arg redefined
stage1/gcc -c -g -O -Bstage1/ -I./config print-tree.c
stage1/gcc -c -g -O -Bstage1/ -I./config stor-layout.c
stage1/gcc -c -g -O -Bstage1/ -I./config fold-const.c
stage1/gcc -c -g -O -Bstage1/ -I./config rtl.c
rtl.c: In function read_name:
rtl.c:1079: warning: assignment of integer from pointer lacks a cast
stage1/gcc -c -g -O -Bstage1/ -I./config genflags.c
genflags.c: In function fatal:
genflags.c:79: warning: argument passing of pointer from integer lacks a cast
stage1/gcc -g -O -Bstage1/ -o genflags genflags.o rtl.o obstack.o
./genflags md > tmp-insn-flags.h
./move-if-change tmp-insn-flags.h insn-flags.h
touch stamp-flags.h
stage1/gcc -c -g -O -Bstage1/ -I./config gencodes.c
gencodes.c: In function fatal:
gencodes.c:77: warning: argument passing of pointer from integer lacks a cast
stage1/gcc -g -O -Bstage1/ -o gencodes gencodes.o rtl.o obstack.o
./gencodes md > tmp-insn-codes.h
./move-if-change tmp-insn-codes.h insn-codes.h
touch stamp-codes.h
stage1/gcc -c -g -O -Bstage1/ -I./config genconfig.c
genconfig.c: In function fatal:
genconfig.c:194: warning: argument passing of pointer from integer lacks a cast
stage1/gcc -g -O -Bstage1/ -o genconfig genconfig.o rtl.o obstack.o
./genconfig md > tmp-insn-config.h
./move-if-change tmp-insn-config.h insn-config.h
touch stamp-config.h
stage1/gcc -c -g -O -Bstage1/ -I./config expr.c
stage1/gcc -c -g -O -Bstage1/ -I./config stmt.c
stage1/gcc -c -g -O -Bstage1/ -I./config expmed.c
stage1/gcc -c -g -O -Bstage1/ -I./config explow.c
stage1/gcc -c -g -O -Bstage1/ -I./config optabs.c
stage1/gcc -c -g -O -Bstage1/ -I./config varasm.c
stage1/gcc -c -g -O -Bstage1/ -I./config symout.c
stage1/gcc -c -g -O -Bstage1/ -I./config dbxout.c
stage1/gcc -c -g -O -Bstage1/ -I./config sdbout.c
stage1/gcc -c -g -O -Bstage1/ -I./config emit-rtl.c
varargs.h:24: warning: va_start redefined
varargs.h:33: warning: va_arg redefined
stage1/gcc -c -g -O -Bstage1/ -I./config genemit.c
genemit.c: In function fatal:
genemit.c:392: warning: argument passing of pointer from integer lacks a cast
stage1/gcc -g -O -Bstage1/ -o genemit genemit.o rtl.o obstack.o
./genemit md > tmp-insn-emit.c
./move-if-change tmp-insn-emit.c insn-emit.c
touch stamp-emit.c
stage1/gcc -g -O -Bstage1/ -I./config -c insn-emit.c
stage1/gcc -c -g -O -Bstage1/ -I./config integrate.c
stage1/gcc -c -g -O -Bstage1/ -I./config jump.c
stage1/gcc -c -g -O -Bstage1/ -I./config cse.c
stage1/gcc -c -g -O -Bstage1/ -I./config loop.c
stage1/gcc -c -g -O -Bstage1/ -I./config flow.c
stage1/gcc -c -g -O -Bstage1/ -I./config stupid.c
stage1/gcc -c -g -O -Bstage1/ -I./config combine.c
stage1/gcc -c -g -O -Bstage1/ -I./config regclass.c
stage1/gcc -c -g -O -Bstage1/ -I./config local-alloc.c
stage1/gcc -c -g -O -Bstage1/ -I./config global-alloc.c
stage1/gcc -c -g -O -Bstage1/ -I./config reload.c
stage1/gcc -c -g -O -Bstage1/ -I./config reload1.c
stage1/gcc -c -g -O -Bstage1/ -I./config caller-save.c
stage1/gcc -c -g -O -Bstage1/ -I./config genpeep.c
genpeep.c: In function fatal:
genpeep.c:337: warning: argument passing of pointer from integer lacks a cast
stage1/gcc -g -O -Bstage1/ -o genpeep genpeep.o rtl.o obstack.o
./genpeep md > tmp-insn-peep.c
./move-if-change tmp-insn-peep.c insn-peep.c
touch stamp-peep.c
stage1/gcc -g -O -Bstage1/ -I./config -c insn-peep.c
stage1/gcc -c -g -O -Bstage1/ -I./config final.c
stage1/gcc -c -g -O -Bstage1/ -I./config recog.c
stage1/gcc -c -g -O -Bstage1/ -I./config genrecog.c
genrecog.c: In function fatal:
genrecog.c:996: warning: argument passing of pointer from integer lacks a cast
stage1/gcc -g -O -Bstage1/ -o genrecog genrecog.o rtl.o obstack.o
./genrecog md > tmp-insn-recog.c
./move-if-change tmp-insn-recog.c insn-recog.c
touch stamp-recog.c
stage1/gcc -g -O -Bstage1/ -I./config -c insn-recog.c
stage1/gcc -c -g -O -Bstage1/ -I./config genextract.c
genextract.c: In function fatal:
genextract.c:240: warning: argument passing of pointer from integer lacks a cast
stage1/gcc -g -O -Bstage1/ -o genextract genextract.o rtl.o obstack.o
./genextract md > tmp-insn-extract.c
./move-if-change tmp-insn-extract.c insn-extract.c
touch stamp-extract.c
stage1/gcc -g -O -Bstage1/ -I./config -c insn-extract.c
stage1/gcc -c -g -O -Bstage1/ -I./config genoutput.c
genoutput.c: In function fatal:
genoutput.c:699: warning: argument passing of pointer from integer lacks a cast
genoutput.c: In function error:
genoutput.c:708: warning: argument passing of pointer from integer lacks a cast
stage1/gcc -g -O -Bstage1/ -o genoutput genoutput.o rtl.o obstack.o
./genoutput md > tmp-insn-output.c
./move-if-change tmp-insn-output.c insn-output.c
touch stamp-output.c
stage1/gcc -g -O -Bstage1/ -I./config -c insn-output.c
stage1/gcc -g -O -Bstage1/ -o cc1 c-parse.tab.o c-decl.o c-typeck.o c-convert.o toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o rtl.o expr.o stmt.o expmed.o explow.o optabs.o varasm.o symout.o dbxout.o sdbout.o emit-rtl.o insn-emit.o
integrate.o jump.o cse.o loop.o flow.o stupid.o combine.o regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o insn-peep.o final.o recog.o insn-recog.o insn-extract.o insn-output.o obstack.o
stage1/gcc -g -O -Bstage1/ -I./config -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc/gcc-include\" -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/gcc/g++-include\" -c cccp.c
cccp.c: In function macroexpand:
cccp.c:4114: warning: argument passing between incompatible pointer types
cccp.c: In function error:
cccp.c:4537: warning: argument passing between incompatible pointer types
cccp.c: In function warning:
cccp.c:4588: warning: argument passing between incompatible pointer types
cccp.c: In function error_with_line:
cccp.c:4608: warning: argument passing between incompatible pointer types
cccp.c: In function dump_all_macros:
cccp.c:4886: warning: return of integer from pointer lacks a cast
stage1/gcc -c -g -O -Bstage1/ -I./config cexp.c
cexp.y:222: warning: NULL redefined
stage1/gcc -g -O -Bstage1/ -o cccp cccp.o cexp.o version.o obstack.o
rm -f cpp
ln cccp cpp
herbie> make stage2
mkdir stage2
mv *.o insn-flags.h insn-config.h insn-codes.h insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c genemit genoutput genrecog genextract genflags gencodes genconfig genpeep cc1 cpp cccp gcc stage2
rm -f stage2/gnulib
ln gnulib stage2 || (cp gnulib stage2 && ranlib stage2/gnulib)
herbie> make CC=stage2/gcc CFLAGS="-g -O -Bstage2/"
stage2/gcc -g -O -Bstage2/ -I./config -DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/gcc/\" -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc/gcc-\" -c gcc.c
stage2/gcc -c -g -O -Bstage2/ -I./config version.c
stage2/gcc -c -g -O -Bstage2/ -I./config obstack.c
stage2/gcc -g -O -Bstage2/ -o gccnew gcc.o version.o obstack.o
mv gccnew gcc
stage2/gcc -c -g -O -Bstage2/ -I./config c-parse.tab.c
stage2/gcc -c -g -O -Bstage2/ -I./config c-decl.c
stage2/gcc -c -g -O -Bstage2/ -I./config c-typeck.c
stage2/gcc -c -g -O -Bstage2/ -I./config c-convert.c
stage2/gcc -c -g -O -Bstage2/ -I./config toplev.c
stage2/gcc -c -g -O -Bstage2/ -I./config tree.c
varargs.h:24: warning: va_start redefined
varargs.h:33: warning: va_arg redefined
stage2/gcc -c -g -O -Bstage2/ -I./config print-tree.c
stage2/gcc -c -g -O -Bstage2/ -I./config stor-layout.c
stage2/gcc -c -g -O -Bstage2/ -I./config fold-const.c
stage2/gcc -c -g -O -Bstage2/ -I./config rtl.c
rtl.c: In function read_name:
rtl.c:1079: warning: assignment of integer from pointer lacks a cast
stage2/gcc -c -g -O -Bstage2/ -I./config genflags.c
genflags.c: In function fatal:
genflags.c:79: warning: argument passing of pointer from integer lacks a cast
stage2/gcc -g -O -Bstage2/ -o genflags genflags.o rtl.o obstack.o
./genflags md > tmp-insn-flags.h
./move-if-change tmp-insn-flags.h insn-flags.h
touch stamp-flags.h
stage2/gcc -c -g -O -Bstage2/ -I./config gencodes.c
gencodes.c: In function fatal:
gencodes.c:77: warning: argument passing of pointer from integer lacks a cast
stage2/gcc -g -O -Bstage2/ -o gencodes gencodes.o rtl.o obstack.o
./gencodes md > tmp-insn-codes.h
./move-if-change tmp-insn-codes.h insn-codes.h
touch stamp-codes.h
stage2/gcc -c -g -O -Bstage2/ -I./config genconfig.c
genconfig.c: In function fatal:
genconfig.c:194: warning: argument passing of pointer from integer lacks a cast
stage2/gcc -g -O -Bstage2/ -o genconfig genconfig.o rtl.o obstack.o
./genconfig md > tmp-insn-config.h
./move-if-change tmp-insn-config.h insn-config.h
touch stamp-config.h
stage2/gcc -c -g -O -Bstage2/ -I./config expr.c
stage2/gcc -c -g -O -Bstage2/ -I./config stmt.c
stage2/gcc -c -g -O -Bstage2/ -I./config expmed.c
stage2/gcc -c -g -O -Bstage2/ -I./config explow.c
stage2/gcc -c -g -O -Bstage2/ -I./config optabs.c
stage2/gcc -c -g -O -Bstage2/ -I./config varasm.c
stage2/gcc -c -g -O -Bstage2/ -I./config symout.c
stage2/gcc -c -g -O -Bstage2/ -I./config dbxout.c
stage2/gcc -c -g -O -Bstage2/ -I./config sdbout.c
stage2/gcc -c -g -O -Bstage2/ -I./config emit-rtl.c
varargs.h:24: warning: va_start redefined
varargs.h:33: warning: va_arg redefined
stage2/gcc -c -g -O -Bstage2/ -I./config genemit.c
genemit.c: In function fatal:
genemit.c:392: warning: argument passing of pointer from integer lacks a cast
stage2/gcc -g -O -Bstage2/ -o genemit genemit.o rtl.o obstack.o
./genemit md > tmp-insn-emit.c
./move-if-change tmp-insn-emit.c insn-emit.c
touch stamp-emit.c
stage2/gcc -g -O -Bstage2/ -I./config -c insn-emit.c
stage2/gcc -c -g -O -Bstage2/ -I./config integrate.c
stage2/gcc -c -g -O -Bstage2/ -I./config jump.c
stage2/gcc -c -g -O -Bstage2/ -I./config cse.c
stage2/gcc -c -g -O -Bstage2/ -I./config loop.c
stage2/gcc -c -g -O -Bstage2/ -I./config flow.c
stage2/gcc -c -g -O -Bstage2/ -I./config stupid.c
stage2/gcc -c -g -O -Bstage2/ -I./config combine.c
stage2/gcc -c -g -O -Bstage2/ -I./config regclass.c
stage2/gcc -c -g -O -Bstage2/ -I./config local-alloc.c
stage2/gcc -c -g -O -Bstage2/ -I./config global-alloc.c
stage2/gcc -c -g -O -Bstage2/ -I./config reload.c
stage2/gcc -c -g -O -Bstage2/ -I./config reload1.c
stage2/gcc -c -g -O -Bstage2/ -I./config caller-save.c
stage2/gcc -c -g -O -Bstage2/ -I./config genpeep.c
genpeep.c: In function fatal:
genpeep.c:337: warning: argument passing of pointer from integer lacks a cast
stage2/gcc -g -O -Bstage2/ -o genpeep genpeep.o rtl.o obstack.o
./genpeep md > tmp-insn-peep.c
./move-if-change tmp-insn-peep.c insn-peep.c
touch stamp-peep.c
stage2/gcc -g -O -Bstage2/ -I./config -c insn-peep.c
stage2/gcc -c -g -O -Bstage2/ -I./config final.c
stage2/gcc -c -g -O -Bstage2/ -I./config recog.c
stage2/gcc -c -g -O -Bstage2/ -I./config genrecog.c
genrecog.c: In function fatal:
genrecog.c:996: warning: argument passing of pointer from integer lacks a cast
stage2/gcc -g -O -Bstage2/ -o genrecog genrecog.o rtl.o obstack.o
./genrecog md > tmp-insn-recog.c
./move-if-change tmp-insn-recog.c insn-recog.c
touch stamp-recog.c
stage2/gcc -g -O -Bstage2/ -I./config -c insn-recog.c
stage2/gcc -c -g -O -Bstage2/ -I./config genextract.c
genextract.c: In function fatal:
genextract.c:240: warning: argument passing of pointer from integer lacks a cast
stage2/gcc -g -O -Bstage2/ -o genextract genextract.o rtl.o obstack.o
./genextract md > tmp-insn-extract.c
./move-if-change tmp-insn-extract.c insn-extract.c
touch stamp-extract.c
stage2/gcc -g -O -Bstage2/ -I./config -c insn-extract.c
stage2/gcc -c -g -O -Bstage2/ -I./config genoutput.c
genoutput.c: In function fatal:
genoutput.c:699: warning: argument passing of pointer from integer lacks a cast
genoutput.c: In function error:
genoutput.c:708: warning: argument passing of pointer from integer lacks a cast
stage2/gcc -g -O -Bstage2/ -o genoutput genoutput.o rtl.o obstack.o
./genoutput md > tmp-insn-output.c
./move-if-change tmp-insn-output.c insn-output.c
touch stamp-output.c
stage2/gcc -g -O -Bstage2/ -I./config -c insn-output.c
stage2/gcc -g -O -Bstage2/ -o cc1 c-parse.tab.o c-decl.o c-typeck.o c-convert.o toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o rtl.o expr.o stmt.o expmed.o explow.o optabs.o varasm.o symout.o dbxout.o sdbout.o emit-rtl.o insn-emit.o
integrate.o jump.o cse.o loop.o flow.o stupid.o combine.o regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o insn-peep.o final.o recog.o insn-recog.o insn-extract.o insn-output.o obstack.o
stage2/gcc -g -O -Bstage2/ -I./config -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc/gcc-include\" -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/gcc/g++-include\" -c cccp.c
cccp.c: In function macroexpand:
cccp.c:4114: warning: argument passing between incompatible pointer types
cccp.c: In function error:
cccp.c:4537: warning: argument passing between incompatible pointer types
cccp.c: In function warning:
cccp.c:4588: warning: argument passing between incompatible pointer types
cccp.c: In function error_with_line:
cccp.c:4608: warning: argument passing between incompatible pointer types
cccp.c: In function dump_all_macros:
cccp.c:4886: warning: return of integer from pointer lacks a cast
stage2/gcc -c -g -O -Bstage2/ -I./config cexp.c
cexp.y:222: warning: NULL redefined
stage2/gcc -g -O -Bstage2/ -o cccp cccp.o cexp.o version.o obstack.o
rm -f cpp
ln cccp cpp
herbie> foreach kkk (*.o)
? cmp $kkk stage2/$kkk
? end
herbie>
==============PART 3=============
herbie(bks):8 make bootstrap
mkdir libtemp
cd libtemp; rm -f gnulib; for name in _eprintf _builtin_new _builtin_New _builtin_del _umulsi3 _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 _lshrsi3 _lshlsi3 _ashrsi3 _ashlsi3 _cmpdi2 _ucmpdi2 _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 _cmpdf2 _fixunsdfsi
_fixunsdfdi _fixdfsi _fixdfdi _floatsidf _floatdidf _truncdfsf2 _extendsfdf2 _addsf3 _negsf2 _subsf3 _cmpsf2 _mulsf3 _divsf3 _varargs; do echo ${name}; rm -f ${name}.c; cp ../gnulib.c ${name}.c; cc -O -I.. -I../config -c -DL${name} ${name}.c; ar
qc gnulib ${name}.o; done
_eprintf
_builtin_new
_builtin_New
_builtin_del
_umulsi3
_mulsi3
_udivsi3
_divsi3
_umodsi3
_modsi3
_lshrsi3
_lshlsi3
_ashrsi3
_ashlsi3
_cmpdi2
_ucmpdi2
_divdf3
_muldf3
_negdf2
_adddf3
_subdf3
_cmpdf2
_fixunsdfsi
_fixunsdfdi
_fixdfsi
_fixdfdi
_floatsidf
_floatdidf
_truncdfsf2
_extendsfdf2
_addsf3
_negsf2
_subsf3
_cmpsf2
_mulsf3
_divsf3
_varargs
mv libtemp/gnulib .
rm -rf libtemp
if [ -f /usr/bin/ranlib ] ; then ranlib gnulib ;fi
cc -g -I./config -DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/gcc/\" -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc/gcc-\" -c gcc.c
cc -c -g -I./config version.c
cc -c -g -I./config obstack.c
cc -g -o gccnew gcc.o version.o obstack.o
mv gccnew gcc
bison -v c-parse.y
cc -c -g -I./config c-parse.tab.c
cc -c -g -I./config c-decl.c
cc -c -g -I./config c-typeck.c
cc -c -g -I./config c-convert.c
cc -c -g -I./config toplev.c
cc -c -g -I./config tree.c
varargs.h:24: warning: va_start redefined
varargs.h:33: warning: va_arg redefined
cc -c -g -I./config print-tree.c
cc -c -g -I./config stor-layout.c
cc -c -g -I./config fold-const.c
cc -c -g -I./config rtl.c
In function read_name:
rtl.c:1079: warning: assignment of integer from pointer lacks a cast
cc -c -g -I./config genflags.c
In function fatal:
genflags.c:79: warning: argument passing of pointer from integer lacks a cast
cc -g -o genflags genflags.o rtl.o obstack.o
./genflags md > tmp-insn-flags.h
./move-if-change tmp-insn-flags.h insn-flags.h
touch stamp-flags.h
cc -c -g -I./config gencodes.c
In function fatal:
gencodes.c:77: warning: argument passing of pointer from integer lacks a cast
cc -g -o gencodes gencodes.o rtl.o obstack.o
./gencodes md > tmp-insn-codes.h
./move-if-change tmp-insn-codes.h insn-codes.h
touch stamp-codes.h
cc -c -g -I./config genconfig.c
In function fatal:
genconfig.c:194: warning: argument passing of pointer from integer lacks a cast
cc -g -o genconfig genconfig.o rtl.o obstack.o
./genconfig md > tmp-insn-config.h
./move-if-change tmp-insn-config.h insn-config.h
touch stamp-config.h
cc -c -g -I./config expr.c
cc -c -g -I./config stmt.c
cc -c -g -I./config expmed.c
cc -c -g -I./config explow.c
cc -c -g -I./config optabs.c
cc -c -g -I./config varasm.c
cc -c -g -I./config symout.c
cc -c -g -I./config dbxout.c
cc -c -g -I./config sdbout.c
cc -c -g -I./config emit-rtl.c
varargs.h:24: warning: va_start redefined
varargs.h:33: warning: va_arg redefined
cc -c -g -I./config genemit.c
In function fatal:
genemit.c:392: warning: argument passing of pointer from integer lacks a cast
cc -g -o genemit genemit.o rtl.o obstack.o
./genemit md > tmp-insn-emit.c
./move-if-change tmp-insn-emit.c insn-emit.c
touch stamp-emit.c
cc -g -I./config -c insn-emit.c
cc -c -g -I./config integrate.c
cc -c -g -I./config jump.c
cc -c -g -I./config cse.c
cc -c -g -I./config loop.c
cc -c -g -I./config flow.c
cc -c -g -I./config stupid.c
cc -c -g -I./config combine.c
cc -c -g -I./config regclass.c
cc -c -g -I./config local-alloc.c
cc -c -g -I./config global-alloc.c
cc -c -g -I./config reload.c
cc -c -g -I./config reload1.c
cc -c -g -I./config caller-save.c
cc -c -g -I./config genpeep.c
In function fatal:
genpeep.c:337: warning: argument passing of pointer from integer lacks a cast
cc -g -o genpeep genpeep.o rtl.o obstack.o
./genpeep md > tmp-insn-peep.c
./move-if-change tmp-insn-peep.c insn-peep.c
touch stamp-peep.c
cc -g -I./config -c insn-peep.c
cc -c -g -I./config final.c
cc -c -g -I./config recog.c
cc -c -g -I./config genrecog.c
In function fatal:
genrecog.c:996: warning: argument passing of pointer from integer lacks a cast
cc -g -o genrecog genrecog.o rtl.o obstack.o
./genrecog md > tmp-insn-recog.c
./move-if-change tmp-insn-recog.c insn-recog.c
touch stamp-recog.c
cc -g -I./config -c insn-recog.c
cc -c -g -I./config genextract.c
In function fatal:
genextract.c:240: warning: argument passing of pointer from integer lacks a cast
cc -g -o genextract genextract.o rtl.o obstack.o
./genextract md > tmp-insn-extract.c
./move-if-change tmp-insn-extract.c insn-extract.c
touch stamp-extract.c
cc -g -I./config -c insn-extract.c
cc -c -g -I./config genoutput.c
In function fatal:
genoutput.c:699: warning: argument passing of pointer from integer lacks a cast
In function error:
genoutput.c:708: warning: argument passing of pointer from integer lacks a cast
cc -g -o genoutput genoutput.o rtl.o obstack.o
./genoutput md > tmp-insn-output.c
./move-if-change tmp-insn-output.c insn-output.c
touch stamp-output.c
cc -g -I./config -c insn-output.c
cc -g -o cc1 c-parse.tab.o c-decl.o c-typeck.o c-convert.o toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o rtl.o expr.o stmt.o expmed.o explow.o optabs.o varasm.o symout.o dbxout.o sdbout.o emit-rtl.o insn-emit.o integrate.o jump.o
cse.o loop.o flow.o stupid.o combine.o regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o insn-peep.o final.o recog.o insn-recog.o insn-extract.o insn-output.o obstack.o
cc -g -I./config -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc/gcc-include\" -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/gcc/g++-include\" -c cccp.c
In function macroexpand:
cccp.c:4114: warning: argument passing between incompatible pointer types
In function error:
cccp.c:4537: warning: argument passing between incompatible pointer types
In function warning:
cccp.c:4588: warning: argument passing between incompatible pointer types
In function error_with_line:
cccp.c:4608: warning: argument passing between incompatible pointer types
In function dump_all_macros:
cccp.c:4886: warning: return of integer from pointer lacks a cast
bison cexp.y
mv cexp.tab.c cexp.c
cc -c -g -I./config cexp.c
cexp.y:222: warning: NULL redefined
cc -g -o cccp cccp.o cexp.o version.o obstack.o
rm -f cpp
ln cccp cpp
make stage1
mkdir stage1
mv *.o insn-flags.h insn-config.h insn-codes.h insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c genemit genoutput genrecog genextract genflags gencodes genconfig genpeep cc1 cpp cccp gcc stage1
rm -f stage1/gnulib
ln gnulib stage1 || (cp gnulib stage1 && ranlib stage1/gnulib)
make CC="stage1/gcc -Bstage1/" CFLAGS="-O -g "
stage1/gcc -Bstage1/ -O -g -I./config -DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/gcc/\" -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc/gcc-\" -c gcc.c
/usr/local/lib/gcc/gcc-include/varargs.h:24: warning: va_start redefined
/usr/include/sys/types.h:124: redefinition of `size_t'
/usr/local/lib/gcc/gcc-include/stddef.h:10: here is the previous declaration of `size_t'
*** Exit 1
Stop.
*** Exit 1
Stop.