Backport from 2013-07-11 trunk r200901.
PR target/57631
* config/avr/avr.c (avr_set_current_function): Sanity-check signal
name seen by assembler/linker if available.
From-SVN: r200903
+2013-07-11 Georg-Johann Lay <avr@gjlay.de>
+
+ Backport from 2013-07-11 trunk r200901.
+
+ PR target/57631
+ * config/avr/avr.c (avr_set_current_function): Sanity-check signal
+ name seen by assembler/linker if available.
+
2013-07-10 Georg-Johann Lay <avr@gjlay.de>
Backport from 2013-07-10 trunk r200872.
{
tree args = TYPE_ARG_TYPES (TREE_TYPE (decl));
tree ret = TREE_TYPE (TREE_TYPE (decl));
- const char *name = IDENTIFIER_POINTER (DECL_NAME (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_NAME (decl));
/* Silently ignore 'signal' if 'interrupt' is present. AVR-LibC startet
using this when it switched from SIGNAL and INTERRUPT to ISR. */