public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/51200] New: Wrong code sequence to store restrict volatile bitfield
@ 2011-11-18  2:44 joey.ye at arm dot com
  2011-11-18  2:47 ` [Bug middle-end/51200] " joey.ye at arm dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: joey.ye at arm dot com @ 2011-11-18  2:44 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51200
           Summary: Wrong code sequence to store restrict volatile
                    bitfield
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: joey.ye@arm.com


Trunk 179074 generates wrong code sequence with -fstrict-volatile-bitfields on
ARM and x86. 

ARM AAPCS default enable strict volatile bitfields so it is critical on ARM:

/* { dg-do run } */
/* { dg-options "-fstrict-volatile-bitfields" } */

extern void abort(void);
struct thing {
  volatile unsigned short a: 8;
  volatile unsigned short b: 8;
} t = {1,2};

int main()
{
  t.a = 3;
  if (t.a !=3 || t.b !=2) abort();
  return 0;
}


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

end of thread, other threads:[~2012-03-29  2:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-18  2:44 [Bug middle-end/51200] New: Wrong code sequence to store restrict volatile bitfield joey.ye at arm dot com
2011-11-18  2:47 ` [Bug middle-end/51200] " joey.ye at arm dot com
2011-11-22  6:50 ` joey.ye at arm dot com
2011-12-21  3:21 ` bernds at gcc dot gnu.org
2011-12-21  4:37 ` joey.ye at arm dot com
2011-12-26 14:08 ` jye2 at gcc dot gnu.org
2011-12-27  6:30 ` jye2 at gcc dot gnu.org
2012-03-29  2:36 ` jye2 at gcc dot gnu.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).