From: Alex Lorenz Date: Tue, 7 Nov 2017 00:31:19 +0000 (+0000) Subject: Clarify the error message for unsupported aliases on Darwin X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e30b96834cea5682a8e9e024dda06319825000a;p=platform%2Fupstream%2Fllvm.git Clarify the error message for unsupported aliases on Darwin rdar://35109556 llvm-svn: 317532 --- diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index b8538f9..c27b495 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -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< diff --git a/clang/test/Sema/attr-alias.c b/clang/test/Sema/attr-alias.c index 151052f..9313670 100644 --- a/clang/test/Sema/attr-alias.c +++ b/clang/test/Sema/attr-alias.c @@ -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}}