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


On 31 Oct, Ira Ruben wrote:

> 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.

I'm starting to feel utterly stupid now. I argued against a problem I
misunderstood, sorry. Indeed the compiler should never overwrite the
input it works on. 

--
Servus,
       Daniel


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