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

Paolo Bonzini bonzini@gnu.org
Sat Feb 26 23:35:00 GMT 2011


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



More information about the Gcc mailing list