Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1344717
Summary: | gcc-6.1 fails to compile ARM c-code using __attribute__ ((interrupt ("IRQ"))), combined with calling a function | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Hans de Goede <hdegoede> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 24 | CC: | davejohansen, jakub, jwakely, law, mpolacek, pbrobinson | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | gcc-6.1.1-3.fc24 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-06-26 20:54:18 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: |
|
Here is a reaction to this bug from the u-boot mailinglist (which may or may-not be helpful: "Interesting. Seems like the compiler should be emitting LDMFD instead of POP, or a POP followed by a SUBS/MOVS." Looks like this upstream bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70830 Hi, (In reply to Peter Robinson from comment #2) > Looks like this upstream bug > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70830 Yes it indeed is that bug, thanks for finding that. I've done a local cross-gcc build with the patches from that bug applied and that fixes things. Jakub, can we get this into Fedora, at least in rawhide ? The next upstream u-boot release will need to have this fixed to build. Regards, Hans There are many fixes on the current gcc-6-branch, but as due to F24 release right now there is almost zero chance to get it in, I'm deferring next update until F24 goes gold, so hopefully till next week. There are various fixes I need to backport from trunk to 6.x branch before doing such update. Hi, (In reply to Jakub Jelinek from comment #4) > There are many fixes on the current gcc-6-branch, but as due to F24 release > right now there is almost zero chance to get it in, I'm deferring next > update until F24 goes gold, so hopefully till next week. There are various > fixes I need to backport from trunk to 6.x branch before doing such update. Ok, that is good to know. There is no hurry here, just making sure things don't break when we try to get u-boot v2016.07 (to be released) into Fedora. Thanks for all the great work you do on gcc! Regards, Hans (In reply to Jakub Jelinek from comment #4) > There are many fixes on the current gcc-6-branch, but as due to F24 release > right now there is almost zero chance to get it in, I'm deferring next > update until F24 goes gold, so hopefully till next week. There are various > fixes I need to backport from trunk to 6.x branch before doing such update. So F-24 is now gold, goes out tomorrow, everything signed off etc so you should be fine to move forward with this now gcc-6.1.1-3.fc24 gcc-python-plugin-0.15-6.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6db2423f35 gcc-6.1.1-3.fc24, gcc-python-plugin-0.15-6.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6db2423f35 gcc-6.1.1-3.fc24, gcc-python-plugin-0.15-6.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 1166643 [details] Simplified c-code to trigger the problem [hans@shalem ~]$ arm-linux-gnu-gcc -march=armv7-a -Os --save-temps -o foo -c foo.c foo.s: Assembler messages: foo.s:49: Error: push/pop do not support {reglist}^ -- `pop {r0,r1,r2,r3,ip,pc}^' Also reproduced on arm hardware with latest F24 gcc pkgs I'll attach foo.c, which is a simplified piece of c-code to reproduce this problem (this gets triggered when compiling u-boot with recent changes).