Bug 1220043 - ICE when compiling openmodelica-1.9.2 with gcc-5.1.1-1.fc22.x86_64
Summary: ICE when compiling openmodelica-1.9.2 with gcc-5.1.1-1.fc22.x86_64
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-09 12:39 UTC by Stefan Hoelldampf
Modified: 2015-06-18 13:29 UTC (History)
5 users (show)

Fixed In Version: gcc-5.1.1-3.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-18 13:29:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Preprocessed source /tmp/ccK7KuaX.out (2.03 MB, text/x-csrc)
2015-05-09 12:39 UTC, Stefan Hoelldampf
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 66101 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.