This is the mail archive of the gcc@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]

Re: PCH [Was: Re: Target FUNCTION_{PRO,EPI}LOGUE question]


Geoff Keating wrote:-

> If there is a macro for which:
> 
> - It is defined differently when building the PCH and using it; _or_
> - A macro is defined when using the PCH that would have been used
>   in the PCH, but was not defined when building the PCH,
> 
> then the .pch file is not used.  This includes macros defined by default,
> which catches a number of command-line switches (like -fsigned-char).
> 
> Command-line switches are presently not treated this way.  The user
> must be careful not to do anything which would cause trouble, which is
> most easily done by always using the same switches.  The reason
> they're not treated this way is that _some_ of them are known to be
> safe, and in fact it seems possible that the majority of them are safe,
> but it's hard to work out which ones, so this was left for future design.
> If any particular switch is causing problems, there are hooks left in
> to allow it to disable use of the .pch.

I look forward to seeing it.  When do you think you'll be ready?  In
time for 3.1?

Neil.


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