public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ryanma at cpsc dot ucalgary dot ca" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/14786] Struct misaligned containing unsigned char bit-field Date: Wed, 31 Mar 2004 15:35:00 -0000 [thread overview] Message-ID: <20040331153549.9297.qmail@sources.redhat.com> (raw) In-Reply-To: <20040330191303.14786.ryanma@cpsc.ucalgary.ca> ------- Additional Comments From ryanma at cpsc dot ucalgary dot ca 2004-03-31 15:35 ------- http://publib.boulder.ibm.com/infocenter/comphelp/topic/com.ibm.vacpp6a.doc/prog uide/ref/rvclralg.htm The xlc compiler exhibits the expected behavior. $ xlc t.c -qlanglvl=extended "t.c", line 5.25: 1506-159 (E) Bit-field type specified for a is not valid. Type unsigned assumed. "t.c", line 6.25: 1506-159 (E) Bit-field type specified for b is not valid. Type unsigned assumed. "t.c", line 7.25: 1506-159 (E) Bit-field type specified for c is not valid. Type unsigned assumed. "t.c", line 8.25: 1506-159 (E) Bit-field type specified for d is not valid. Type unsigned assumed. "t.c", line 9.25: 1506-159 (E) Bit-field type specified for e is not valid. Type unsigned assumed. "t.c", line 10.25: 1506-159 (E) Bit-field type specified for f is not valid. Type unsigned assumed. "t.c", line 11.25: 1506-159 (E) Bit-field type specified for g is not valid. Type unsigned assumed. "t.c", line 12.25: 1506-159 (E) Bit-field type specified for h is not valid. Type unsigned assumed. "t.c", line 13.25: 1506-159 (E) Bit-field type specified for i is not valid. Type unsigned assumed. "t.c", line 14.25: 1506-159 (E) Bit-field type specified for J is not valid. Type unsigned assumed. "t.c", line 15.25: 1506-159 (E) Bit-field type specified for K is not valid. Type unsigned assumed. ./a.out $ ./a.out Address of Struct =2ff22a20 sizeof(SubStruct) =4 sizeof(Struct) =20 offset of B =8 offset of C =12 offset of D =13 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14786
next prev parent reply other threads:[~2004-03-31 15:35 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-03-30 19:13 [Bug c/14786] New: " ryanma at cpsc dot ucalgary dot ca 2004-03-30 19:36 ` [Bug c/14786] " pinskia at gcc dot gnu dot org 2004-03-31 15:35 ` ryanma at cpsc dot ucalgary dot ca [this message] 2004-04-04 6:38 ` [Bug target/14786] " pinskia at gcc dot gnu dot org 2004-06-03 22:50 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040331153549.9297.qmail@sources.redhat.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).