]> sourceware.org Git - newlib-cygwin.git/commit
Use enum __packed in favour of -fshort-enums
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Fri, 31 Mar 2017 09:00:42 +0000 (11:00 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 3 Apr 2017 08:26:33 +0000 (10:26 +0200)
commitf70d9ae6adc6ed7952806056349ba9f8ba3c65c8
tree7f7bf82f57459b1d13032c7d0c92194463b62e3c
parent571c69656aad95df54a8c42e7b33f961a35dbef6
Use enum __packed in favour of -fshort-enums

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.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
newlib/libc/stdio/Makefile.am
newlib/libc/stdio/Makefile.in
newlib/libc/stdio/local.h
newlib/libc/stdlib/Makefile.am
newlib/libc/stdlib/Makefile.in
newlib/libc/stdlib/mbtowc_r.c
This page took 0.03218 seconds and 5 git commands to generate.