[patch 6/6] scalar-storage-order merge: testsuite

Eric Botcazou ebotcazou@adacore.com
Fri Jun 19 09:17:00 GMT 2015


> > 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,
> which looks like a bug to me.  Let me investigate.

This looks like an existing hole, the following is also silently accepted:

struct S1 { int i; };

struct S2 { struct __attribute__((unknown_attribute)) S1 s1; };

-- 
Eric Botcazou



More information about the Gcc-patches mailing list