This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Add target hook in C front end
On Tue, Dec 18, 2001 at 11:18:31PM +0000, Neil Booth wrote:
> > You'd have __SIZE_TYPE__ passed through to the .i file, and cc1
> > wouldn't do anything with it either since macro expansion is off
> > with -fpreprocessed.
> I missed how your suggestion helped stand-alone cpp - it seemed
> targeted at integrated cc1. Could you elaborate a tad? Sorry if I
> missed it - as you might have guessed from my reply I lost your
> original mail and had to cut/paste from the gcc-patches on-line MLA.
Well, what I forgot to mention in the original letter is that the hook
gets used by the stand-alone cpp as well as the integrated one.
Therefore __SIZE_TYPE__ gets defined correctly in both modes. It's a
separate hook precisely so that this can be done - otherwise, one
would just call cpp_define from override_options and be done with it.