annotate gcc/testsuite/gcc.dg/pr40340.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 #pragma GCC system_header
kono
parents:
diff changeset
2 typedef __SIZE_TYPE__ size_t;
kono
parents:
diff changeset
3 extern void *memset (void *s, int c, size_t n)
kono
parents:
diff changeset
4 __attribute__ ((nothrow, nonnull (1)));
kono
parents:
diff changeset
5 extern inline
kono
parents:
diff changeset
6 __attribute__ ((always_inline, artificial, gnu_inline, nothrow))
kono
parents:
diff changeset
7 void *
kono
parents:
diff changeset
8 memset (void *dest, int ch, size_t len)
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 return __builtin___memset_chk (dest, ch, len,
kono
parents:
diff changeset
11 __builtin_object_size (dest, 0));
kono
parents:
diff changeset
12 }
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 #ifdef TEST2
kono
parents:
diff changeset
15 static void
kono
parents:
diff changeset
16 __attribute__ ((noinline))
kono
parents:
diff changeset
17 test2 (void)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 char buf[4];
kono
parents:
diff changeset
20 memset (buf, 0, 6);
kono
parents:
diff changeset
21 }
kono
parents:
diff changeset
22 #endif
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 #ifdef TEST3
kono
parents:
diff changeset
25 static inline void
kono
parents:
diff changeset
26 __attribute__ ((always_inline))
kono
parents:
diff changeset
27 test3 (char *p)
kono
parents:
diff changeset
28 {
kono
parents:
diff changeset
29 memset (p, 0, 6);
kono
parents:
diff changeset
30 }
kono
parents:
diff changeset
31 #endif