This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix -save-temps from clobbering input file@apple.com
- To: Dale Johannesen <dalej at apple dot com>
- Subject: Re: [PATCH] Fix -save-temps from clobbering input file@apple.com
- From: Ira Ruben <ira at apple dot com>
- Date: Tue, 30 Oct 2001 12:03:02 -0800
- Cc: Dale Johannesen <dalej at apple dot com>, degger at fhm dot edu, gcc-patches at gcc dot gnu dot org
- References: <09C18115-CD6E-11D5-B6A4-003065C86F94@apple.com>
At 11:40 AM -0800 10/30/01, Dale Johannesen wrote:
>OTOH, I frequently run the compiler more than once with -S,
>and the behavior I expect, and get, is that the new .s file
>overwrites the previous one. The compiler cannot readily
>tell whether an existing .s file is a user file or left
>around from a previous run of the compiler.
All the patch does is check to see whether the *input filename* is
the same as the intermediate filename it wants to use only when
-save-temps is in effect. If it is, it generates the temp file it
would have generated if -save-temps was not in effect. No other
behavior is being affected. If the user compiles a foo.c with -S and
also has a foo.s then, yes, it is still going to be clobbered with
the new foo.s.
Ira