[Bug c/87065] New: ice in trunc_int_for_mode

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Aug 22 20:42:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87065

            Bug ID: 87065
           Summary: ice in trunc_int_for_mode
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 44575
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44575&action=edit
C source code

The attached C code, when compiled by flags -c -w -O3 -march=native,
does this:

destDir/testFile.5246.c: In function ‘func_12’:
destDir/testFile.5246.c:1626:1: internal compiler error: in trunc_int_for_mode, 
at explow.c:59
0x5baff7 trunc_int_for_mode(long, machine_mode)
        ../../trunk/gcc/explow.c:59
0x103a468 trunc_int_for_mode(poly_int<1u, long>, machine_mode)
        ../../trunk/gcc/explow.c:87
0xfd6258 gen_int_mode(poly_int<1u, long>, machine_mode)
        ../../trunk/gcc/emit-rtl.c:532
0x1fcc72b neg_const_int
        ../../trunk/gcc/simplify-rtx.c:69

/proc/cpuinfo says

model name      : AMD FX(tm)-8350 Eight-Core Processor

I'll have my usual go at reducing the code and finding a range
of revisions where it went wrong.


More information about the Gcc-bugs mailing list