Summary: | [4.3 Regression] Value of variable is not read again | ||
---|---|---|---|
Product: | gcc | Reporter: | Michael Tautschnig <mt> |
Component: | target | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P2 | ||
Version: | 4.3.3 | ||
Target Milestone: | 4.4.0 | ||
Host: | s390-unknown-linux-gnu | Target: | s390-unknown-linux-gnu |
Build: | s390-unknown-linux-gnu | Known to work: | 4.2.4, 4.4.0 |
Known to fail: | 4.3.3 | Last reconfirmed: | |
Attachments: |
Not fully preprocessed source (includes <string>), compile with -DVOLATILE to see the correct behaviour
Fully preprocessed source, compile with -O2 to see wrong behaviour |
Description
Michael Tautschnig
2009-02-05 22:56:36 UTC
Created attachment 17255 [details]
Not fully preprocessed source (includes <string>), compile with -DVOLATILE to see the correct behaviour
Created attachment 17256 [details]
Fully preprocessed source, compile with -O2 to see wrong behaviour
I should have added that this worked fine on 4.2 and was broken as of 4.3.1 at least, earlier versions (> 4.2) untested. Does it work with GCC 4.4? Indeed, seems to be fixed in 4.4.0 (tested using Debian's gcc-snapshot, g++ (Debian 20090224-1) 4.4.0 20090224 (experimental)). Sorry for not testing using a fresh build from 4.4 sources, but I hope that is helpful nevertheless. Best, Michael GCC 4.3.4 is being released, adjusting target milestone. GCC 4.3.5 is being released, adjusting target milestone. Fixed for 4.4.0. |