cc1 of nonexistent file still segfaults

Jim Wilson wilson@specifixinc.com
Wed Apr 14 11:18:00 GMT 2004


Daniel Berlin wrote:
> Daniel-Berlins-Computer:~/gcc/build/gcc dberlin$ ./cc1 -O1 nonexistent.c
> cc1: nonexistent.c: No such file or directory
> cc1: internal compiler error: Bus error

I noticed this was still broken, so I wrote a patch for it, and checked 
it in.  The solution that seems right to me is the same one that Per 
suggested, namely, changing c_common_post_options to set errorcount when 
the input file is missing.

I tested this patch with an x86 linux bootstrap and make check.  There 
were no regressions.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.no-input-file
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040414/56d53fa2/attachment.ksh>


More information about the Gcc mailing list