Commit 08821333 by Martin Sebor Committed by Martin Sebor

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
parent 02a32ab4
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.
......
......@@ -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)
{
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment