Please consider the following code.
//--- module main.c --- ... void main() { ... set_status_word(...); ... } //--- module can.c --- ... void CAN_int_handler(void) interrupt 7 { ... set_status_word(...); ... } //--- module utils.c --- ... void set_status_word(...) { ... }
Obviously, this can lead to unpredictable behaviour, can't it? ... ohh yes. ;) All right, but what are the exact criteria the linker uses for deciding whether to issue or not to issue that message? Maybe the linker assumes that function arguments are passed in registers when they really aren't ? This could be a bug in the linker. Did you file a bug report ?