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: ira at apple dot com
- Subject: Re: [PATCH] Fix -save-temps from clobbering input file@apple.com
- From: degger at fhm dot edu
- Date: Wed, 31 Oct 2001 23:46:47 +0100 (CET)
- Cc: gcc-patches at gcc dot gnu dot org
- Reply-To: degger at fhm dot edu
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