#3094 closed defect (fixed)

ARM: Back port Newlib patch to avoid warnings with -fno-short-enums

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 4.11.3
Component: tool Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:


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.

Change History (1)

comment:1 Changed on Aug 11, 2017 at 5:16:41 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In 50908d2/rtems-source-builder:

ARM: Avoid warnings with -fno-short-enums

Close #3094.

Note: See TracTickets for help on using tickets.