From f9ca0dee6d8f15c4bfccc0ccd2f7fbc7b7bf287f Mon Sep 17 00:00:00 2001 From: Anatoly Sokolov Date: Thu, 5 Apr 2007 19:43:35 +0400 Subject: [PATCH] re PR target/25448 (Unfounded warnings from the AVR backend) PR target/25448 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the DECL_ASSEMBLER_NAME, not the DECL_NAME. From-SVN: r123519 --- gcc/ChangeLog | 6 ++++++ gcc/config/avr/avr.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58b7ede1617..cacdc3ddfe6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-04-05 Anatoly Sokolov + + PR target/25448 + * config/avr/avr.c (avr_handle_fndecl_attribute): Use the + DECL_ASSEMBLER_NAME, not the DECL_NAME. + 2007-04-05 H.J. Lu * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat. diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 226ab0f2d07..bafaa5d4bab 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -4603,7 +4603,7 @@ avr_handle_fndecl_attribute (tree *node, tree name, } else { - const char *func_name = IDENTIFIER_POINTER (DECL_NAME (*node)); + const char *func_name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (*node)); const char *attr = IDENTIFIER_POINTER (name); /* If the function has the 'signal' or 'interrupt' attribute, test to -- 2.30.2