#3094: ARM: Back port Newlib patch to avoid warnings with -fno-short-enums
-----------------------------+-----------------------------
 Reporter:  Sebastian Huber  |      Owner:  Sebastian Huber
     Type:  defect           |     Status:  assigned
 Priority:  normal           |  Milestone:  4.11.3
Component:  tools            |    Version:  4.11
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 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
 relevant enums to avoid the -fshort-enums compiler option.  This attribute
 is at least available on GCC, LLVM/clang and the Intel compiler.

--
Ticket URL: <http://devel.rtems.org/ticket/3094>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to