From: Jakub Jelinek Date: Thu, 13 Dec 2018 12:52:11 +0000 (+0100) Subject: re PR testsuite/88454 (test case gcc.dg/tree-ssa/split-path-5.c fails after r266971) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9cbcd3ef0db14c018c60339a39fee628202ded1;p=gcc.git re PR testsuite/88454 (test case gcc.dg/tree-ssa/split-path-5.c fails after r266971) PR testsuite/88454 * gcc.dg/tree-ssa/split-path-5.c (__ctype_ptr__): Change type from const char * to const signed char *. (bmhi_init): Change pattern parameter's type the same. Use __builtin_strlen instead of undeclared strlen. From-SVN: r267092 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fd750d785ec..d2383831ea8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2018-12-13 Jakub Jelinek + + PR testsuite/88454 + * gcc.dg/tree-ssa/split-path-5.c (__ctype_ptr__): Change type from + const char * to const signed char *. + (bmhi_init): Change pattern parameter's type the same. Use + __builtin_strlen instead of undeclared strlen. + 2018-12-13 Andreas Krebbel * gcc.target/s390/zvector/vec-double-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/split-path-5.c b/gcc/testsuite/gcc.dg/tree-ssa/split-path-5.c index 83141a716ed..88c3a55b968 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/split-path-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/split-path-5.c @@ -1,16 +1,16 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fsplit-paths -fdump-tree-split-paths-details -w" } */ -const extern char *__ctype_ptr__; +const extern signed char *__ctype_ptr__; typedef unsigned char uchar; static int patlen; static int skip[(0x7f * 2 + 1) + 1]; static uchar *pat = ((void *) 0); void -bmhi_init (const char *pattern) +bmhi_init (const signed char *pattern) { int i, lastpatchar; - patlen = strlen (pattern); + patlen = __builtin_strlen (pattern); for (i = 0; i < patlen; i++) pat[i] = ( {