[Bug ipa/94001] New: [10 Regression] ICE: in fold_convert_loc, at fold-const.c:2435 at -O2

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Mon Mar 2 11:48:00 GMT 2020


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

            Bug ID: 94001
           Summary: [10 Regression] ICE: in fold_convert_loc, at
                    fold-const.c:2435 at -O2
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: {riscv64,sparc64,powerpc64,aarch64}-unknown-linux-gnu

Created attachment 47945
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47945&action=edit
reduced testcase

This affects several targets, but I failed to reproduce this on x86_64.

Compiler output:
$ riscv64-unknown-linux-gnu-gcc -O2 testcase.c
during GIMPLE pass: tailr
testcase.c: In function 'bar.isra':
testcase.c:4:1: internal compiler error: in fold_convert_loc, at
fold-const.c:2435
    4 | bar (unsigned char e)
      | ^~~
0x631c58 fold_convert_loc(unsigned int, tree_node*, tree_node*)
        /repo/gcc-trunk/gcc/fold-const.c:2435
0x10e6d1c update_accumulator_with_ops
        /repo/gcc-trunk/gcc/tree-tailcall.c:832
0x10e9261 adjust_accumulator_values
        /repo/gcc-trunk/gcc/tree-tailcall.c:877
0x10e9261 eliminate_tail_call
        /repo/gcc-trunk/gcc/tree-tailcall.c:1018
0x10e9261 optimize_tail_call
        /repo/gcc-trunk/gcc/tree-tailcall.c:1041
0x10e9261 tree_optimize_tail_calls_1
        /repo/gcc-trunk/gcc/tree-tailcall.c:1178
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ riscv64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-riscv64/bin/riscv64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20200301175845-g649e174102a-checking-yes-rtl-df-extra-riscv64/bin/../libexec/gcc/riscv64-unknown-linux-gnu/10.0.1/lto-wrapper
Target: riscv64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl
--with-sysroot=/usr/riscv64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=riscv64-unknown-linux-gnu
--with-ld=/usr/bin/riscv64-unknown-linux-gnu-ld
--with-as=/usr/bin/riscv64-unknown-linux-gnu-as --disable-multilib
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20200301175845-g649e174102a-checking-yes-rtl-df-extra-riscv64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.1 20200302 (experimental) (GCC)


More information about the Gcc-bugs mailing list