summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-06-12 20:13:50 +0000
committerEric Christopher <echristo@gmail.com>2015-06-12 20:13:50 +0000
commit0ee1c8cd0bb01406fd505c7723d4be040b3cf932 (patch)
treecce801b974e92108985aefe4d2c8bb11d39083d4 /clang
parent79ec06525ec063373c519a58976c6ecbb4461ecb (diff)
downloadbcm5719-llvm-0ee1c8cd0bb01406fd505c7723d4be040b3cf932.tar.gz
bcm5719-llvm-0ee1c8cd0bb01406fd505c7723d4be040b3cf932.zip
Quote the user provided string in the warning message and update
tests accordingly. llvm-svn: 239635
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Basic/DiagnosticSemaKinds.td2
-rw-r--r--clang/test/Sema/attr-target.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index 08520107e91..8927a742dc2 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -1975,7 +1975,7 @@ def err_attribute_invalid_vector_type : Error<"invalid vector element type %0">;
def err_attribute_bad_neon_vector_size : Error<
"Neon vector size must be 64 or 128 bits">;
def warn_unsupported_target_attribute
- : Warning<"Ignoring unsupported %0 in the target attribute string">,
+ : Warning<"Ignoring unsupported '%0' in the target attribute string">,
InGroup<IgnoredAttributes>;
def err_attribute_unsupported
: Error<"%0 attribute is not supported for this target">;
diff --git a/clang/test/Sema/attr-target.c b/clang/test/Sema/attr-target.c
index f8b0665dcc3..6c6b461904d 100644
--- a/clang/test/Sema/attr-target.c
+++ b/clang/test/Sema/attr-target.c
@@ -2,7 +2,7 @@
int __attribute__((target("avx,sse4.2,arch=ivybridge"))) foo() { return 4; }
int __attribute__((target())) bar() { return 4; } //expected-error {{'target' attribute takes one argument}}
-int __attribute__((target("tune=sandybridge"))) baz() { return 4; } //expected-warning {{Ignoring unsupported tune= in the target attribute string}}
-int __attribute__((target("fpmath=387"))) walrus() { return 4; } //expected-warning {{Ignoring unsupported fpmath= in the target attribute string}}
+int __attribute__((target("tune=sandybridge"))) baz() { return 4; } //expected-warning {{Ignoring unsupported 'tune=' in the target attribute string}}
+int __attribute__((target("fpmath=387"))) walrus() { return 4; } //expected-warning {{Ignoring unsupported 'fpmath=' in the target attribute string}}
OpenPOWER on IntegriCloud