-
Bug
-
Resolution: Unresolved
-
Low
-
Code Generation Tools
-
CODEGEN-11041
-
MSP430_21.6.1.LTS
-
default
The attached source file has these lines ...
static inline int ifxn() { return 25; } extern volatile int g; __interrupt void isr(void) { g = ifxn(); }
Build it with optimization level 0 ...
% cl430 --advice:power -o0 -s file.c "file.c", line 9: remark: (ULP 10.1) ISR isr calls function ifxn. Recommend moving function call away from ISR, or inlining the function, or using pragmas
Inspect the resulting file.asm to see that ifxn is inlined into isr. The advice in the diagnostic is being followed. Therefore, the diagnostic should not be issued.