This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20371] Some corner cases of MS bitfields don't work
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Apr 2005 14:32:34 -0000
- Subject: [Bug middle-end/20371] Some corner cases of MS bitfields don't work
- References: <20050307215329.20371.amylaar@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-12 14:32 -------
Subject: Bug 20371
CVSROOT: /cvs/gcc
Module name: gcc
Branch: sh-elf-4_1-branch
Changes by: amylaar@gcc.gnu.org 2005-04-12 14:32:06
Modified files:
gcc : ChangeLog stor-layout.c
Log message:
PR middle-end/20371:
* stor-layout.c (place_field): Don't adjust rli->bitpos at the end
of an MS bitfield run if we already adjusted bitpos/offset for an
alignment as large or larger than the bitfield type size.
Also set rli->remaining_in_alignment when we reset rli->prev_field.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=sh-elf-4_1-branch&r1=2.8142.2.4&r2=2.8142.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/stor-layout.c.diff?cvsroot=gcc&only_with_tag=sh-elf-4_1-branch&r1=1.228&r2=1.228.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20371