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

            Bug ID: 106130
           Summary: internal compiler error: Illegal instruction
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kalen.brunham at intel dot com
  Target Milestone: ---

Created attachment 53219
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53219&action=edit
Test case

Compiling test.c with:

/usr/intel/pkgs/gcc/11.1.0/bin/gcc -v -fvisibility=hidden
-fno-var-tracking-assignments -DHAVE_MODULE_DATE -DSIMICS_5_API -gdwarf-2 -Wall
-Wwrite-strings -std=gnu99 -fPIC -Wformat-security -O2 -D_FORTIFY_SOURCE=2 
-fcommon -c test.c -o test.o


Fails with:

Reading specs from
/nfs/site/itools/em64t_SLES12SP5/pkgs/gcc/11.1.0/.bin/../lib/gcc/x86_64-pc-linux-gnu/11.1.0/specs
COLLECT_GCC=/usr/intel/pkgs/gcc/11.1.0/.bin/gcc
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/usr/intel/pkgs/gcc/11.1.0
--enable-languages=c,c++,objc,fortran --enable-gold=yes --with-system-zlib
--disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.1.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-fvisibility=hidden' '-fno-var-tracking-assignments'
'-D' 'HAVE_MODULE_DATE' '-D' 'SIMICS_5_API' '-gdwarf-2' '-Wall'
'-Wwrite-strings' '-std=gnu99' '-fPIC' '-Wformat-security' '-O2' '-D'
'_FORTIFY_SOURCE=2' '-fcommon' '-c' '-o' 'test.o' '-mtune=generic'
'-march=x86-64'

/nfs/site/itools/em64t_SLES12SP5/pkgs/gcc/11.1.0/.bin/../libexec/gcc/x86_64-pc-linux-gnu/11.1.0/cc1
-quiet -v -iprefix
/nfs/site/itools/em64t_SLES12SP5/pkgs/gcc/11.1.0/.bin/../lib/gcc/x86_64-pc-linux-gnu/11.1.0/
-D HAVE_MODULE_DATE -D SIMICS_5_API -D _FORTIFY_SOURCE=2 test.c -quiet
-dumpbase test.c -dumpbase-ext .c -mtune=generic -march=x86-64 -gdwarf-2 -O2
-Wall -Wwrite-strings -Wformat-security -std=gnu99 -version -fvisibility=hidden
-fno-var-tracking-assignments -fPIC -fcommon -o /tmp/ccKi1d1X.s
GNU C99 (GCC) version 11.1.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 10.1.0, GMP version 6.1.2, MPFR version
4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/nfs/site/itools/em64t_SLES12SP5/pkgs/gcc/11.1.0/.bin/../lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/include"
ignoring duplicate directory
"/nfs/site/itools/em64t_SLES12SP5/pkgs/gcc/11.1.0/.bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/11.1.0/include"
ignoring duplicate directory
"/nfs/site/itools/em64t_SLES12SP5/pkgs/gcc/11.1.0/.bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed"
ignoring nonexistent directory
"/nfs/site/itools/em64t_SLES12SP5/pkgs/gcc/11.1.0/.bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/nfs/site/itools/em64t_SLES12SP5/pkgs/gcc/11.1.0/.bin/../lib/gcc/x86_64-pc-linux-gnu/11.1.0/include

/nfs/site/itools/em64t_SLES12SP5/pkgs/gcc/11.1.0/.bin/../lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed
 /usr/local/include
 /nfs/site/itools/em64t_SLES12SP5/pkgs/gcc/11.1.0/.bin/../lib/gcc/../../include
 /usr/include
End of search list.
GNU C99 (GCC) version 11.1.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 10.1.0, GMP version 6.1.2, MPFR version
4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 8358ad49fce44be475210251587261da
test.c: In function ‘bigtime_as_sec’:
test.c:89:9: internal compiler error: Illegal instruction
   89 |         return int128_to_double(t.val) / 1e12;
      |         ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

Sweeping across GCC versions I see:
11.2.0 : fail
11.1.0 : fail
10.3.0 : Pass
10.1.0 : Pass
9.2.0 : Pass
9.1.0 : Pass
8.3.0 : Fail
8.2.0 : Pass
7.2.0 : Pass
6.5.0 : Pass

This failure only reproduces on certain machine types even when using the same
OS image and same GCC.
  • [Bug c/106130] New: internal c... kalen.brunham at intel dot com via Gcc-bugs

Reply via email to