This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix gcc -xc -
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Nov 2001 22:33:54 +0000
- Subject: Re: [PATCH] Fix gcc -xc -
- References: <20011129232716.P572@sunsite.ms.mff.cuni.cz>
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.