[PATCH] Fix -save-temps from clobbering input file@apple.com
Ira Ruben
ira@apple.com
Tue Oct 30 12:02:00 GMT 2001
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
More information about the Gcc-patches
mailing list