On 10/06/2015 05:07 AM, Eric Botcazou wrote:
This is the testsuite part.
testsuite/
* c-c++-common/sso-1.c: New test.
* c-c++-common/sso-2.c: Likewise.
* c-c++-common/sso-3.c: Likewise.
* c-c++-common/sso-4.c: Likewise.
* c-c++-common/sso-5.c: Likewise.
> > Can I modify an existing struct to create an opposite endian variant?
> > Eg.
> >
> > struct bar
> > {
> >
> > int a;
> >
> > };
> >
> > struct wibble
> > {
> >
> > struct __attr_sso__ bar a;
> >
> > };
>
> The compiler accepts it, but apparently discards the attribute silently,
> It appears that all the C tests check the specific syntactic form
> 'struct __attr_sso__ foo {...};'
>
> What is the impact of changing the location of __attr_sso__? Eg:
>
> struct foo {...} __attr_sso__;
None. What impact could it have?
> (Note that alignment attributes can have significan
On 16/06/15 10:52, Eric Botcazou wrote:
> This is the testsuite part.
>
> testsuite/
> * c-c++-common/sso-1.c: New test.
> * c-c++-common/sso: New directory.
> * gcc.dg/sso-1.c: New test.
> * g++.dg/sso-1.C: Likewise.
> * gcc.dg/sso: New directory.
> * g++.dg/ss