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
This commit is contained in:
Martin Sebor 2019-12-06 18:23:41 +00:00 committed by Martin Sebor
parent 02a32ab4a6
commit 0882133399
3 changed files with 8 additions and 3 deletions

View file

@ -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.

View file

@ -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)
{

View file

@ -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)
{