Re: align of local char array seem not work.

2009-04-13 Thread Andrew Pinski
On Thu, Apr 9, 2009 at 6:07 AM, Bernd Roesch wrote: > Hi, > > i see simular lines in a program. > > char buf[256] __attribute__((aligned(16))); >   printf("%x\n",&buf[0]); This is PR 16660. Thanks, Andrew Pinski

Re: align of local char array seem not work.

2009-04-13 Thread Jim Wilson
Bernd Roesch wrote: char buf[256] __attribute__((aligned(16))); printf("%x\n",&buf[0]); this short test program give no error or warning and do not align as expect.i test with several 68k amigaos compilers (3.4.0 /4.3.2/4.4.0) Most likely gcc did align it, but one of the assembler, linker, o

align of local char array seem not work.

2009-04-09 Thread Bernd Roesch
Hi, i see simular lines in a program. char buf[256] __attribute__((aligned(16))); printf("%x\n",&buf[0]); this short test program give no error or warning and do not align as expect.i test with several 68k amigaos compilers (3.4.0 /4.3.2/4.4.0), and i think this is no target problem.at least