Bug 905862
| Summary: | gcc 4.8 regression: ‘asm’ operand has impossible constraints | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sandro Mani <manisandro> | ||||
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | jakub, law, valdis.kletnieks | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-01-30 12:02:58 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: |
|
||||||
Tracking this upstream. For what it's worth, confirming that the vbox module in question now compiles with gcc-4.8.0-0.13.fc19.x86_64 |
Created attachment 690281 [details] Preprocessed testcase Description of problem: Inline assembler in attached testcase (which is a stripped down code section from the vbox kmod) fails to compile with gcc 4.8. Version-Release number of selected component (if applicable): gcc-4.8.0-0.6.fc19.x86_64 How reproducible: Always Steps to Reproduce: 1. grab attached testcase 2. gcc -Wall -O2 -c -o test.o test.i Actual results: $ gcc -Wall -O2 -c -o test.o test.i test.c: In function ‘test’: test.c:14:9: error: ‘asm’ operand has impossible constraints __asm__ __volatile__("repe; scasl\n\t" Additional info: - code trimmed for 64bit CPU - error triggers only with optimization enabled (-O1, -O2, -O3, -Os, -Ofast) - testcase works with gcc version 4.7.2 20121109 (Red Hat 4.7.2-9) (GCC)