]> granicus.if.org Git - clang/commitdiff
Clarify the error message for unsupported aliases on Darwin
authorAlex Lorenz <arphaman@gmail.com>
Tue, 7 Nov 2017 00:31:19 +0000 (00:31 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 7 Nov 2017 00:31:19 +0000 (00:31 +0000)
rdar://35109556

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317532 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/Sema/attr-alias.c

index b8538f92cba2624e8de619e62251c468d5c85782..c27b495168768f9ef52aa6eb38fb87397108bf06 100644 (file)
@@ -2778,7 +2778,7 @@ def err_attribute_weakref_not_global_context : Error<
 def err_attribute_weakref_without_alias : Error<
   "weakref declaration of %0 must also have an alias attribute">;
 def err_alias_not_supported_on_darwin : Error <
-  "only weak aliases are supported on darwin">;
+  "aliases are not supported on darwin">;
 def err_alias_to_undefined : Error<
   "%select{alias|ifunc}0 must point to a defined %select{variable or |}1function">;
 def warn_alias_to_weak_alias : Warning<
index 151052f89e51e57d791d4d5e9cfd209f085b1865..93136706a7e54abffce597c8238186cd17b0370d 100644 (file)
@@ -2,7 +2,4 @@
 
 void g() {}
 
-// It is important that the following string be in the error message. The gcc
-// testsuite looks for it to decide if a target supports aliases.
-
-void f() __attribute__((alias("g"))); //expected-error {{only weak aliases are supported}}
+void f() __attribute__((alias("g"))); //expected-error {{aliases are not supported on darwin}}