mipsel memcpy & gcc3.4.6

Daniel Jacobowitz drow at false.org
Mon Jan 7 17:11:37 UTC 2008


On Mon, Jan 07, 2008 at 12:00:20PM -0500, Mike Frysinger wrote:
> > The current versions of GCC do exactly what the standard say they ought
> > to:
> >
> > gq.c:2:1: error: pasting "name" and ":" does not give a valid
> > preprocessing token
> 
> what are you defining as "current" ?  the current release (4.2.2) certainly 
> accepts it as does a large majority of compiler versions (going by the fact 
> that this is the first such bug report after using this code for quite a 
> while):
> $ cat test.S
> #define foo(name) name##:
> foo(f)
> $ gcc -c test.S
> $ gcc --version
> gcc (GCC) 4.2.2 (Gentoo 4.2.2 p1.0)

Sorry, I forgot that it depends what language you're compiling.  It's
accepted for assembly, but not for C.  There's special cases for #
(stringify) too.  I don't know why.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the uClibc mailing list