On 03/17/2017 02:12 PM, Bruno Haible wrote:
No, nothing like this works.
$ cat foo.c
int aa __attribute__ ((__aligned__ (8))) = 10;
int ab __attribute__ ((aligned (8))) = 10;
That's strange, since Line 3 is taken almost verbatim from the HP-UX
manual you mentioned. I looked for other people who have run into the
problem, and found only this bug report dated 2007:
https://bugzilla.gnome.org/show_bug.cgi?id=468114
with no followup.
Looking through the HP-UX manuals, maybe the 'aligned' attribute is
supported only in GCC mode? What happens if you compile with 'cc
+std=gnu'? or with 'cc +std=gcc', or 'cc -Agnu', or 'cc -Agcc'? See
pages 13-14 of:
http://h20564.www2.hpe.com/hpsc/doc/public/display?docId=c04221956
The revised patch to the stdalign module looks good to me; thanks.