https://bugs.llvm.org/show_bug.cgi?id=40099
Bug ID: 40099
Summary: -fshort-enums is the default for arm-gcc
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangb...@nondot.org
Reporter: tras...@gmail.com
CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk
It looks like arm-gcc uses -fshort-enums by default.
Also see https://gcc.gnu.org/ml/gcc/2012-02/msg00290.html
Leading to these ld warnings when linking objects built by clang with g++ as
linker driver:
arm-none-eabi/bin/ld.exe: warning: main.cpp.o uses 32-bit enums yet the output
is to use variable-size enums; use of enum values across objects may fail
So if ABI compatibility is desired here the default may need to be changed.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs