OSDN Git Service

* varasm.c (assemble_alias): Add error message for
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Sep 2010 17:38:50 +0000 (17:38 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Sep 2010 17:38:50 +0000 (17:38 +0000)
unsupported ifunc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164728 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/varasm.c

index 13904d9..b3b94eb 100644 (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.
index 5f9ec90..4381571 100644 (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