mipsel memcpy & gcc3.4.6

Mike Frysinger vapier at gentoo.org
Mon Jan 7 17:00:20 UTC 2008


On Monday 07 January 2008, Daniel Jacobowitz wrote:
> On Mon, Jan 07, 2008 at 11:36:01AM -0500, Mike Frysinger wrote:
> > On Monday 07 January 2008, Daniel Jacobowitz wrote:
> > > On Mon, Jan 07, 2008 at 06:29:43PM +0300, Alexander Voropay wrote:
> > > >  It seems, GCC 3.4.6 preprocessor supports ## concatenations
> > > > incorrectly. I've took ENTRY definition from the "sysdeps.h" of the
> > > > ia64/sysdeps.h   It works.
> > >
> > > name##: is incorrect.  ## is supposed to be used between parts of a
> > > single pp-token; ":" is a token all by itself.
> >
> > shouldnt gcc be uniformly barfing on this instead of sporadically ? 
> > should i open a gcc PR about gcc wrongly accepting name##: ?
>
> 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)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20080107/a6eeb401/attachment-0002.pgp 


More information about the uClibc mailing list