This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor: % as args to #defines
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>
- Cc: GCC List <gcc at gcc dot gnu dot org>
- Date: Thu, 29 Jan 2004 09:41:59 -0800
- Subject: Re: preprocessor: % as args to #defines
- References: <1075376998.3801.20866.camel@mccallum.corsepiu.faw.uni-ulm.de>
Ralf Corsepius <corsepiu@faw.uni-ulm.de> writes:
> * How to re-write these macros into ansi-compliant form (I've tried to,
> but no success until now)
Try this:
#define RP() __REGISTER_PREFIX__
#define REG(x) RP()x
> * Why does gcc-3.3.x issue errors instead of warnings like gcc-3.2.x
> did?
People have had long enough to fix their code.
> * Why does gcc-3.3.x behave differently on *.c and *.S file types?
.S files get special dispensation, because assembly syntax is not the
same as C syntax.
zw