This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add target hook in C front end


Zack Weinberg wrote:-

> 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.

This requires linking against some target-specific object file, then?

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]