[email protected] wrote:
Hi,

when i use

#   ifndef __FUNCTION__
#      define __FUNCTION__ __func__
#   endif

before

  _BIC_SR_IRQ (LPM4_bits);  // line 42

this macro uses string concatenation feature of the preprocessor to calculate the stack depth of the currrent frame (so that the generated insn "bic #const, offset(SP)" clears the bits on the copy of SR on the stack)

"__func__" is a "const char *", string concatenation does not work there...

gcc 3.2.3 defines __FUNCTION__. strange that the #ifndef does not "see" it.

chris

Reply via email to