Subject: Re: problem in ppc-linux-gcc cross compiler.

From: Vladimir Gurevich <[email-masked]>
Date: Tue, 04 Mar 2003 10:04:05 -0800

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/