Bug 1220043

Summary: ICE when compiling openmodelica-1.9.2 with gcc-5.1.1-1.fc22.x86_64
Product: [Fedora] Fedora Reporter: Stefan Hoelldampf <stefan.hoelldampf>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: davejohansen, jakub, jwakely, law, mpolacek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gcc-5.1.1-3.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-18 13:29:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Preprocessed source /tmp/ccK7KuaX.out none

Description Stefan Hoelldampf 2015-05-09 12:39:58 UTC
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.

Comment 1 Marek Polacek 2015-05-11 09:36:20 UTC
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.

Comment 2 Marek Polacek 2015-05-11 10:18:45 UTC
Tracking in PR66101.

Comment 3 Fedora Update System 2015-06-13 20:18:17 UTC
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

Comment 4 Fedora Update System 2015-06-14 17:30:08 UTC
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).

Comment 5 Fedora Update System 2015-06-18 13:29:08 UTC
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.