diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2014-03-14 09:27:19 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2014-03-14 09:27:19 +0000 |
commit | 2832dc2203a311e070b3fa962d8536e5031a53b4 (patch) | |
tree | df1b0bdbecb20a0cc2559e4582f1d6b37d6f5888 /gcc | |
parent | 6cdea8070cea38af6571dc932dbc03075fe290fb (diff) | |
download | gcc-2832dc2203a311e070b3fa962d8536e5031a53b4.zip gcc-2832dc2203a311e070b3fa962d8536e5031a53b4.tar.gz gcc-2832dc2203a311e070b3fa962d8536e5031a53b4.tar.bz2 |
re PR target/59396 ([avr] Wrong warning with ISR() and -flto)
PR target/59396
* config/avr/avr.c (avr_set_current_function): Pass function name
through default_strip_name_encoding before sanity checking instead
of skipping the first char of the assembler name.
From-SVN: r208562
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/avr/avr.c | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f92d2d..f20c9de 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-03-14 Georg-Johann Lay <avr@gjlay.de> + + PR target/59396 + * config/avr/avr.c (avr_set_current_function): Pass function name + through default_strip_name_encoding before sanity checking instead + of skipping the first char of the assembler name. + 2014-03-13 Richard Henderson <rth@redhat.com> PR debug/60438 diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index e16f3bf..8ca7de0 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -600,10 +600,14 @@ avr_set_current_function (tree decl) const char *name; name = DECL_ASSEMBLER_NAME_SET_P (decl) - /* Remove the leading '*' added in set_user_assembler_name. */ - ? 1 + IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)) + ? IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)) : IDENTIFIER_POINTER (DECL_NAME (decl)); + /* Skip a leading '*' that might still prefix the assembler name, + e.g. in non-LTO runs. */ + + name = default_strip_name_encoding (name); + /* Silently ignore 'signal' if 'interrupt' is present. AVR-LibC startet using this when it switched from SIGNAL and INTERRUPT to ISR. */ |