This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/15250] Option -mms-bitfields support on GCC 3.4 is not conformant to MS layout


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]