Description of Problem: g++ crashes at -fPIC -O2 when compiling this file. Version-Release number of selected component (if applicable): gcc-3.1-0.18 How Reproducible: 100% Steps to Reproduce: 1. g++ -fPIC -O2 -c OmniProxy.cpp Actual Results: OmniProxy.cpp: In member function `void OmniProxy::replayBitmaps()': OmniProxy.cpp:1215: insn does not satisfy its constraints: (insn 12810 10691 12816 (set (mem:QI (plus:SI (reg/f:SI 6 ebp) (const_int -300 [0xfffffed4])) [81 S1 A32]) (reg:QI 4 sil)) 60 {*movqi_1} (nil) (nil)) OmniProxy.cpp:1215: Internal compiler error in reload_cse_simplify_operands, at reload1.c:8345 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
Created attachment 43155 [details] OmniProxy.cpp
This sounds like #58579. I have a minimal testcase for it, no fix yet. On the other side, why aren't you using RPM_OPT_FLAGS? This bug never happens with -mcpu=i686...
Just because CFLAGS="$RPM_OPT_FLAGS" breaks the package because it puts includes in CFLAGS in the Makefile. I'll patch the Makefile so that using RPM_OPT_FLAGS works. Thanks.
Fixed in gcc-3.1-0.19.