This patch fixes the PR121016 test case for targets where
size_t is incompatible with long. The error is the strncmp
mismatches gcc's built-in knowledge. Applied as obvious.
Johann
--
ad PR122016: Fix test case for 16-bit size targets.
PR testsuite/122016
PR testsuite/52641
gcc/testsuite/
* gcc.dg/torture/pr122016.c (strncmp): Use __SIZE_TYPE__ instead
of long as type of the size argument.
diff --git a/gcc/testsuite/gcc.dg/torture/pr122016.c
b/gcc/testsuite/gcc.dg/torture/pr122016.c
index 027a63d4256..0fe793b9d60 100644
--- a/gcc/testsuite/gcc.dg/torture/pr122016.c
+++ b/gcc/testsuite/gcc.dg/torture/pr122016.c
@@ -3,11 +3,11 @@
int merge_parse_args_argc;
char merge_parse_args_argv_0;
-int strncmp(char *, char *, long);
-void _setjmp();
+int strncmp(const char *, const char *, __SIZE_TYPE__);
+void _setjmp(void);
typedef enum { FALSE, TRUE } boool;
-void directory_exists();
-void merge_parse_args() {
+void directory_exists(void);
+void merge_parse_args(void) {
int i;
boool help_found = FALSE;
while (i < merge_parse_args_argc && !help_found) {