[cfe-commits] Add -Wno-extension-used to filter ext_token_used

Ivan Krasin krasin at chromium.org
Tue Oct 4 11:13:08 PDT 2011


Hi llvm team!

This patch adds support of -Wno-extension-used to make it possible to
suppress the warning:

lala.c:1:21: warning: extension used [-pedantic]
double lala(double) asm("llvm.log.f64");

r140770 has started to promote this warning to error if -Werror is
specified (which is absolutely correct).
We have a test that checks some llvm intrinsics and it's not Clangy to
drop -Werror just because one particular warning is expected.
I have added the option to suppress this warning and has removed it
from the test for warnings w/o suppression options.

OK to commit?

krasin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wno-extension-used.patch
Type: text/x-patch
Size: 1960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111004/5037617e/attachment.bin>


More information about the cfe-commits mailing list