This is the mail archive of the
mailing list for the GCC project.
Re: bug report : -save-temps and stdin
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
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