<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - -fshort-enums is the default for arm-gcc"
href="https://bugs.llvm.org/show_bug.cgi?id=40099">40099</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-fshort-enums is the default for arm-gcc
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>trass3r@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>It looks like arm-gcc uses -fshort-enums by default.
Also see <a href="https://gcc.gnu.org/ml/gcc/2012-02/msg00290.html">https://gcc.gnu.org/ml/gcc/2012-02/msg00290.html</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>