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


On Sun, Oct 28, 2012 at 6:40 PM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> On Sun, 28 Oct 2012, Mike  Dupont wrote:
>
>> is this known? should I report a bug? any ideas on fixing it, I might
>> be able to do so, it should be simple.
>
> 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 ...
(I can see people annoyed by foreign Makefiles and tying to get at preprocessed
source with CFLAGS="... -save-temps")

Richard.

> --
> Joseph S. Myers
> joseph@codesourcery.com


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