Summary: | gcc 4.2.2 miscompiles code that uses global register variables | ||
---|---|---|---|
Product: | gcc | Reporter: | Bruno Haible <bruno> |
Component: | middle-end | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | g0, gcc-bugs, hjl.tools, ismail, msebor, sds |
Priority: | P3 | ||
Version: | 4.2.2 | ||
Target Milestone: | --- | ||
Host: | i686-pc-linux-gnu | Target: | i686-pc-linux-gnu |
Build: | i686-pc-linux-gnu | Known to work: | 4.1.2, 4.3.0 |
Known to fail: | 4.2.2 | Last reconfirmed: | |
Attachments: | source code exhibiting the bug |
Description
Bruno Haible
2007-11-30 10:45:04 UTC
Created attachment 14671 [details]
source code exhibiting the bug
hmm, i see some alias issues. Works with trunk as well. (Aliasing should be not the issue here, strict-aliasing is off) Are we sure it works with trunk? Because this is initially found as a clisp crash bug and it still crashes with gcc 4.3 trunk but only when compiled with -O2. Indeed testcase doesn't abort with gcc 4.3 20071130 , so there must be another gcc bug hiding there :( Confirmed on the Trunk. In the Bug mentioned at http://bugs.gentoo.org/54738 and here this fails on gcc version 4.4.0 20090312 [trunk revision 144821]. Rob It works for me on Linux/Intel64 with gcc 4.4.0 revision 144836. *** Bug 260998 has been marked as a duplicate of this bug. *** Seen from the domain http://volichat.com Page where seen: http://volichat.com/adult-chat-rooms Marked for reference. Resolved as fixed @bugzilla. I can't reproduce an abort with the top of trunk (GCC 7.0) or 6.x or 5.x, or isolate the fix to any recent revision (4.2 and newer). In light of that and comment #7, resolving as fixed. I confirm. I cannot reproduce the bug (neither with -O nor -O2) in GCC versions 4.2.3 4.2.4 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.4.0 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.5.0 4.5.1 4.5.2 4.5.3 4.5.4 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0 4.8.1 4.8.5 4.9.0 4.9.4 5.1.0 How to Participate in McDonald's Survey on Vimeo ... Customer Satisfaction Survey official website, take part in the survey and receive a coupon code to redeem the ... http://www.mcd-voice.xyz |