c/4414: __packed__ keyword not recognized

jtison@us.ibm.com jtison@us.ibm.com
Thu Sep 27 15:26:00 GMT 2001

>Number:         4414
>Category:       c
>Synopsis:       __packed__ keyword not recognized
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 27 15:26:00 PDT 2001
>Originator:     Jim Tison
>Release:        gcc-3.0.1
Reading specs from /usr/local/lib/gcc-lib/s390x-ibm-linux/3.0.1/specs
Configured with: ../gcc-3.0.1/configure --host=i686-pc-linux-gnu --target=s390x-
ibm-linux --prefix=/usr/local --enable-languages=c++
Thread model: single
gcc version 3.0.1
 /usr/local/lib/gcc-lib/s390x-ibm-linux/3.0.1/cpp0 -lang-c -v -D__GNUC__=3 -D__G
NUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=1 -Dlinux -D__s390__ -D__s390x__ -Dunix -D__
ELF__ -D__linux__ -D__s390__ -D__s390x__ -D__unix__ -D__ELF__ -D__linux -D__unix
 -Asystem(linux) -Acpu(s390) -Amachine(s390) -Asystem(unix) -D__CHAR_UNSIGNED__ 
-D__NO_INLINE__ -D__STDC_HOSTED__=1 test.c test.i
GNU CPP version 3.0.1 (cpplib) (Linux for S/390 zSeries 64 bit)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
 /usr/local/lib/gcc-lib/s390x-ibm-linux/3.0.1/cc1 -fpreprocessed test.i -fno-cal
ler-saves -quiet -dumpbase test.c -version -o test.s
GNU CPP version 3.0.1 (cpplib) (Linux for S/390 zSeries 64 bit)
GNU C version 3.0.1 (s390x-ibm-linux)
        compiled by GNU C version 2.95.3 20010315 (release).
test.c:4: parse error before "mystruct"

info gcc says that __attribute__ ((x)) may be abbreviated as __x__. Not happening, folks. The attached source fails. The fix is to change __packed__ to __attribute__ ((packed)).
Just use __packed__ in a typedef instead of __attribute__ ((packed))
Change __packed__ to __attribute__ ((packed))
Content-Type: application/smil; name="test.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.i"


More information about the Gcc-bugs mailing list