]> granicus.if.org Git - clang/commit
Allow empty assembly string literal with -fno-gnu-inline-asm
authorSteven Wu <stevenwu@apple.com>
Tue, 12 May 2015 00:16:37 +0000 (00:16 +0000)
committerSteven Wu <stevenwu@apple.com>
Tue, 12 May 2015 00:16:37 +0000 (00:16 +0000)
commit2ecef342b1f3d35908931b65ee2bbc94352bc850
tree8ff931c4e5e07aaee2dbc2e15442257140a3d1ea
parentde0b5445e06ef32f913f4fa524b7b454275cdde7
Allow empty assembly string literal with -fno-gnu-inline-asm

Empty assembly string will not introduce assembly code in the output
binary and it is often used as a trick in the header to disable
optimizations. It doesn't conflict with the purpose of the option so it
is allowed with -fno-gnu-inline-asm flag.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237073 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseStmtAsm.cpp
lib/Parse/Parser.cpp
test/Parser/no-gnu-inline-asm.c