This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: macros with traditional cpp
- To: Philip Blundell <philb at gnu dot org>
- Subject: Re: macros with traditional cpp
- From: Richard Henderson <rth at cygnus dot com>
- Date: Sun, 24 Sep 2000 13:57:34 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <E13dHl8-0005rl-00@kings-cross.london.uk.eu.org>
On Sun, Sep 24, 2000 at 08:48:20PM +0100, Philip Blundell wrote:
> The preprocessor used to accept code like this both with and without
> -traditional:
>
> #define foo(x...) x
> foo(one,two)
It did? I could have sworn I'd always had problems with that.
Oh, wait, I had problems with
#define foo(x,y...) x , ## y
> Is this intentional?
It was probably not intentional that macro varargs ever worked
with -tradition, given that my test case failed.
My advice is to not use -traditional with your assembly.
r~