This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Replace _XXX with XXX_P
On Tue, Dec 15, 2009 at 9:36 AM, Andreas Schwab <schwab@redhat.com> wrote:
> "H.J. Lu" <hjl.tools@gmail.com> writes:
>
>> What did you mean? When/where can applications use _xxxx?
>
> Outside of file scope (in the ordinary and tag namespace). ?Basically
> that means identifiers without linkage, like parameter names.
>
>> Gcc defines a bunch of _mm_xxx intrinsics.
>
> These are file scope identifiers.
>
[hjl@gnu-6 tmp]$ cat x.c
#include <emmintrin.h>
int
foo (int _mm_load_pd)
{
return _mm_load_pd;
}
[hjl@gnu-6 tmp]$ gcc -S x.c -Wshadow
x.c: In function ‘foo’:
x.c:4: warning: declaration of ‘_mm_load_pd’ shadows a global declaration
/usr/lib/gcc/x86_64-redhat-linux/4.4.2/include/emmintrin.h:104:
warning: shadowed declaration is here
[hjl@gnu-6 tmp]$
Is this a bug in gcc?
--
H.J.