re PR target/25448 (Unfounded warnings from the AVR backend)
authorAnatoly Sokolov <aesok@post.ru>
Thu, 5 Apr 2007 15:43:35 +0000 (19:43 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Thu, 5 Apr 2007 15:43:35 +0000 (19:43 +0400)
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
gcc/config/avr/avr.c

index 58b7ede1617e2411b13a104223ed2556f169dda7..cacdc3ddfe6d1c349b8b5b7acffbf0b8fef1435b 100644 (file)
@@ -1,3 +1,9 @@
+2007-04-05  Anatoly Sokolov <aesok@post.ru>
+
+       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  <hongjiu.lu@intel.com>
 
        * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
index 226ab0f2d07405288c1eb0ee6a0b2dcdb07cfca8..bafaa5d4babebcae520761423d7a975726262f92 100644 (file)
@@ -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