From 0882133399afebcac9f6731a1b654363f0de456c Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Fri, 6 Dec 2019 18:23:41 +0000 Subject: [PATCH] Avoid -Wincompatible-pointer-types on targets like arm-eabi. gcc/testsuite/ChangeLog: * gcc.dg/Wstringop-overflow-23.c: Use the correct argument type. * gcc.dg/Wstringop-overflow-24.c: Same. From-SVN: r279059 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/Wstringop-overflow-23.c | 2 +- gcc/testsuite/gcc.dg/Wstringop-overflow-24.c | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 378e053f67e..13a4744f1dc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-12-06 Martin Sebor + + * gcc.dg/Wstringop-overflow-23.c: Use the correct argument type. + * gcc.dg/Wstringop-overflow-24.c: Same. + 2019-12-06 Richard Sandiford * g++.dg/ext/sve-sizeless-1.C: New test. diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-23.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-23.c index f7094342861..6d9fcb9d52e 100644 --- a/gcc/testsuite/gcc.dg/Wstringop-overflow-23.c +++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-23.c @@ -166,7 +166,7 @@ void test_pfrd1 (void) } -WRONLY (4, 3) void (*pfwr4_3)(int, const char*, int, int*); +WRONLY (4, 3) void (*pfwr4_3)(int, const char*, int, int32_t*); void test_pfwr4_3 (void) { diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-24.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-24.c index 8a490d7b7ef..a21a1f17a2b 100644 --- a/gcc/testsuite/gcc.dg/Wstringop-overflow-24.c +++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-24.c @@ -23,7 +23,7 @@ extern char d1[1], d2[2], d3[3]; the attribute without a size operand. */ RDONLY (1) void -rd1_int (const int*); // { dg-message "in a call to function 'rd1_int' declared with attribute 'read_only \\\(1\\\)'" } +rd1_int (const int32_t*); // { dg-message "in a call to function 'rd1_int' declared with attribute 'read_only \\\(1\\\)'" } void test_rd1_int (void) { @@ -192,7 +192,7 @@ void test_pfrd1 (void) } -WRONLY (4, 3) void (*pfwr4_3)(int, const char*, int, int*); +WRONLY (4, 3) void (*pfwr4_3)(int, const char*, int, int32_t*); void test_pfwr4_3 (void) { -- 2.30.2