piet@cs.ruu.nl (Piet van Oostrum) (09/28/89)
I try to install gcc 1.36 on my HP9000/340 workstation. I use the HP cc compiler for the first compilation with CFLAGS=-g. I can't use the old gcc because we just switched to HPUX 6.5. The first make compiles and build OK but in stage1 the stage1/cc1 seems to come in a loop compiling stage1/gcc -c -O -Bstage1/ -I. -I. -I./config c-parse.tab.c I killed it after 2 hours. The standard cc compiler compiles it in 1 minute. Did anyone else have this problem, or has anyone been able to get gcc 1.36 through the complete installation? -- Piet van Oostrum, Dept of Computer Science, University of Utrecht Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. Telephone: +31-30-531806 Internet: piet@cs.ruu.nl Telefax: +31-30-513791 Uucp: uunet!mcvax!hp4nl!ruuinf!piet
montjoy@ucece1.ece.uc.edu (Robert C. Montjoy) (09/29/89)
Hi. I had the same problem compiling gcc on my 386. It was compilng this one module for 6-7 hours before I killed it. What I had to do was turn -O off and that took care of the problem. Once I got gcc going optimizing worked great. Rob Montjoy E-MAIL montjoy@uc.edu uunet!uccba!ucece1!montjoy
piet@cs.ruu.nl (Piet van Oostrum) (10/02/89)
In article <1620@ruuinf.cs.ruu.nl>, piet@cs (Piet van Oostrum) writes:
`I try to install gcc 1.36 on my HP9000/340 workstation. I use the HP cc
`
`I killed it after 2 hours. The standard cc compiler compiles it in 1
`minute.
`
The problem appears to be the use of alloca(). I used the emacs alloca.c
version. This causes considerable thrashing when compiling large programs
with -O. For example: c-parse.tab.c compiled in 7 hours rather that the
normal 1 minute.
Solution: forget the -O flag on the stage1/stage2 compilations.
I then do the compilation again with -O but starting with the just
generated gcc (I want to make sure that gcc compiles itself correctly with
-O, and I want to have an optimized compiler). Thanks all who responded.
--
Piet van Oostrum, Dept of Computer Science, University of Utrecht
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31-30-531806 Internet: piet@cs.ruu.nl
Telefax: +31-30-513791 Uucp: uunet!mcsun!hp4nl!ruuinf!piet