<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 - NEON and "error: unknown type name 'inline'" when using -std=c89"
href="https://bugs.llvm.org/show_bug.cgi?id=46572">46572</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>NEON and "error: unknown type name 'inline'" when using -std=c89
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>C
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>noloader@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>I'm working with a project that wishes to use -std=c89 -pedantic for
testing.[1]
Compiling a NEON source file on Aarch64 that uses vector built-ins [2], such as
vabdq_u8, results in the following. It looks like Clang disagrees with 'inline'
from <arm_neon.h>.
>From [1]:
clang blake2s.c -o blake2s -march=armv8-a -O3 -I../testvectors -Wall -Wextra
-std=c89 -pedantic -Wno-long-long -DBLAKE2S_SELFTEST
In file included from blake2s.c:19:
/usr/lib/llvm-6.0/lib/clang/6.0.0/include/arm_neon.h:433:1: error: unknown type
name 'inline'
__ai uint8x16_t vabdq_u8(uint8x16_t __p0, uint8x16_t __p1) {
^
/usr/lib/llvm-6.0/lib/clang/6.0.0/include/arm_neon.h:430:21: note: expanded
from macro '__ai'
#define __ai static inline __attribute__((__always_inline__, __nodebug__))
^
/usr/lib/llvm-6.0/lib/clang/6.0.0/include/arm_neon.h:433:1: error: expected
identifier or '('
/usr/lib/llvm-6.0/lib/clang/6.0.0/include/arm_neon.h:430:28: note: expanded
from macro '__ai'
#define __ai static inline __attribute__((__always_inline__, __nodebug__))
^
...
[1] <a href="https://travis-ci.org/github/noloader/BLAKE2/jobs/704535809">https://travis-ci.org/github/noloader/BLAKE2/jobs/704535809</a>
[2] <a href="https://github.com/BLAKE2/BLAKE2/blob/master/power8/blake2s.c">https://github.com/BLAKE2/BLAKE2/blob/master/power8/blake2s.c</a></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>