diff options
author | aesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-05 15:43:35 +0000 |
---|---|---|
committer | aesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-05 15:43:35 +0000 |
commit | 0d52848354007fe09396b0549d09b895867f00db (patch) | |
tree | 217a9a05f974f7f8ff809c7844f8af5362b30ad9 | |
parent | 57dd95f2ad592a2e7b0f01e9d3e75ecf4c03ab51 (diff) | |
download | gcc-0d52848354007fe09396b0549d09b895867f00db.tar.gz |
PR target/25448
* config/avr/avr.c (avr_handle_fndecl_attribute): Use the
DECL_ASSEMBLER_NAME, not the DECL_NAME.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123519 138bc75d-0d04-0410-961f-82ee72b054a4
-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 58b7ede1617..cacdc3ddfe6 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 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 |