1 /* PR middle-end/98512 - #pragma GCC diagnostic ignored ineffective
2 in conjunction with alias attribute
4 { dg-options "-O2 -Wall" }
5 { dg-require-alias "" } */
8 __rawmemchr_ppc (const void *s
, int c
)
10 #pragma GCC diagnostic push
11 #pragma GCC diagnostic ignored "-Wstringop-overflow"
12 #pragma GCC diagnostic ignored "-Wstringop-overread"
14 return __builtin_memchr (s
, c
, (unsigned long)-1); // { dg-bogus "specified bound \\d+ exceeds maximum object size" }
15 #pragma GCC diagnostic pop
17 return (char *)s
+ __builtin_strlen (s
);
20 extern __typeof (__rawmemchr_ppc
) __EI___rawmemchr_ppc
21 __attribute__((alias ("__rawmemchr_ppc")));