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

            Bug ID: 104241
           Summary: [12 Regression] trunk 20220126 RTL error on
                    powerpc64-linux-gnu
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at debian dot org
  Target Milestone: ---

seen with trunk 20220126 on powerpc64-linux-gnu (but not powerpc64le) building
libgfortran:

during RTL pass: expand
In file included from ../../../src/libgfortran/runtime/fpu.c:29:
./fpu-target.h: In function 'set_fpu_except_flags':
./fpu-target.h:267:3: internal compiler error: RTL check: expected code
'const_int', have 'reg' in gen_feclearexceptsi, at config/rs6000/rs6000.md:6970
  267 |   feclearexcept (exc_clr);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
0x1183d16f gen_feclearexceptsi(rtx_def*, rtx_def*)
        ../../src/gcc/config/rs6000/rs6000.md:6970
0x1041cc8f rtx_insn* insn_gen_fn::operator()<rtx_def*, rtx_def*>(rtx_def*,
rtx_def*) const
        ../../src/gcc/recog.h:407
0x1041cc8f expand_builtin_feclear_feraise_except
        ../../src/gcc/builtins.cc:2606
0x10441a83 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        ../../src/gcc/builtins.cc:7122
0x10672353 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../src/gcc/expr.cc:11536
0x1047fe57 expand_expr
        ../../src/gcc/expr.h:301
0x1047fe57 expand_call_stmt
        ../../src/gcc/cfgexpand.cc:2831
0x1047fe57 expand_gimple_stmt_1
        ../../src/gcc/cfgexpand.cc:3864
0x1047fe57 expand_gimple_stmt
        ../../src/gcc/cfgexpand.cc:4028
0x10488ddb expand_gimple_basic_block
        ../../src/gcc/cfgexpand.cc:6069
0x1048b587 execute
        ../../src/gcc/cfgexpand.cc:6795
mv -f .deps/stop.Tpo .deps/stop.Plo
Please submit a full bug report,
with preprocessed source if appropriate.


configured:

Configured with: -v
         --with-pkgversion='Debian 20220126-1'
         --with-bugurl='file:///usr/share/doc/gcc-snapshot/README.Bugs'
         --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++
         --prefix=/usr/lib/gcc-snapshot
         --with-gcc-major-version-only
         --program-prefix=
         --enable-shared
         --enable-linker-build-id
         --disable-nls
         --enable-clocale=gnu
         --enable-libstdcxx-debug
         --enable-libstdcxx-time=yes
         --with-default-libstdcxx-abi=new
         --enable-gnu-unique-object
         --disable-libquadmath
         --disable-libquadmath-support
         --enable-plugin
         --with-system-zlib
         --enable-libphobos-checking=release
         --with-target-system-zlib=auto
         --with-libphobos-druntime-only=yes
         --enable-objc-gc=auto
         --enable-secureplt
         --disable-softfloat
         --enable-targets=powerpc64-linux,powerpc-linux
         --enable-multiarch
         --disable-werror
         --with-long-double-128
         --enable-multilib
         --enable-checking=yes,extra,rtl
         --build=powerpc64-linux-gnu
         --host=powerpc64-linux-gnu
         --target=powerpc64-linux-gnu

Reply via email to