This is the mail archive of the newlib-cvs@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]

src/newlib ChangeLog libc/include/_ansi.h libc ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	ericb@sourceware.org	2014-08-01 15:44:51

Modified files:
	newlib         : ChangeLog 
	newlib/libc/include: _ansi.h stdlib.h 
	newlib/libc/include/sys: unistd.h 
	newlib/libc/machine/spu: spu_timer_internal.h 
	newlib/libc/machine/xscale/machine: profile.h 
	newlib/libc/sys/linux: libc-symbols.h 
	newlib/libc/sys/linux/dl: atomicity.h dynamic-link.h ldsodefs.h 
	newlib/libc/sys/linux/iconv: gconv_charset.h 
	newlib/libc/sys/linux/include: resolv.h 
	newlib/libc/sys/linux/linuxthreads: internals.h libc-symbols.h 
	newlib/libc/sys/linux/machine/i386: dl-machine.h dl-procinfo.h 
	                                    weakalias.h 
	newlib/libc/sys/linux/sys: unistd.h 

Log message:
	headers: properly decorate attributes
	
	Found by:
	find -name '*.h' |xargs grep -i 'attribute.*(([a-z]'
	
	For an example of the type of bugs this causes, try compiling this valid
	C11 program (it's valid because 'noreturn' is reserved for use in the
	user namespace unless you include <stdnoreturn.h>):
	
	$ cat foo.c
	#define noreturn __attribute__((noreturn))
	#include <stdlib.h>
	$ gcc -c -o foo.o -Wall foo.c
	In file included from /usr/include/stdlib.h:11:0,
	from foo.c:2:
	foo.c:1:18: error: expected ')' before '__attribute__'
	#define noreturn __attribute__((noreturn))
	^
	/usr/include/stdlib.h:66:28: error: expected ',' or ';' before ')' token
	_VOID _EXFUN(abort,(_VOID) _ATTRIBUTE ((noreturn)));
	^
	
	* 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.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/ChangeLog.diff?cvsroot=src&r1=1.1936&r2=1.1937
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/include/_ansi.h.diff?cvsroot=src&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/include/stdlib.h.diff?cvsroot=src&r1=1.50&r2=1.51
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/include/sys/unistd.h.diff?cvsroot=src&r1=1.86&r2=1.87
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/machine/spu/spu_timer_internal.h.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/machine/xscale/machine/profile.h.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/libc-symbols.h.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/dl/atomicity.h.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/dl/dynamic-link.h.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/dl/ldsodefs.h.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/iconv/gconv_charset.h.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/include/resolv.h.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/linuxthreads/internals.h.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/linuxthreads/libc-symbols.h.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/machine/i386/dl-machine.h.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/machine/i386/dl-procinfo.h.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/machine/i386/weakalias.h.diff?cvsroot=src&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/sys/unistd.h.diff?cvsroot=src&r1=1.8&r2=1.9


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