[Bug target/57631] Use assembler name for sanity checking of ISR names provided it is set
mhlavink at redhat dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 5 14:07:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57631
Michal Hlavinka <mhlavink at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mhlavink at redhat dot com
--- Comment #14 from Michal Hlavinka <mhlavink at redhat dot com> ---
This causes regression:
protocols/pulses_avr.cpp:104:1: warning: '_vector_12' appears to be a
misspelled signal handler [enabled by default]
ISR(TIMER1_COMPA_vect) //2MHz pulse generation (BLOCKING ISR)
^
the "+1" in the fix(gcc/config/avr/avr.c):
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));
makes name == _vector_12 instead of __vector_12 and it triggers warning a few
lines later
tested version: gcc-4.8.2
More information about the Gcc-bugs
mailing list