From a9717079fc197509ef5856eca087808d9dce96d0 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Thu, 6 Aug 2009 16:19:14 +0000 Subject: [PATCH] arm.c (arm_handle_pcs_attribute): Pass the entire name object to warning (). * arm.c (arm_handle_pcs_attribute): Pass the entire name object to warning (). From-SVN: r150528 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e71ba648a67..086b3beb499 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-08-06 Richard Earnshaw + + * arm.c (arm_handle_pcs_attribute): Pass the entire name object to + warning (). + 2009-08-06 Richard Earnshaw * arm.c (arm_handle_pcs_attribute): Use %qE in warning. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index cc11c790819..eb8cf6ac116 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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; -- 2.30.2