newlib-cygwin/newlib/libc/machine/spu
Eric Blake ada456dcfe 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.
2014-08-01 15:44:51 +00:00
..
include 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
machine 2007-09-18 Patrick Mansfield <patmans@us.ibm.com> 2007-09-18 20:05:17 +00:00
sys 2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com> 2013-11-21 16:44:39 +00:00
Makefile.am 2009-04-16 Ken Werner <ken.werner@de.ibm.com> 2009-04-16 18:38:23 +00:00
Makefile.in 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
aclocal.m4 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
assert.c 2008-03-27 Patrick Mansfield <patmans@us.ibm.com> 2008-04-01 18:53:41 +00:00
c99ppe.h 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> 2007-08-23 18:45:22 +00:00
calloc_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
clearerr.c 2007-04-04 Patrick Mansfield <patmans@us.ibm.com> 2007-04-04 21:03:13 +00:00
configure 2013-12-23 Jeff Johnston <jjohnstn@redhat.com> 2013-12-23 20:45:10 +00:00
configure.in 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
creat.c 2007-06-13 Patrick Mansfield <patmans@us.ibm.com> 2007-06-13 17:55:28 +00:00
ea_internal.h 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
fclose.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
fdopen.c 2009-04-16 Ken Werner <ken.werner@de.ibm.com> 2009-04-16 18:38:23 +00:00
feof.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
ferror.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
fflush.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
fgetc.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
fgetpos.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
fgets.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
fileno.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
fiprintf.S 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> 2007-08-23 18:45:22 +00:00
fiscanf.S 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> 2007-08-23 18:45:22 +00:00
fopen.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
fprintf.S 2008-06-16 Ken Werner <ken.werner@de.ibm.com> 2008-06-16 18:51:10 +00:00
fputc.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
fputs.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
fread.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
free_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
freopen.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
fscanf.S 2008-06-16 Ken Werner <ken.werner@de.ibm.com> 2008-06-16 18:51:10 +00:00
fseek.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
fsetpos.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
ftell.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
fwrite.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
getc.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
getchar.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
gets.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
impure.c 2008-04-16 Patrick Mansfield <patmans@us.ibm.com> 2008-04-16 18:46:20 +00:00
iprintf.S 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> 2007-08-23 18:45:22 +00:00
iscanf.S 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> 2007-08-23 18:45:22 +00:00
malloc_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
memchr_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
memcmp.c 2008-04-01 Patrick Mansfield <patmans@us.ibm.com> 2008-04-01 19:02:16 +00:00
memcmp_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
memcpy.c 2006-11-22 Luca Barbato <lu_zero@gentoo.org> 2006-11-22 21:19:56 +00:00
memcpy_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
memmove.c 2006-11-22 Luca Barbato <lu_zero@gentoo.org> 2006-11-22 21:19:56 +00:00
memmove_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
memset.c 2006-11-29 Kazunori Asayama <asayama@sm.sony.co.jp> 2006-11-29 19:54:05 +00:00
memset_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
mk_syscalls 2008-06-16 Ken Werner <ken.werner@de.ibm.com> 2008-06-16 18:51:10 +00:00
mmap_ea.c 2009-04-03 Ken Werner <ken.werner@de.ibm.com> 2009-04-03 22:42:31 +00:00
mremap_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
msync_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
munmap_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
perror.c 2007-06-20 Patrick Mansfield <patmans@us.ibm.com> 2007-06-20 21:54:47 +00:00
posix_memalign_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
pread_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
printf.S 2008-06-16 Ken Werner <ken.werner@de.ibm.com> 2008-06-16 18:51:10 +00:00
putc.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
putchar.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
puts.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
pwrite_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
read_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
readv_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
realloc_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
remove.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
rename.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
rewind.c 2007-04-04 Patrick Mansfield <patmans@us.ibm.com> 2007-04-04 21:03:13 +00:00
scanf.S 2008-06-16 Ken Werner <ken.werner@de.ibm.com> 2008-06-16 18:51:10 +00:00
setbuf.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
setjmp.S 2008-06-16 Ken Werner <ken.werner@de.ibm.com> 2008-06-16 18:51:10 +00:00
setvbuf.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
siprintf.S 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> 2007-08-23 18:45:22 +00:00
siscanf.S 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> 2007-08-23 18:45:22 +00:00
sleep.c 2007-06-13 Patrick Mansfield <patmans@us.ibm.com> 2007-06-13 17:44:24 +00:00
sniprintf.S 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> 2007-08-23 18:45:22 +00:00
snprintf.S 2008-06-16 Ken Werner <ken.werner@de.ibm.com> 2008-06-16 18:51:10 +00:00
sprintf.S 2008-06-16 Ken Werner <ken.werner@de.ibm.com> 2008-06-16 18:51:10 +00:00
spu-gmon.c 2009-04-03 Ken Werner <ken.werner@de.ibm.com> 2009-04-03 22:29:24 +00:00
spu-mcount.S 2008-11-27 Ken Werner <ken.werner@de.ibm.com> 2008-11-27 20:57:46 +00:00
spu_clock_stop.c 2008-06-09 Ken Werner <ken.werner@de.ibm.com> 2008-06-10 02:13:22 +00:00
spu_clock_svcs.c 2008-06-09 Ken Werner <ken.werner@de.ibm.com> 2008-06-10 02:13:22 +00:00
spu_timebase.c 2008-09-01 Ken Werner <ken.werner@de.ibm.com> 2008-09-02 16:48:48 +00:00
spu_timer_flih.S 2008-06-09 Ken Werner <ken.werner@de.ibm.com> 2008-06-10 02:13:22 +00:00
spu_timer_free.c 2008-06-09 Ken Werner <ken.werner@de.ibm.com> 2008-06-10 02:13:22 +00:00
spu_timer_internal.h headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
spu_timer_slih.c 2008-09-10 Ken Werner <ken.werner@de.ibm.com> 2008-09-11 00:33:58 +00:00
spu_timer_slih_reg.c 2008-06-09 Ken Werner <ken.werner@de.ibm.com> 2008-06-10 02:13:22 +00:00
spu_timer_stop.c 2008-06-09 Ken Werner <ken.werner@de.ibm.com> 2008-06-10 02:13:22 +00:00
spu_timer_svcs.c 2008-06-09 Ken Werner <ken.werner@de.ibm.com> 2008-06-10 02:13:22 +00:00
sscanf.S 2008-06-16 Ken Werner <ken.werner@de.ibm.com> 2008-06-16 18:51:10 +00:00
stack_reg_va.S 2008-06-16 Ken Werner <ken.werner@de.ibm.com> 2008-06-16 18:51:10 +00:00
stdio.c 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> 2007-08-23 18:45:22 +00:00
straddr.h 2008-02-11 Patrick Mansfield <patmans@us.ibm.com> 2008-02-11 22:19:59 +00:00
strcat.c 2008-06-09 Ken Werner <ken.werner@de.ibm.com> 2008-06-09 17:26:30 +00:00
strcat_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strchr.c 2006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp> 2006-12-01 17:18:36 +00:00
strchr_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strcmp.c 2006-10-27 Joel Schopp <jschopp@austin.ibm.com> 2006-10-27 23:02:00 +00:00
strcmp_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strcpy.c 2008-02-11 Patrick Mansfield <patmans@us.ibm.com> 2008-02-11 22:19:59 +00:00
strcpy.h 2008-09-10 Ken Werner <ken.werner@de.ibm.com> 2008-09-11 00:33:58 +00:00
strcpy_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strcspn.c 2006-10-27 Joel Schopp <jschopp@austin.ibm.com> 2006-10-27 23:02:00 +00:00
strcspn_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strlen.c 2008-02-11 Patrick Mansfield <patmans@us.ibm.com> 2008-02-11 22:14:46 +00:00
strlen_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strncat.c 2008-06-09 Ken Werner <ken.werner@de.ibm.com> 2008-06-09 17:26:30 +00:00
strncat_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strncmp.c 2008-04-01 Patrick Mansfield <patmans@us.ibm.com> 2008-04-01 19:02:16 +00:00
strncmp.h 2008-04-01 Patrick Mansfield <patmans@us.ibm.com> 2008-04-01 19:02:16 +00:00
strncmp_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strncpy.c 2008-02-11 Patrick Mansfield <patmans@us.ibm.com> 2008-02-11 22:19:59 +00:00
strncpy_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strpbrk.c 2006-10-27 Joel Schopp <jschopp@austin.ibm.com> 2006-10-27 23:02:00 +00:00
strpbrk_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strrchr.c 2006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp> 2006-12-01 17:18:36 +00:00
strrchr_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strspn.c 2006-11-29 Kazunori Asayama <asayama@sm.sony.co.jp> 2006-11-29 19:54:05 +00:00
strspn_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strstr_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
strxfrm.c 2007-04-09 Joel Schopp <jschopp@austin.ibm.com> 2007-04-09 16:03:26 +00:00
syscall.def 2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp> 2007-08-23 18:45:22 +00:00
tmpfile.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
tmpnam.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
ungetc.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
usleep.c 2007-06-13 Patrick Mansfield <patmans@us.ibm.com> 2007-06-13 17:44:24 +00:00
vec_literal.h 2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp> 2007-01-19 23:53:07 +00:00
vfiprintf.c 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp> 2007-02-20 20:58:38 +00:00
vfiscanf.c 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp> 2007-02-20 20:58:38 +00:00
vfprintf.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
vfscanf.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
viprintf.c 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp> 2007-02-20 20:58:38 +00:00
viscanf.c 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp> 2007-02-20 20:58:38 +00:00
vprintf.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
vscanf.c 2007-05-23 Patrick Mansfield <patmans@us.ibm.com> 2007-05-23 21:41:17 +00:00
vsiprintf.c 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp> 2007-02-20 20:58:38 +00:00
vsiscanf.c 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp> 2007-02-20 20:58:38 +00:00
vsniprintf.c 2007-02-20 Kazunori Asayama <asayama@sm.sony.co.jp> 2007-02-20 20:58:38 +00:00
vsnprintf.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
vsprintf.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
vsscanf.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
write_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00
writev_ea.c 2008-11-20 Ken Werner <ken.werner@de.ibm.com> 2008-11-20 20:20:51 +00:00