Article View: gnu.gcc.help
Article #51960Re: Building gcc 2.3.1: opcode "a b,c" error
From: Bruce Momjian
Date: Mon, 01 Mar 1993 15:34
Date: Mon, 01 Mar 1993 15:34
31 lines
2162 bytes
2162 bytes
SOLVED: I failed to mention in my description that I had to use the GNU preprocessor with my native compiler because my cpp couldn't handle the number of define's required. This is possible because cpp is compiled first and does not have too many define's. This is the recommended installation method for the 3b1 as well. The problem occurs in insn-output.c, where the macro AS1() is called. The file ./config/unx386.h conditionally defines AS1() based on whether evaluation of parameters in quotes is done, and this done by checking __STDC__. Unfortunately, to compile gcc, I have to undefine __STDC__, because there are other parts of the code which test __STDC__ for code that gets to the compiler, like prototypes in rtl.h. So the problem is neither gcc or cc but the necessary interaction between GNU cpp and native cc. I will leave it to the author to determine how to best solve this problem in the next release. There may be other areas like this where a correction may be needed. BTW, I suspected that macro substitution could be the problem, and looked for a define with an a,b, and c in the main directory. I never checked the config directory or I would have found this long ago. -- Bruce Momjian | 830 Blythe Avenue root%candle.uucp@bts.com | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (215) 353-9879(w) + Christ can be your backup. | (215) 853-3000(h)
Technical Details
Message-ID:
<1993Mar1.153410.22812@candle.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!bogus.sura.net!udel!gvls1!jabber!candle!rootReferences:
<9302271933.AA12723@mole.gnu.ai.mit.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b5acfd7ef7a21250 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-03-01 17:54:49 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!bogus.sura.net!udel!gvls1!jabber!candle!root From: root@candle.uucp (Bruce Momjian) Subject: Re: Building gcc 2.3.1: opcode "a b,c" error Cc: rms@snu.ai.mit.edu Organization: a consultant's basement Distribution: gnu Date: Mon, 1 Mar 1993 15:34:10 GMT Message-ID: <1993Mar1.153410.22812@candle.uucp> X-Newsreader: TIN [version 1.1 PL6] References: <9302271933.AA12723@mole.gnu.ai.mit.edu> Lines: 31