[EXT_EP-11101] Inlining a function does not silence ULP diagnostic 10.1 Created: 29/Mar/23 Updated: 29/Mar/23 |
|
Status: | New |
Project: | Embedded Software & Tools |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Low |
Reporter: | TI User | Assignee: | TI User |
Resolution: | Unresolved | Votes: | 0 |
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Product: | Code Generation Tools |
Internal ID: | CODEGEN-11041 |
Forum URL: | https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/81/t/1211260 |
Found In Release: | MSP430_21.6.1.LTS |
Affected Platform/Device: | default |
Description |
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. |