This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Merging changes to volatile bitfield structs
- From: John Love-Jensen <eljay at adobe dot com>
- To: Phil Endecott <spam_from_gcc_help_2 at chezphil dot org>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 16 Oct 2007 06:31:24 -0500
- Subject: Re: Merging changes to volatile bitfield structs
Hi Phil,
> Can anyone share their preferred approach to this sort of problem?
Reg workingReg = reg;
workingReg.a = 0;
workingReg.b = 0;
workingReg.c = 0;
reg = workingReg;
HTH,
--Eljay