Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!urbsdc!aglew From: aglew@urbsdc.Urbana.Gould.COM Newsgroups: comp.emacs Subject: Re: request for help Message-ID: <57600013@urbsdc> Date: 28 Apr 88 15:03:00 GMT Lines: 34 Nf-ID: #R:<8804251727.AA25831@EDDIE.MIT.ED:-34:urbsdc:57600013:000:1433 Nf-From: urbsdc.Urbana.Gould.COM!aglew Apr 28 10:03:00 1988 /* Written 10:02 am Apr 28, 1988 by aglew@urbsdc.Urbana.Gould.COM in urbsdc:comp.sys.att */ /* ---------- "GCC 1.20 on 3B1" ---------- */ Thanks be to the folks who ported GCC 1.18 to the 3B1; can anyone help me with the trivial problems I'm having with 1.20? GCC 1.20 would not compile, because the large number of #defines overflowed AT&T's cpp. So, I compiled GCC's CPP, by ifdeffing out a lot of unecessary headers, and used it to compile (had to null out the __STDC__ test in the binary, so that function prototypes were not compiled in when using GCC's cpp with AT&T's cc.) Am using tm-3b1.h -> tm.h, conf-hp9k320.h -> config.h (just to get the bcopy's, etc.) and m68k-md -> md (I may have got the names slightly wrong, but no problem). Had to define SGS_3B1 when compiling this way. Corrected a typo in tm-3b1.h -- the "short 0" after "swbeg" was missing a newline. Current problem is also with swbeg switch related code -- without SHS_3B1 it emits .set LI114,.+2, which is illegal -- the 3B! uses ~ instead of . for current location, but I haven't been able to get that to work. With SGS_3B1 LI114 is emmitted explicitly, but the expression L114-LI114 is evaluated on a (%pc,%dn) addressing mode, which the assembler cries about. Before I go any further, have I made a wrong turn somewhere in setting up the environment for compiling GCC 1.20 on a 3B1? aglew@gould.com /* End of text from urbsdc:comp.sys.att */