This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc-4.5/4.4: Bug in .subreg1 pass?


On 02/24/2011 06:04 PM, Michael Matz wrote:
Funny.  As far back as I remember we consistently said that bits of the
same word, but outside the subreg are left with undefined values after
storing into the subreg, except if wrapped with a strict_low_part.  In
fact that's the whole point of strict_low_part.  I'm pretty sure we assume
this documented semantics in various parts of the compiler.

You both are correct. AVR has


/* Width of a word, in units (bytes).  */
#define UNITS_PER_WORD 1

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]