From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10760 invoked by alias); 23 Apr 2007 18:33:05 -0000 Received: (qmail 10735 invoked by uid 48); 23 Apr 2007 18:32:56 -0000 Date: Mon, 23 Apr 2007 18:33:00 -0000 Message-ID: <20070423183256.10734.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/31670] Error calculating size of structs In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-04/txt/msg01699.txt.bz2 ------- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-23 19:32 ------- Learn about alignment when doing struct layout. Basically you want to use the attribute packed to get the sizes you want. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31670