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

            Bug ID: 110120
           Summary: [14 regression] Failed bootstrap on
                    x86_64-pc-linux-gnu (locale_facets.tcc:588:7: internal
                    compiler error: RTL check: expected elt 0 type 'e' or
                    'u', have 'E' (rtx parallel) in reload_cse_move2add,
                    at postreload.cc:2030)
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 55257
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55257&action=edit
cxx11-wlocale-inst.ii.xz

Last week's snapshot was fine.

```
libtool: compile: 
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/./gcc/xgcc
-shared-libgcc
-B/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/./gcc
-nostdinc++
-L/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src
-L/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs
-L/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/libsupc++/.libs
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
-fno-checking -m32
-I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/gcc-14-20230604/libstdc++-v3/../libgcc
-I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include
-I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/gcc-14-20230604/libstdc++-v3/libsupc++
-std=gnu++11 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra
-Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -frandom-seed=cxx11-wlocale-inst.lo -g
-pipe -march=native -fdiagnostics-color=always -Wreturn-type -ggdb3 -O2
-D_GNU_SOURCE -m32 -fcf-protection -mshstk -c
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/gcc-14-20230604/libstdc++-v3/src/c++11/cxx11-wlocale-inst.cc
 -fPIC -DPIC -D_GLIBCXX_SHARED -o cxx11-wlocale-inst.o
during RTL pass: postreload
In file included from
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include/bits/locale_facets.h:2687,
                 from
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include/locale:42,
                 from
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/gcc-14-20230604/libstdc++-v3/src/c++11/locale-inst.cc:38,
                 from
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/gcc-14-20230604/libstdc++-v3/src/c++11/cxx11-wlocale-inst.cc:37:
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include/bits/locale_facets.tcc:
In member function ‘_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIt
er, _InIter, std::ios_base&, std::ios_base::iostate&, _ValueT&) const [with
_ValueT = long int; _CharT = wchar_t; _InIter =
std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >]’:
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include/bits/locale_facets.tcc:588:7:
internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'E'
(rtx parallel) in reload_cse_move2add, at postreload.cc:2030
  588 |       }
      |       ^
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.gentoo.org/> for instructions.
make[10]: *** [Makefile:668: cxx11-wlocale-inst.lo] Error 1
make[10]: Leaving directory
'/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/c++11'
```

I can reproduce with
'/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/./gcc/xgcc
-shared-libgcc
-B/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/./gcc
-nostdinc++
-L/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src
-L/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs
-L/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/libsupc++/.libs
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
-fno-checking -m32
-I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/gcc-14-20230604/libstdc++-v3/../libgcc
-I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/include
-I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/gcc-14-20230604/libstdc++-v3/libsupc++
-std=gnu++11 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra
-Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -frandom-seed=cxx11-wlocale-inst.lo -g
-pipe -march=native -fdiagnostics-color=always -Wreturn-type -ggdb3 -O2
-D_GNU_SOURCE -m32 -fcf-protection -mshstk -c
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20230604/work/gcc-14-20230604/libstdc++-v3/src/c++11/cxx11-wlocale-inst.cc
 -fPIC -DPIC -D_GLIBCXX_SHARED -c cxx11-wlocale-inst.ii' with the attached
preprocessed source.

Reply via email to