]> granicus.if.org Git - clang/commit
Fix arm_neon.h and arm_fp16.h generation for compiling with std=c89
authorDiogo N. Sampaio <diogo.sampaio@arm.com>
Wed, 5 Sep 2018 14:56:21 +0000 (14:56 +0000)
committerDiogo N. Sampaio <diogo.sampaio@arm.com>
Wed, 5 Sep 2018 14:56:21 +0000 (14:56 +0000)
commit2d5c20fae345fa78684af5bbf6cac59c79828834
tree29861bc5cb741231679748a332d170e86cd6727d
parent2a4357b081cdbe991633316e6202cdb3d9fc7f8c
Fix arm_neon.h and arm_fp16.h generation for compiling with std=c89

Summary:
The inline attribute is not valid for C standard 89. Replace the argument in the generation of header files with __inline, as well adding tests for both header files.

Reviewers: pbarrio, SjoerdMeijer, javed.absar, t.p.northover

Subscribers: t.p.northover, kristof.beyls, chrib, cfe-commits

Differential Revision: https://reviews.llvm.org/D51683

test/Headers/arm-fp16-header.c
test/Headers/arm-neon-header.c
utils/TableGen/NeonEmitter.cpp

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341475 91177308-0d34-0410-b5e6-96231b3b80d8
test/Headers/arm-fp16-header.c [new file with mode: 0644]
test/Headers/arm-neon-header.c
utils/TableGen/NeonEmitter.cpp