[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#324908: gcc: Wrong code generation on amd64.



Package: gcc
Version: 4.0.1-6
Severity: important

Hi,

When building the filtergen package on amd64, it's dumping core
during one of the tests.  I've attached a file that will generate
the same core.  I've tried to reduce the file but wasn't very
succesful in it.

I've tested this with gcc-3.3, and it works with it, gcc-3.4
and gcc-4.0 dump core.  It happens when using -O2 and -Os, it
doesn't with -O1 or -O0

To run the program to make it core you have to run it with:
./scan < test.file

Where test.file is of the type:
include test.file

The program should when it's working properly generate the
following error:
test.file:1: warning: too many nested includes
test.file:1: warning: skipping include of file test.file

Instead it segfaults in the vfprintf() call.


Kurt


Attachment: scan.i.gz
Description: application/gunzip


Reply to: