------- Comment #3 from josiejoppen at gmail dot com 2010-02-17 14:00 ------- the cortex m1 is a thumb2 only target. Also the command "BLX #imm" is not supported under ARM V6 arch. Now as a case history, I can tell the following. Initially i had trouble getting into interrupts. i found that the functions were running in assembly, at that time when interrupt comes; they are not able to jump to an ISR written in "C". so i wrote the ISRs in assembly. that came out well. later the application became bigger, now it does not branch across functions. this happens for a bigger piece of code only. if the code is kept small, i dont find this. i checked the added codes seperately. as a small app..
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43102