Recommit Eric's code to validate ASM string's constraints and modifiers.
authorBill Wendling <isanbard@gmail.com>
Thu, 25 Oct 2012 23:28:48 +0000 (23:28 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 25 Oct 2012 23:28:48 +0000 (23:28 +0000)
commit9d1ee1175de34aca8fce8cdca268e7a3287327ed
tree41ca6a12ed50d989909f749c13c3f2cb503175a4
parent3750e7776bb6fd102fb6b351feadcfebd1659ff3
Recommit Eric's code to validate ASM string's constraints and modifiers.

This code checks the ASM string to see if the output size is able to fit within
the variable specified as the output. For instance, scalar-to-vector conversions
may not really work. It's on by default, but can be turned off with a flag if
you think you know what you're doing.

This is placed under a flag ('-Wasm-operand-widths') and flag group ('-Wasm').

<rdar://problem/12284092>

llvm-svn: 166737
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Basic/TargetInfo.h
clang/lib/Basic/Targets.cpp
clang/lib/Sema/SemaStmtAsm.cpp
clang/test/CodeGen/arm-asm-warn.c [new file with mode: 0644]