This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12663] New: cc1 crashes when no source file given
- From: "segher at kernel dot crashing dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Oct 2003 18:49:57 -0000
- Subject: [Bug c/12663] New: cc1 crashes when no source file given
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12663
Summary: cc1 crashes when no source file given
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: segher at kernel dot crashing dot org
CC: gcc-bugs at gcc dot gnu dot org,segher at kernel dot
crashing dot org
GCC build triplet: i686-unknown-linux-gnu
GCC host triplet: i686-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu
$ ./cc1
cc1: internal compiler error: Segmentation fault
...
It crashes in the following code in toplev.c:
1406 void
1407 output_file_directive (FILE *asm_file, const char *input_name)
1408 {
1409 int len = strlen (input_name);
(input_name == 0. Whoops).