[llvm-bugs] [Bug 40099] New: -fshort-enums is the default for arm-gcc

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 19 04:27:28 PST 2018


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: unassignedclangbugs at nondot.org
          Reporter: trass3r at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181219/6a4391ed/attachment-0001.html>


More information about the llvm-bugs mailing list