summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Howarth <howarth@bromo.med.uc.edu>2010-09-29 17:38:50 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2010-09-29 17:38:50 +0000
commita0c6102d2935c97d834296038b1485f8841aa708 (patch)
tree0e46916e12821e8689ff995bfe937972a5408c4e
parent48b3f0a0dc33c80390c2fa18ad706876cf1d458d (diff)
downloadgcc-a0c6102d2935c97d834296038b1485f8841aa708.tar.gz
varasm.c (assemble_alias): Add error message for unsupported ifunc.
* varasm.c (assemble_alias): Add error message for unsupported ifunc. From-SVN: r164728
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/varasm.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 13904d954bc..b3b94eb73b4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
+
+ * varasm.c (assemble_alias): Add error message for
+ unsupported ifunc.
+
2010-09-29 Mike Stump <mikestump@comcast.net>
* config/darwin.h (flag_mkernel): Remove.
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