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]
Other format: [Raw text]

Re: Suggested warning: "./include/pch.h.gch: not used because -save-temps specified"



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


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