problem in ppc-linux-gcc cross compiler.

Vladimir Gurevich vag at paulidav.org
Wed Mar 5 05:04:05 EST 2003


Hello,

You should change the line
>              warning, __FILE__, __LINE__, __FUNCTION__, ##msg) ;\
to
>              warning, __FILE__, __LINE__, __FUNCTION__ , ##msg) ;\

This space (after __FUNCTION__) will do the trick.

You can read more about it in gcc info file (C Extensions/Macro Varargs),
where the issue is thoroughly explained:

       This is a special feature of the GNU C preprocessor: `##' before a
       rest argument that is empty discards the preceding sequence of
       non-whitespace characters from the macro definition.  (If another
       macro argument precedes, none of it is discarded.)


Hope, this helps.
Vladimir


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list