This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Problem with structure alignment on MPC


> What happens if you do this?  (I'd try myself, but my MPC compiler is 
> down at the moment!):
> 
> struct block test1 __attribute__((aligned(2)));
> 

It doesnt matter what i write when allocating the structure. I have
tried the numbers 2,4,8 in the row above but the alignment in the memory
is always 8. It seems like the __attribute__ specifies after the
allocation of a variable is ignored.

Regards, Daniel

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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