--- Comment #8 from echristo at gcc dot gnu dot org 2006-06-12 06:53
---
Subject: Bug 27948
Author: echristo
Date: Mon Jun 12 06:53:33 2006
New Revision: 114562
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=114562
Log:
2006-06-11 Eric Christopher [EMAIL PROTECTED]
PR
--- Comment #9 from echristo at apple dot com 2006-06-12 06:54 ---
2006-06-11 Eric Christopher [EMAIL PROTECTED]
PR middle-end/27948
* stor-layout.c (place_field): Remove check for
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
Component|c |middle-end
Keywords||ABI,
--- Comment #1 from echristo at apple dot com 2006-06-08 18:11 ---
Can you get me the size of that structure according to MS VC?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27948
--- Comment #2 from dannysmith at users dot sourceforge dot net 2006-06-08
22:32 ---
(In reply to comment #1)
Can you get me the size of that structure according to MS VC?
With version 12.00.8804 of MS cl.exe, sizeof (struct six) == 8, as tested in
the testcase.
Danny
--
--- Comment #3 from echristo at apple dot com 2006-06-08 22:39 ---
Verified. Investigating. The alignment should be 8 from what I can see:
a - 1st byte
int :0 - align to 4th byte
b - 5th byte
c - 6th byte
align structure to 8th byte because of int :0.
--
echristo at apple dot com
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-06-08 23:47 ---
Can I also recommend that gcc.dg/bf-ms-layout.c (and all the ms struct layout
tests if there is another one) be changed to run on PPC-darwin and x86 with the
pragam's for ms_struct?
--
--- Comment #5 from echristo at apple dot com 2006-06-08 23:57 ---
FWIW btw, the edge case only occurs when the bitfield is the full length of the
array size.
Guh.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27948
--- Comment #6 from echristo at apple dot com 2006-06-09 00:00 ---
Think I've got a patch. testing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27948
--- Comment #7 from echristo at apple dot com 2006-06-09 01:12 ---
Confirmed. Patch appears to work. I'll submit it a bit later. Short, one liner.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27948
10 matches
Mail list logo