This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


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: broken attributes


On Jul 31 08:13, Eric Blake wrote:
> On 07/31/2014 06:45 AM, Eric Blake wrote:
> > The following grep shows a number of places where newlib is improperly
> > using __attribute__ markups without decorating the attribute with __ to
> > ensure that there are no collisions with user-defined macros.
> > 
> > $ find -name '*.h' |xargs grep -i 'attribute.*(([a-z]'
> > 
> 
> > 
> > I'm preparing an obvious patch of decorating all these offenders with __
> > 
> 
> attached:
> 
> 2014-07-31  Eric Blake  <...>
> 
> 	* libc/machine/spu/spu_timer_internal.h: Decorate attribute names
> 	with __, for namespace safety.
> 	* libc/machine/xscale/machine/profile.h: Likewise.
> 	* libc/include/stdlib.h: Likewise.
> 	* libc/include/_ansi.h: Likewise.
> 	* libc/include/sys/unistd.h: Likewise.
> 	* libc/sys/linux/linuxthreads/libc-symbols.h: Likewise.
> 	* libc/sys/linux/linuxthreads/internals.h: Likewise.
> 	* libc/sys/linux/machine/i386/weakalias.h: Likewise.
> 	* libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
> 	* libc/sys/linux/machine/i386/dl-machine.h: Likewise.
> 	* libc/sys/linux/libc-symbols.h: Likewise.
> 	* libc/sys/linux/iconv/gconv_charset.h: Likewise.
> 	* libc/sys/linux/include/resolv.h: Likewise.
> 	* libc/sys/linux/sys/unistd.h: Likewise.
> 	* libc/sys/linux/dl/atomicity.h: Likewise.
> 	* libc/sys/linux/dl/dynamic-link.h: Likewise.
> 	* libc/sys/linux/dl/ldsodefs.h: Likewise.

Thanks, please apply.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgpCpI3Yv93d_.pgp
Description: PGP signature


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