varasm.c (assemble_alias): Add error message for unsupported ifunc.

* varasm.c (assemble_alias): Add error message for
	unsupported ifunc.

From-SVN: r164728
This commit is contained in:
Jack Howarth 2010-09-29 17:38:50 +00:00 committed by Nathan Sidwell
parent 48b3f0a0dc
commit a0c6102d29
2 changed files with 11 additions and 2 deletions

View file

@ -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.

View file

@ -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