From: Anatoly Sokolov Date: Thu, 5 Apr 2007 15:43:35 +0000 (+0400) Subject: re PR target/25448 (Unfounded warnings from the AVR backend) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9ca0dee6d8f15c4bfccc0ccd2f7fbc7b7bf287f;p=gcc.git 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 --- 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