This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix -save-temps from clobbering input file@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


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