diff options
author | Jack Howarth <howarth@bromo.med.uc.edu> | 2010-09-29 17:38:50 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2010-09-29 17:38:50 +0000 |
commit | a0c6102d2935c97d834296038b1485f8841aa708 (patch) | |
tree | 0e46916e12821e8689ff995bfe937972a5408c4e /gcc/varasm.c | |
parent | 48b3f0a0dc33c80390c2fa18ad706876cf1d458d (diff) | |
download | gcc-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
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 8 |
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 |