http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51291

             Bug #: 51291
           Summary: ICE: SIGSEGV in ix86_init_builtins (i386.c:27691) with
                    any fortran code
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz
                CC: amacl...@redhat.com
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


It seems any fotran code triggers this segfault:

Compiler output:
$ echo '' > testcase.f
$ gfortran testcase.f -fgnu-tm
f951: warning: 'transaction_pure' attribute directive ignored [-Wattributes]
==3935== Invalid read of size 2
==3935==    at 0xC88CCF: ix86_init_builtins() (i386.c:27691)
==3935==    by 0x6268F7: gfc_init_builtin_functions() (f95-lang.c:1136)
==3935==    by 0x627C68: gfc_be_parse_file() (f95-lang.c:231)
==3935==    by 0xA56547: toplev_main(int, char**) (toplev.c:565)
==3935==    by 0x674ED2C: (below main) (in /lib64/libc-2.12.2.so)
==3935==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3935== 
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The warning is likely invalid.

Tested revisions:
r181678 - crash

Reply via email to