This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libc_hidden_proto vs __attribute__


It appears to be `_exit' in particular that is loused up.
Probably because GCC thinks it knows about _exit before it's told.

This test gets the warning, but with -D_exit=loser, it does not.


extern void _exit (int __status) __attribute__ ((__noreturn__));

__typeof (_exit) __GI__exit; __typeof (_exit) _exit __asm__ (""
"__GI__exit") __attribute__ ((visibility ("hidden")));

extern void bar (void) __attribute__ ((noreturn));
void
bar (void)
{
  _exit (0);
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]