This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14755] [3.4/3.5 regression] miscompilation in bitfielded signed integers


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]