Section 20.13.7 of the Xmega manual speaks about the requirement of 16 bit
alignment.
http://www.atmel.com/images/doc8331.pdf
As the MAXIMUM_ALIGNMENT in avr.h is set to 1, it throws an error when trying
to compile.
I have attached a patch which sets it to 2 by default in the compiler.
I have
Thomas, George wrote:
> Section 20.13.7 of the Xmega manual speaks about the requirement of 16 bit
> alignment.
>
> http://www.atmel.com/images/doc8331.pdf
>
> As the MAXIMUM_ALIGNMENT in avr.h is set to 1, it throws an error when
> trying to compile.
>
> I have attached a patch which sets it
> -Original Message-
> From: avr-gcc-list-bounces+eric.weddington=atmel@nongnu.org
> [mailto:avr-gcc-list-bounces+eric.weddington=atmel@nongnu.org] On
> Behalf Of Thomas, George
> Sent: Monday, November 19, 2012 4:32 AM
> To: avr-gcc-list@nongnu.org
> Subject: [avr-gcc-list] Align a
> -Original Message-
> From: Weddington, Eric
> Sent: Monday, November 19, 2012 8:58 AM
> To: Thomas, George; avr-gcc-list@nongnu.org
> Subject: RE: [avr-gcc-list] Align attribute in gcc requiring alignment of 2
> for Xmegas with USB.
>
> > Section 20.13.7 of the Xmega manual speaks abou
Weddington, Eric wrote:
>
>>
>>> Section 20.13.7 of the Xmega manual speaks about the requirement of 16
>>> bit alignment.
>>>
>>> http://www.atmel.com/images/doc8331.pdf
>>>
>>> As the MAXIMUM_ALIGNMENT in avr.h is set to 1, it throws an error when
>>> trying to compile.
>>>
>>> I have atta
I made a mistake with the patch.
I had a version of 3.4.1 release of toolchain in path which was of version
4.6.2 on which I was trying the changes.
The 4.6.2 version was giving a warning saying
"requested alignment for 'a' is greater than implemented alignment of 1"
and the alignment was not