This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]