<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 - clang's integrated assembler doesn't permit setting -Wa,-mimplicit-it=always"
href="https://bugs.llvm.org/show_bug.cgi?id=49023">49023</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang's integrated assembler doesn't permit setting -Wa,-mimplicit-it=always
</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>URL</th>
<td>https://github.com/ClangBuiltLinux/linux/issues/1270
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ndesaulniers@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>arnd@linaro.org, caij2003@gmail.com, david.spickett@linaro.org, htmldeveloper@gmail.com, kristof.beyls@arm.com, llozano@chromium.org, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk, srhines@google.com
</td>
</tr>
<tr>
<th>Blocks</th>
<td>4068
</td>
</tr></table>
<p>
<div>
<pre>While it seems we can use the internal flag `-mllvm --arm-implicit-it=always`,
it would be good to support the more canonical -Wa,-mimplicit-it=always form as
well. This is used by the Linux kernel when building a 32b THUMB2 image.
Otherwise, clang will fail when using the integrated assembler for inline asm,
example:
In file included from arch/arm/mach-imx/pm-imx6.c:19:
In file included from ./include/linux/suspend.h:5:
In file included from ./include/linux/swap.h:9:
In file included from ./include/linux/memcontrol.h:13:
In file included from ./include/linux/cgroup.h:28:
In file included from ./include/linux/cgroup-defs.h:22:
In file included from ./include/linux/bpf-cgroup.h:5:
In file included from ./include/linux/bpf.h:21:
In file included from ./include/linux/kallsyms.h:12:
In file included from ./include/linux/mm.h:33:
In file included from ./include/linux/pgtable.h:6:
In file included from ./arch/arm/include/asm/pgtable.h:25:
./arch/arm/include/asm/tlbflush.h:342:2: error: predicated instructions must be
in IT block
tlb_op(TLB_V7_UIS_FULL, "c8, c7, 0", zero);
^
./arch/arm/include/asm/tlbflush.h:320:30: note: expanded from macro 'tlb_op'
#define tlb_op(f, regs, arg) __tlb_op(f, "p15, 0, %0, " regs, arg)
^
./arch/arm/include/asm/tlbflush.h:314:21: note: expanded from macro '__tlb_op'
asm("tst %1, %2\n\t" \
^
<inline asm>:2:2: note: instantiated into assembly here
mcrne p15, 0, r2, c8, c7, 0
^</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - [Meta] Compiling the Linux kernel with clang"
href="https://bugs.llvm.org/show_bug.cgi?id=4068">Bug 4068</a>] [Meta] Compiling the Linux kernel with clang
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>