Created attachment 1023742 [details] Preprocessed source /tmp/ccK7KuaX.out Description of problem: Compiling openmodelica-1.9.2 from http://www.openmodelica.org/ fails on Fedora 22 (but compiles fine on Fedora 21): /usr/bin/gcc -g -O2 -fno-stack-protector -fPIC -I"/home/stfn/local/openmodelica-1.9.2/.build/tmp/openmodelica/openmodelica_25115/build/include/omc/c" -I/home/stfn/local/openmodelica-1.9.2/include -DADD_METARECORD_DEFINITIONS= -c -o build/Matching.o build/Matching.c /home/adrpo/om/Compiler/boot/build/tmp/Matching.c: In function ‘omc_Matching_PR__FIFO__FAIRrelabel’: /home/adrpo/om/Compiler/boot/build/tmp/Matching.c:19256:1: internal compiler error: in get_loop_body, at cfgloop.c:856 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. Preprocessed source stored into /tmp/ccK7KuaX.out file, please attach this to your bugreport. Version-Release number of selected component (if applicable): gcc-5.1.1-1.fc22.x86_64 How reproducible: always Steps to Reproduce: 1. /usr/libexec/gcc/x86_64-redhat-linux/5.1.1/cc1 -O2 -o openmodelica-1.9.2.s openmodelica-1.9.2.out 2. 3. Actual results: ICE Expected results: no error Additional info: Error only occurs with -O2, -O0 and -O1 are fine.
Started with r211625, reproduced even with GCC trunk. I don't think we have a PR for this, so will reduce & open a PR. As for the fix, I think we're forgetting to mark some loop for fixup.
Tracking in PR66101.
gcc-5.1.1-3.fc22,gcc-python-plugin-0.14-2.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/gcc-5.1.1-3.fc22,gcc-python-plugin-0.14-2.fc22
Package gcc-5.1.1-3.fc22, gcc-python-plugin-0.14-2.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing gcc-5.1.1-3.fc22 gcc-python-plugin-0.14-2.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-9967/gcc-5.1.1-3.fc22,gcc-python-plugin-0.14-2.fc22 then log in and leave karma (feedback).
gcc-5.1.1-3.fc22, gcc-python-plugin-0.14-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.