This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15250] Option -mms-bitfields support on GCC 3.4 is not conformant to MS layout
- From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2004 01:35:52 -0000
- Subject: [Bug target/15250] Option -mms-bitfields support on GCC 3.4 is not conformant to MS layout
- References: <20040502174154.15250.p.obry@wanadoo.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dannysmith at users dot sourceforge dot net 2004-05-03 01:35 -------
This delta was part of large patchset committed by DJ Delorie on 2003-09-03.
It is not recorded in ChangeLog.
Reverting it restores correct ms-bitfield-layout.
===================================================================
RCS file: /cvs/gcc/gcc/gcc/stor-layout.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -r1.166 -r1.167
--- gcc/gcc/stor-layout.c 2003/08/20 12:24:18 1.166
+++ gcc/gcc/stor-layout.c 2003/09/04 03:17:50 1.167
@@ -1093,6 +1093,7 @@
rli->prev_field = NULL;
}
+ rli->offset_align = tree_low_cst (TYPE_SIZE (type), 0);
normalize_rli (rli);
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dj at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15250