diff options
author | Martin Sebor <msebor@redhat.com> | 2019-12-06 18:23:41 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2019-12-06 11:23:41 -0700 |
commit | 0882133399afebcac9f6731a1b654363f0de456c (patch) | |
tree | 1e2eb492a42d5ac4fd77aee21d4a5eb5165169b6 /gcc | |
parent | 02a32ab4a6175f377a4b6f53159c6aae9a24a7cc (diff) | |
download | gcc-0882133399afebcac9f6731a1b654363f0de456c.zip gcc-0882133399afebcac9f6731a1b654363f0de456c.tar.gz gcc-0882133399afebcac9f6731a1b654363f0de456c.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Wstringop-overflow-23.c | 2 | ||||
-rw-r--r-- | 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 378e053..13a4744 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-12-06 Martin Sebor <msebor@redhat.com> + + * gcc.dg/Wstringop-overflow-23.c: Use the correct argument type. + * gcc.dg/Wstringop-overflow-24.c: Same. + 2019-12-06 Richard Sandiford <richard.sandiford@arm.com> * 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 f709434..6d9fcb9 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 8a490d7..a21a1f1 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) { |