diff options
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 |