[PATCH] Use enum __packed in favour of -fshort-enums

Corinna Vinschen vinschen@redhat.com
Mon Apr 3 08:29:00 GMT 2017

On Mar 31 11:00, Sebastian Huber wrote:
> Some architectures like ARM encode the short enum option state in the
> object file and the linker checks that this option is consistent for all
> objects of an executable.  In case applications use -fno-short-enums,
> then this leads to linker warnings.  Use the enum __packed attribute for
> the relevent enums to avoid the -fshort-enums compiler option.  This
> attribute is at least available on GCC, LLVM/clang and the Intel
> compiler.



Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20170403/eef38c9a/attachment.sig>

More information about the Newlib mailing list