This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14755] [3.4/3.5 regression] miscompilation in bitfielded signed integers
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2004 16:31:47 -0000
- Subject: [Bug c++/14755] [3.4/3.5 regression] miscompilation in bitfielded signed integers
- References: <20040327161841.14755.mueller@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-27 16:31 -------
The problem looks like fold is converting (count--)!=0 to --count != 2147483647.
Here is a simple example from Falk:
int main() { struct { signed int count: 31; } s; s.count = 0; while (s.count--) abort(); }
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
Component|middle-end |c++
Known to fail| |3.4.0 3.5.0
Known to work| |3.3
Last reconfirmed|0000-00-00 00:00:00 |2004-03-27 16:31:47
date| |
Summary|[3.4 regression] |[3.4/3.5 regression]
|miscompilation in bitfielded|miscompilation in bitfielded
|signed integers |signed integers
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14755