From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6037 invoked by alias); 2 Jul 2005 09:00:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5896 invoked by uid 48); 2 Jul 2005 09:00:17 -0000 Date: Sat, 02 Jul 2005 09:00:00 -0000 From: "marcus at jet dot franken dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20050702090015.22275.marcus@jet.franken.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/22275] New: bitfield layout change (regression?) X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg00163.txt.bz2 List-Id: the following testcase is extracted from WINE. It is to some degree problematic because "BOOL" is a signed int, but we use 1 bit wide bitfields here. Also the ":0" might be a GNU extension. The problem is that with gcc 3.3.5: gcc -O2 -o xx xx.c ; ./xx but with gcc 4.1 branch: /home/marcus/projects/gcc/BIN/bin/gcc -O2 -march=i586 -mtune=i586 xx.c -o xx; ./xx xx: xx.c:24: main: Assertion `sizeof(CABINETSTATE) == 8' failed. so the layout and final size of this struct changed. -- Summary: bitfield layout change (regression?) Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: marcus at jet dot franken dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22275