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
This commit is contained in:
Georg-Johann Lay 2014-03-14 09:27:19 +00:00 committed by Georg-Johann Lay
parent 6cdea8070c
commit 2832dc2203
2 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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. */