This is the mail archive of the gcc-bugs@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]

[Bug c/12663] New: cc1 crashes when no source file given


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).


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