aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2007-04-05 19:43:35 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2007-04-05 19:43:35 +0400
commitf9ca0dee6d8f15c4bfccc0ccd2f7fbc7b7bf287f (patch)
tree217a9a05f974f7f8ff809c7844f8af5362b30ad9 /gcc
parent276ca25d7b89e90c6fda272f1aabc9da01d7342d (diff)
downloadgcc-f9ca0dee6d8f15c4bfccc0ccd2f7fbc7b7bf287f.zip
gcc-f9ca0dee6d8f15c4bfccc0ccd2f7fbc7b7bf287f.tar.gz
gcc-f9ca0dee6d8f15c4bfccc0ccd2f7fbc7b7bf287f.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/avr/avr.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 58b7ede..cacdc3d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 226ab0f..bafaa5d 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