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: Tue, 30 Oct 2001 00:12:38 +0100 (CET)
- Cc: gcc-patches at gcc dot gnu dot org
- Reply-To: degger at fhm dot edu
On 29 Oct, Ira Ruben wrote:
> There is the possibility that the user's input file can be clobbered
> by the compiler's intermediate files when -save-temps is used.
> For example gcc -save-temps foo.s will cause the preprocessed
> output of foo.s to overwrite foo.s. This patch corrects that
> by checking for such cases and using a temp file instead.
Just my $.02, but why do you have .s files not meant to be overwritten
in you dirs? I'm using -save-temps regurlary and I learnt quickly not
to use the .s but .S as suffix for self-written or enriched assembly
code to distinguish them.
--
Servus,
Daniel