This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23623] volatile keyword changes bitfield access size from 32bit to 8bit
- From: "m dot reszat at kostal dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2005 13:40:21 -0000
- Subject: [Bug middle-end/23623] volatile keyword changes bitfield access size from 32bit to 8bit
- References: <20050829140226.23623.m.reszat@kostal.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From m dot reszat at kostal dot com 2005-08-30 13:40 -------
(In reply to comment #4)
> Note this also happens on ARM where (in the EABI) it is definitely a bug
I will try and dig up the EABI for PowerPC, but it's not just about sticking to
a paper. It simply does not work for me (and probably others) the way it is. My
system traps out on me or, worce, writes garbage to the 'untouched' register
parts for some peripherals. NEC V850 and, I think, MIPS do the same.
I can't quite see what can be gained by minimizing access size, but not knowing
the complete rationale (why are non-bitfields NOT minimized, e.g. volatile int x
|= 1), how about a command line switch to let the user select?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23623