This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PCH [Was: Re: Target FUNCTION_{PRO,EPI}LOGUE question]
- To: Geoff Keating <geoffk at geoffk dot org>
- Subject: Re: PCH [Was: Re: Target FUNCTION_{PRO,EPI}LOGUE question]
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Mon, 2 Jul 2001 07:46:57 +0100
- Cc: gcc at gcc dot gnu dot org
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.