This is the mail archive of the gcc@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]
Other format: [Raw text]

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



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