This is the mail archive of the gcc-patches@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: [PATCH] Fix gcc -xc -


Jakub Jelinek wrote:-

> 2001-11-15 changes to c-lex.c broke handling of input filename -
> gcc -o /tmp/foo -xc -
> cc1: -: No such file or directory
> 
> which e.g. breaks imake.
> Was the removal of !strcmp(filename,"-") check intentional (in which case
> which code should handle it) or not?

It was intentional but it was a mistake.  I wrongly thought that CPP
translated "-" to stdin, but that happens earlier.  Sorry.  Integrated
CPP file handling is still not quite clean and should be worked on a
bit more, but the initialization code as a whole is a vast improvement
IMO.

> The following patch just adds the compare where it used to be.
> Ok to commit?

Yes, thanks.  Do you have a clue about how to add a test case for
this?  That would be useful, since this has broken on more than one
occasion now.

Neil.


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