diff options
author | Anatoly Sokolov <aesok@post.ru> | 2007-04-05 19:43:35 +0400 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2007-04-05 19:43:35 +0400 |
commit | f9ca0dee6d8f15c4bfccc0ccd2f7fbc7b7bf287f (patch) | |
tree | 217a9a05f974f7f8ff809c7844f8af5362b30ad9 | |
parent | 276ca25d7b89e90c6fda272f1aabc9da01d7342d (diff) | |
download | gcc-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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/avr/avr.c | 2 |
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 |