Zoltán Kócsi writes:
> However:
>
>int (*bar( void ))( unsigned )
>{
> return __builtin_popcount;
>}
>
> returns the address of the label "__builtin_popcount", which does not exist:
>
>int main( int arcg, char *argv[] )
>{
> (void) argv;
> return (*bar())( ar
I came across some very interesting behavior regarding to built-in functions:
int __builtin_popcount( unsigned x ); is a gcc bult-in, which actually
returns the number of 1 bits in x.
int foo( unsigned x )
{
return __builtin_popcount( x );
}
generates a call to the __popcountsi2 f