]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[committed] Fix pr65369.c
authorJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:40:41 +0000 (22:40 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:40:41 +0000 (22:40 -0700)
There's a caller/callee type mismatch in this test that shows up on targets
where ints are something other than 32 bit types.

Based on reviewing the original bug report, the fix and the part of the test
this fixes, I'm reasonably confident this hasn't compromised the test.

gcc/testsuite
* gcc.c-torture/execute/pr65369.c: Fix type mismatch.

gcc/testsuite/gcc.c-torture/execute/pr65369.c

index 017fe1b01ce26d169b94b52ddbb4f95387bf73a5..548b48fa43f3135e8715eac769e7c42d074b2e42 100644 (file)
@@ -6,7 +6,7 @@ static const char data[] =
   "123456789012345678901234567890";
 
 __attribute__ ((noinline))
-static void foo (const unsigned int *buf)
+static void foo (const uint32_t *buf)
 {
   if (__builtin_memcmp (buf, data, 64))
     __builtin_abort ();