[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: porting alignof to HP-NonStop
From: |
Bruno Haible |
Subject: |
Re: porting alignof to HP-NonStop |
Date: |
Thu, 23 Dec 2010 13:36:14 +0100 |
User-agent: |
KMail/1.9.9 |
Joachim Schmitz wrote:
> During compile of gltests:
> Something very weird errors in test-allignof.c:
> source='test-alignof.c' object='test-alignof.o' libtool=no DEPDIR=.deps
> depmode=none /bin/sh ./../build-aux/depcomp cc -DHAVE_CONFIG_H -I.
> -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./.. -I../gllib -I./../gllib
> -I/usr/local/include -g -Wnowarn -c -o test-alignof.o test-alignof.c
> CHECK (char)
> ^
> "/usr/local/Floss/gnulib/testdir-posix/gltests/test-alignof.c", line 40:
> error(197):
> invalid size for bit field
> ...
This looks pretty weird:
alignof_slot (char) and offsetof (char_helper, slot2) should be different??
Where alignof_slot (char) is defined as
offsetof (struct { char __slot1; char __slot2; }, __slot2)
and char_helper is defined through
typedef struct { char slot1; char slot2; } char_helper;
The only differences between the left-hand side and the right-hand side
are the names of the struct fields, and the use of 'typedef'.
You need to look at the preprocessed output (cc -E) of test-alignof.c
and trim it down to produce a minimal test case.
Bruno
- Re: porting stdioext to HP-NonStop, (continued)
- Re: porting stdioext to HP-NonStop, Bruno Haible, 2010/12/22
- RE: porting stdioext to HP-NonStop, Joachim Schmitz, 2010/12/22
- Re: porting stdioext to HP-NonStop, Bruno Haible, 2010/12/22
- RE: porting stdioext to HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: <signal.h> on HP-NonStop, Bruno Haible, 2010/12/23
- RE: <signal.h> on HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: <signal.h> on HP-NonStop, Bruno Haible, 2010/12/24
- Re: <signal.h> on HP-NonStop, Bruno Haible, 2010/12/24
- RE: <signal.h> on HP-NonStop, Joachim Schmitz, 2010/12/23
- list protocol [was: <signal.h> on HP-NonStop], Eric Blake, 2010/12/23
- Re: porting alignof to HP-NonStop,
Bruno Haible <=
- RE: porting alignof to HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: porting alignof to HP-NonStop, Bruno Haible, 2010/12/24
- Re: alphasort on HP-NonStop, Bruno Haible, 2010/12/23
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/23
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/24
- Re: alphasort on HP-NonStop, Bruno Haible, 2010/12/24
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/24
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/28
- Re: alphasort on HP-NonStop, Paul Eggert, 2010/12/28
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/28