[avr-gcc-list] Align attribute in gcc requiring alignment of 2 for Xmegas with USB.

2012-11-19 Thread Thomas, George
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

Re: [avr-gcc-list] Align attribute in gcc requiring alignment of 2 for Xmegas with USB.

2012-11-19 Thread Georg-Johann Lay
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

Re: [avr-gcc-list] Align attribute in gcc requiring alignment of 2 for Xmegas with USB.

2012-11-19 Thread Weddington, Eric
> -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

Re: [avr-gcc-list] Align attribute in gcc requiring alignment of 2 for Xmegas with USB.

2012-11-19 Thread Weddington, Eric
> -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

Re: [avr-gcc-list] Align attribute in gcc requiring alignment of 2 for Xmegas with USB.

2012-11-19 Thread Georg-Johann Lay
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

Re: [avr-gcc-list] Align attribute in gcc requiring alignment of 2 for Xmegas with USB.

2012-11-19 Thread Thomas, George
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