[Bug rtl-optimization/97275] Linux kernel cgroup.c internal compiler error (ICE).

2020-10-04 Thread dr.duncan.p.simpson at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97275

--- Comment #1 from Duncan Simpson  ---
Further information: if I use the same compiler version but a x86_64-linux-gnu
version then I get a message from the assembler telling me than the strlr
instruction is not supported but no ICE.

[Bug rtl-optimization/97275] New: Linux kernel cgroup.c internal compiler error (ICE).

2020-10-02 Thread dr.duncan.p.simpson at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97275

Bug ID: 97275
   Summary: Linux kernel cgroup.c internal compiler error (ICE).
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dr.duncan.p.simpson at gmail dot com
  Target Milestone: ---
  Host: amd64-linux-gnu
Target: aarch64-linux-gnu
 Build: 11.0.0 20201002

Created attachment 49303
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49303=edit
cgroup.c reduced to compiler ICE generator

The attached file is a reduced version, which tickles the bug for me. Note that
not using -fno-strict-overflow or most other minor changes eliminate the ICE.

In the original version of cgroup.c many of the things which are compile time
constants in my version are values the compiler might not be able to reason
about.

dps@dps-laptop:~/src/kernel/foo$ aarch64-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=aarch64-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/aarch64-linux-gnu/11.0.0/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../gcc/configure --enable-shared --enable-lto
--enable-languages=all --target=aarch64-linux-gnu
--program-prefix=aarch64-linux-gnu- --with-sysroot=/ --enable-host-shared
--enable-host-lto --with-as=/usr/aarch64-linux-gnu/bin/as
--with-ld=/usr/aarch64-linux-gnu/bin/ld --with-ar=/usr/aarch64-linux-gnu/bin/ar
--with-ranlib=/usr/aarch64-linux-gnu/bin/ranlib : (reconfigured)
../gcc/configure --enable-shared --enable-lto --enable-languages=all
--target=aarch64-linux-gnu --program-prefix=aarch64-linux-gnu- --with-sysroot=/
--enable-host-shared --enable-host-lto --with-as=/usr/aarch64-linux-gnu/bin/as
--with-ld=/usr/aarch64-linux-gnu/bin/ld --with-ar=/usr/aarch64-linux-gnu/bin/ar
--with-ranlib=/usr/aarch64-linux-gnu/bin/ranlib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20201002 (experimental) (GCC)