bug report : -save-temps and stdin

Georg-Johann Lay gjl@gcc.gnu.org
Mon Oct 29 20:57:00 GMT 2012


Richard Biener schrieb:
> Joseph S. Myers wrote:
>> I think the fix should be to give an early error message for compiling
>> from stdin with -save-temps, and then stop the compilation because there's
>> nowhere to save the intermediate files (given the lack of an input file
>> name).
> 
> Alternatively, inform the user that -save-temps is ignored and continue ...

The question is why the driver generates -.i in the first place even 
though it knows the compiler proper will reject it.

Some tools allow --file -.i.

It works even without a new option if the driver emit ./-.i instead of 
-.i in such a case.  This will be recognized as a file name and not as 
command option.

Johann




More information about the Gcc mailing list