public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/27948] New: MS -bitfield struct layout test fails Date: Thu, 08 Jun 2006 07:57:00 -0000 [thread overview] Message-ID: <bug-27948-4066@http.gcc.gnu.org/bugzilla/> (raw) Since this revision: 2006-06-04 Eric Christopher <echristo@apple.com> * stor-layout.c (start_record_layout): Initialize remaining_in_alignment. (debug_rli): Output value for remaining_in_alignment. (update_alignment_for_field): Unconditionalize ms_bitfield_layout_p code. Handle non-bitfield fields. Remove extra alignment code. (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize ms_bitfield_layout_p code. Rewrite handling of structure fields. * tree.h (record_layout_info_s): Remove prev_packed. * doc/extend.texi (ms_struct): Add documentation of format. The ms-bitfield test gcc.dg/bf-ms-layout.c fails. In particular, the 0-size bitfield in struct six { char a :8; int :0; /* not ignored; prior field IS a bitfield, causes struct alignment as well. */ char b; char c; } ; is being ignored I have reconfirmed that that the test does indeed pass with MS VC6 compiler. Danny -- Summary: MS -bitfield struct layout test fails Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dannysmith at users dot sourceforge dot net GCC build triplet: i686-pc-mingw32 GCC host triplet: i686-pc-mingw32 GCC target triplet: i686-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27948
next reply other threads:[~2006-06-08 7:32 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-06-08 7:57 dannysmith at users dot sourceforge dot net [this message] 2006-06-08 14:17 ` [Bug middle-end/27948] [4.2 Regression] " pinskia at gcc dot gnu dot org 2006-06-08 18:14 ` echristo at apple dot com 2006-06-08 22:39 ` dannysmith at users dot sourceforge dot net 2006-06-08 22:40 ` echristo at apple dot com 2006-06-08 23:57 ` pinskia at gcc dot gnu dot org 2006-06-08 23:58 ` echristo at apple dot com 2006-06-09 0:01 ` echristo at apple dot com 2006-06-09 4:48 ` echristo at apple dot com 2006-06-12 6:54 ` echristo at gcc dot gnu dot org 2006-06-12 6:58 ` echristo at apple dot com
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=bug-27948-4066@http.gcc.gnu.org/bugzilla/ \ --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).