Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!rutgers!tut.cis.ohio-state.edu!CISCO.COM!shaker From: shaker@CISCO.COM Newsgroups: gnu.gcc Subject: Gcc 1.34 Now Happy on 6.2 HP-UX Message-ID: <8904252259.AA22318@life.ai.mit.edu> Date: 25 Apr 89 23:01:23 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 60 Gcc 1.34 is now happily running on our HP9000 Series 350 running 6.2 HP-UX. Many thanks to David D "Zoo" Zuhn" , who pointed out that: Ignore the enumeration type clash warnings: They're just a result of some strange coding on RMS's part. Don't use -g as an option when compiling under HP-UX. That inserts Berkeley dbx style debugging information that is not supported under hp-ux. Just use CFLAGS="-O -Bstage1/" in the first recompilation with gcc. Next, there's a modifer to the tm.h file that should be made if you are using the HP as & ld. As our 9000 is down at the moment, I can't give it to you now, but if you want it, let me know in a few days. If this patch is not made, then problems with /tmp/xxxx.s files will manifest. Most of the weird problems I was encountering while trying to compile gcc-1.34 on HP-UX 6.2 were due to my flirting with danger by attempting to use the HP supplied alloca.o in /lib/libPW.a, which still does not work for gcc. Once I did what the Makefile suggested, copying the alloca.c from the GNU 18.53 distribution, the wierd errors in the GNU cpp dissapeared. David's diff for tm-hp9k320.h and my Makefile diffs follow: ---------------------------- 51a52 > #define ASM_IDENTIFY_GCC(FILE) -------------------------------- 21c21 < CFLAGS = -g --- > # CFLAGS = -g 30c30 < INSTALL = install -c --- > INSTALL = cp 42c42 < # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700 -Wc,-Np300 --- > CFLAGS = -Wc,-Ns2000 -Wc,-Ne700 -Wc,-Np300 48c48 < # CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700 --- > CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700 56c56 < # ALLOCA = alloca.o --- > ALLOCA = alloca.o 426c426 < #-rm -f cplus-parse.tab.c cplus-parse.output --- > -rm -f cplus-parse.tab.c cplus-parse.output ---------------- Chris Shaker shaker@cisco.com