summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-29 17:38:50 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-29 17:38:50 +0000
commita2cc6e7c2ef5720b8d6185bd9a07b3898763fa03 (patch)
tree0e46916e12821e8689ff995bfe937972a5408c4e /gcc/varasm.c
parentf565db3923c690db8ba51120ec0af8c91b91e48b (diff)
downloadgcc-a2cc6e7c2ef5720b8d6185bd9a07b3898763fa03.tar.gz
* varasm.c (assemble_alias): Add error message for
unsupported ifunc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164728 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 5f9ec9001cb..43815719693 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -5542,8 +5542,12 @@ assemble_alias (tree decl, tree target)
# else
if (!DECL_WEAK (decl))
{
- error_at (DECL_SOURCE_LOCATION (decl),
- "only weak aliases are supported in this configuration");
+ if (lookup_attribute ("ifunc", DECL_ATTRIBUTES (decl)))
+ error_at (DECL_SOURCE_LOCATION (decl),
+ "ifunc is not supported in this configuration");
+ else
+ error_at (DECL_SOURCE_LOCATION (decl),
+ "only weak aliases are supported in this configuration");
return;
}
# endif