Article View: gnu.gcc.help
Article #52531GCC Pre-processor bug?
From: Mario O. Bourgoin
Date: Tue, 30 Jun 1992 15:38
Date: Tue, 30 Jun 1992 15:38
22 lines
1165 bytes
1165 bytes
I use the GCC pre-processor to abstract away from the details of a language implementation. In it, I need to reference a symbol with an array-like syntax, such as V2[2], which I abstract away from using a macro: dreg_x(V2, 2). This macro is defined as: #define dreg_x(dreg, index) dreg[index] When simply used, this generates what I want: dreg_x(V2, 2) == V2[2] but when used with a space after the first argument, it adds a space in the expansion: dreg_x(V2 , 2) == V2 [2] Is this OK for ANSI C or is it a bug? --Mario P.S. I have a workaround to this case. so you don't need to send me one.
Technical Details
Message-ID:
<MOB.92Jun30153833@strident.think.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!news!mobShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,bed18160bfd4ff7,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-06-30 06:13:08 PST Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!news!mob From: mob@strident.think.com (Mario O. Bourgoin) Newsgroups: gnu.gcc.help Subject: GCC Pre-processor bug? Date: 30 Jun 92 15:38:33 Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 23 Distribution: gnu Message-ID: <MOB.92Jun30153833@strident.think.com> NNTP-Posting-Host: strident.think.com