Re: Endianess attributes

2008-11-14 Thread Michael Meissner
On Thu, Nov 13, 2008 at 11:46:04PM +, Paul Brook wrote: > On Thursday 13 November 2008, Michael Meissner wrote: > > On Thu, Nov 13, 2008 at 09:14:06PM +0100, Paul Chavent wrote: > > > Hi. > > > > > > I wonder why there aren't any endianess attributes

Re: Endianess attributes

2008-11-13 Thread Joe Buck
On Thu, Nov 13, 2008 at 09:14:06PM +0100, Paul Chavent wrote: > I wonder why there aren't any endianess attributes ? Complicated to get them right in all circumstances. Even the spec (defining how the attributes interact with aliasing analysis, etc) would be a bear to get right. One pos

Re: Endianess attributes

2008-11-13 Thread Paul Brook
On Thursday 13 November 2008, Michael Meissner wrote: > On Thu, Nov 13, 2008 at 09:14:06PM +0100, Paul Chavent wrote: > > Hi. > > > > I wonder why there aren't any endianess attributes ? > > > > For example we could write this : > > int x __attribut

Re: Endianess attributes

2008-11-13 Thread Michael Meissner
On Thu, Nov 13, 2008 at 09:14:06PM +0100, Paul Chavent wrote: > Hi. > > I wonder why there aren't any endianess attributes ? > > For example we could write this : > int x __attribute__ ((endianess (lil))) = 0; > > Is it a silly suggestion ? > No one nee

Endianess attributes

2008-11-13 Thread Paul Chavent
Hi. I wonder why there aren't any endianess attributes ? For example we could write this : int x __attribute__ ((endianess (lil))) = 0; Is it a silly suggestion ? No one need it ? Is it a bad design need ? Could someone give me some information ? Thanks. Paul CHAVENT