Bug 434885
| Summary: | -fpeephole2 caused "internal compiler error: in final_scan_insn, at final.c:2514" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Haiping Zhao <hzhao> | ||||
| Component: | gcc4 | Assignee: | Jakub Jelinek <jakub> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | high | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 4 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-03-11 09:47:25 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Created attachment 295862 [details]
preprocessed source
Haiping, Fedora Core 4, 5, and 6 are not maintained anymore. Can you reproduce this bug on Fedora 7 or Fedora 8? I can not reproduce this on Fedora 8. Can't reproduce with current gcc 3.4.x, 4.0.x, 4.1.x, 4.2.x nor 4.3.0. |
Compiling this file: #include <stdio.h> #include <stdlib.h> #include <sys/time.h> int main() { struct timeval now; return now.tv_usec % 15; } with this command, g++ -c -fpeephole2 test.cpp The problem goes away if "now.tv_usec" is casted to "int" a 32-bit number. So, it's related to the fact it's a 64-bit integer.