arm.c (arm_handle_pcs_attribute): Pass the entire name object to warning ().
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 6 Aug 2009 16:19:14 +0000 (16:19 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 6 Aug 2009 16:19:14 +0000 (16:19 +0000)
* arm.c (arm_handle_pcs_attribute): Pass the entire name object to
warning ().

From-SVN: r150528

gcc/ChangeLog
gcc/config/arm/arm.c

index e71ba648a67069aaec60dfb9b78023da88144c53..086b3beb499ca780f768c337d2f8f2eb4dc39bf5 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
+
+       * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
+       warning ().
+
 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
 
        * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
index cc11c79081932cb0f6e6e0ca3ab05562381fc423..eb8cf6ac1167c7d1a4d4f7a4e572a2f6e395de60 100644 (file)
@@ -4439,8 +4439,7 @@ arm_handle_pcs_attribute (tree *node ATTRIBUTE_UNUSED, tree name, tree args,
 {
   if (arm_pcs_from_attribute (args) == ARM_PCS_UNKNOWN)
     {
-      warning (OPT_Wattributes, "%qE attribute ignored",
-              IDENTIFIER_POINTER (name));
+      warning (OPT_Wattributes, "%qE attribute ignored", name);
       *no_add_attrs = true;
     }
   return NULL_TREE;