https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94468
Bug ID: 94468
Summary: ice in remove_useless_values, at cselib.c:735
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 48181
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48181&action=edit
gzipped C++ source code
For the attached gzipped C++ code, recent gcc trunk does this:
/home/dcb/gcc/results.20200331/bin/g++
/home/dcb/gcc/results.20200402/bin/g++
during RTL pass: postreload
/home/dcb30/rpmbuild/BUILD/desktop-2.6.4/src/gui/creds/shibboleth/shibbolethwebview.cpp:
In constructor ‘OCC::ShibbolethWebView::ShibbolethWebView(OCC::AccountPtr,
QWidget*)’:
/home/dcb30/rpmbuild/BUILD/desktop-2.6.4/src/gui/creds/shibboleth/shibbolethwebview.cpp:108:1:
internal compiler error: in remove_useless_values, at cselib.c:735
108 | }
| ^
0xa40c7b remove_useless_values()
../../trunk.git/gcc/cselib.c:735
0xa437d4 cselib_process_insn(rtx_insn*)
../../trunk.git/gcc/cselib.c:3018
0xe5fd1c reload_cse_regs_1()
../../trunk.git/gcc/postreload.c:220
0xe5ea99 reload_cse_regs(rtx_insn*)
../../trunk.git/gcc/postreload.c:65
The bug first seems to occur sometime between 20200331 and 20200402.
Compiler flags are -O2 -march=native -fPIC. Native is AMD FX-8350,
which has piledriver microarchitecture.
I'll have my usual go at reducing the code.