This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add target hook in C front end
Richard Henderson wrote:-
> On Mon, Dec 17, 2001 at 09:33:08PM +0000, Neil Booth wrote:
> > Would it not also leave unreplaced all __SIZE_TYPE__ "macros" if
> > passed through cpp?
>
> Of course. Look, Eric's patch is equivalent to
>
> #define __SIZE_TYPE__ __SIZE_TYPE__
> typedef unsigned {int|long} __SIZE_TYPE__;
>
> where the decision of int|long depends on an astonishing
> number of command line options.
Am I right in thinking then, that stuff like
long __SIZE_TYPE__ s;
will now give a parse error? (OK I'm stretching this example a bit,
but in general typedefs are not good for text replacement,
particularly with consts and pointers etc.)
Neil.