]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Avoid -Wincompatible-pointer-types on targets like arm-eabi.
authorMartin Sebor <msebor@redhat.com>
Fri, 6 Dec 2019 18:23:41 +0000 (18:23 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 6 Dec 2019 18:23:41 +0000 (11:23 -0700)
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
gcc/testsuite/gcc.dg/Wstringop-overflow-23.c
gcc/testsuite/gcc.dg/Wstringop-overflow-24.c

index 378e053f67ee06f4451a2eb812410e9c460dea49..13a4744f1dc16327a53453f105a2dac2add4935c 100644 (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.
index f7094342861e3b7d44c52e549694641a4b957d67..6d9fcb9d52ebf8176c0ceb44a431d2dccb6c7d85 100644 (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)
 {
index 8a490d7b7efd93b97ec7297ed093c93e3a4085d3..a21a1f17a2b38375e62e0f4c48e060382e35a5d2 100644 (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)
 {