[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stdalign test with HP-UX cc
From: |
Paul Eggert |
Subject: |
Re: stdalign test with HP-UX cc |
Date: |
Fri, 17 Mar 2017 15:10:21 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
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.
- stdalign test with HP-UX cc, Bruno Haible, 2017/03/15
- Re: stdalign test with HP-UX cc, Paul Eggert, 2017/03/16
- Re: stdalign test with HP-UX cc, Bruno Haible, 2017/03/16
- Re: stdalign test with HP-UX cc, Paul Eggert, 2017/03/17
- Re: stdalign test with HP-UX cc, Bruno Haible, 2017/03/17
- Re: stdalign test with HP-UX cc,
Paul Eggert <=
- Re: stdalign test with HP-UX cc, Bruno Haible, 2017/03/17
- Re: stdalign test with HP-UX cc, Paul Eggert, 2017/03/19
- Re: stdalign test with HP-UX cc, Bruno Haible, 2017/03/19
- Re: stdalign test with HP-UX cc, Bruno Haible, 2017/03/19
- Re: stdalign test with HP-UX cc, Bruno Haible, 2017/03/19
- Re: stdalign test with HP-UX cc, Paul Eggert, 2017/03/19