This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

`make bootstrap` generates all languages in stage2 gcc compile


In generating stage1 binaries, egcs only compiles code for LANGUAGES=C.
In generating stage2 binaries, egcs compiles code for all languages.
In generating stage3 binaries, egcs compiles code for all languages... again.

I would argue that stage2 should only generate code for LANGUAGES=c.

This can be fixed by changing line 2607 of gcc/Makefile.in to use
$(BOOT_LANGUAGES) instead of just $(LANGUAGES) .

in unidiff format...

Index: Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.69
diff -u -r1.69 Makefile.in
--- Makefile.in 1998/02/19 19:12:33     1.69
+++ Makefile.in 1998/03/20 21:06:35
@@ -2604,7 +2604,7 @@
 # To prevent `make install' from compiling alloca.o and then relinking cc1
 # because alloca.o is newer, we permit these recursive makes to compile
 # alloca.o.  Then cc1 is newer, so it won't have to be relinked.
-       $(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(WARN_CFLAGS) $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage1/ LANGUAGES="$(LANGUAGES)"
+       $(MAKE) CC="stage1/xgcc -Bstage1/" CFLAGS="$(WARN_CFLAGS) $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage1/ LANGUAGES="$(BOOT_LANGUAGES)"
        $(MAKE) stage2
        -if test $@ = bootstrap-lean; then rm -rf stage1; else true; fi
        $(MAKE) CC="stage2/xgcc -Bstage2/" CFLAGS="$(WARN_CFLAGS) $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" libdir=$(libdir) STAGE_PREFIX=stage2/ LANGUAGES="$(LANGUAGES)"



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]