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

            Bug ID: 78691
           Summary: ICE compiling Linux PPC boot code
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: g...@d-silva.org
  Target Milestone: ---

Created attachment 40261
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40261&action=edit
minimal testcase to reproduce the ICE

When building the Linux kernel targeting ppc64, using the latest development
branch of GCC, we get the following ICE:

/var/lib/jenkins/workspace/r-RWR32HYWO3ZTAR3XC4UADJ4YQDQRVLEPEAHCW7LD3RYUCNDKDJ2Q/COMPILER/gcc-master/PLATFORM/ppc64/cctarget/bin/powerpc64-unknown-linux-gnu-cc
-m32 -Os -c testcase.i
testcase.i: In function 'fn1':
testcase.i:2:5: internal compiler error: tree check: expected integer_type or
enumeral_type or boolean_type or real_type or fixed_point_type, have
pointer_type in int_fits_type_p, at tree.c:9152
 int fn1() {
     ^~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


The testcase is attached, and was generated using creduce against
linux/arch/powerpc/boot/stdio.c


Version info
gcc -v:
Using built-in specs.
COLLECT_GCC=/var/lib/jenkins/workspace/r-RWR32HYWO3ZTAR3XC4UADJ4YQDQRVLEPEAHCW7LD3RYUCNDKDJ2Q/COMPILER/gcc-master/PLATFORM/ppc64/cctarget/bin/powerpc64-unknown-linux-gnu-cc
COLLECT_LTO_WRAPPER=/var/lib/jenkins/workspace/r-RWR32HYWO3ZTAR3XC4UADJ4YQDQRVLEPEAHCW7LD3RYUCNDKDJ2Q/COMPILER/gcc-master/PLATFORM/ppc64/cctarget/bin/../libexec/gcc/powerpc64-unknown-linux-gnu/7.0.0/lto-wrapper
Target: powerpc64-unknown-linux-gnu
Configured with: /workspace/.build/src/gcc-git/configure
--build=powerpc64le-build_unknown-linux-gnu
--host=powerpc64le-build_unknown-linux-gnu --target=powerpc64-unknown-linux-gnu
--prefix=/workspace/x-tools
--with-sysroot=/workspace/x-tools/powerpc64-unknown-linux-gnu/sysroot
--enable-languages=c,c++ --with-pkgversion='crosstool-NG
crosstool-ng-1.22.0-201-g11cb2dd' --enable-__cxa_atexit --enable-libmudflap
--disable-libgomp --disable-libssp --disable-libquadmath
--disable-libquadmath-support --enable-libsanitizer
--with-gmp=/workspace/.build/powerpc64-unknown-linux-gnu/buildtools
--with-mpfr=/workspace/.build/powerpc64-unknown-linux-gnu/buildtools
--with-mpc=/workspace/.build/powerpc64-unknown-linux-gnu/buildtools
--with-isl=/workspace/.build/powerpc64-unknown-linux-gnu/buildtools
--enable-lto --with-host-libstdcxx='-static-libgcc
-Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --enable-threads=posix
--enable-target-optspace --enable-plugin --disable-nls --disable-multilib
--with-local-prefix=/workspace/x-tools/powerpc64-unknown-linux-gnu/sysroot
--enable-long-long --disable-multilib
Thread model: posix
gcc version 7.0.0 20161205 (experimental) (crosstool-NG
crosstool-ng-1.22.0-201-g11cb2dd) 

Git revision: c46915880dca927bcbc2371336acee8110009143

Reply via email to