This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Suggested warning: "./include/pch.h.gch: not used because -save-temps specified"
- From: Devang Patel <dpatel at apple dot com>
- To: Carlo Wood <carlo at alinoe dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 6 Oct 2003 11:39:33 -0700
- Subject: Re: Suggested warning: "./include/pch.h.gch: not used because -save-temps specified"
- References: <20031006133102.GA31162@alinoe.com>
On Oct 6, 2003, at 6:31 AM, Carlo Wood wrote:
It would be less confusing that when -Winvalid-pch and -save-temps
are used together, a warning simular to the one for -pipe is given.
Any opinions?
When -save-temps is used, compiler (cc1*) is invoked twice.
First time, to generate preprocessed file and second time
to compile the preprocessed file. When compiler is invoked
to just preprocess file (means flag_preprocess_only), cpplib
call backs for PCH are not initialized. So it does not even
try to use PCH, hence no warning even though -Winvalid-pch is
supplied.
--
Devang