public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/37882]  New: [4.3/4.4 Regression] Bitfield miscompilation
@ 2008-10-21 12:30 jakub at gcc dot gnu dot org
  2008-10-21 16:16 ` [Bug middle-end/37882] " rguenth at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-21 12:30 UTC (permalink / raw)
  To: gcc-bugs

struct S
{
  int a : 21;
  unsigned char b : 3;
} s;

int
main ()
{
  s.b = 4;
  if (s.b > 0 && s.b < 4)
    __builtin_abort ();
  return 0;
}

See http://gcc.gnu.org/ml/gcc-bugs/2008-10/msg01324.html
Works till 4.2, fails at -O with 4.3 and trunk.


-- 
           Summary: [4.3/4.4 Regression] Bitfield miscompilation
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37882


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-10-24  9:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-21 12:30 [Bug c/37882] New: [4.3/4.4 Regression] Bitfield miscompilation jakub at gcc dot gnu dot org
2008-10-21 16:16 ` [Bug middle-end/37882] " rguenth at gcc dot gnu dot org
2008-10-22  3:33 ` mmitchel at gcc dot gnu dot org
2008-10-22 10:19 ` jakub at gcc dot gnu dot org
2008-10-22 18:24 ` jakub at gcc dot gnu dot org
2008-10-22 20:10 ` jakub at gcc dot gnu dot org
2008-10-22 20:11 ` jakub at gcc dot gnu dot org
2008-10-23 23:23 ` eric dot weddington at atmel dot com
2008-10-23 23:35 ` jakub at gcc dot gnu dot org
2008-10-24  9:17 ` jakub at gcc dot gnu dot org
2008-10-24  9:19 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).