[committed] Fix pr65369.c

Message ID d38084ec-7007-4454-9f0a-5f5f9e8dac40@gmail.com
State Committed
Commit 3da08ffa6df2634092a6292b045568fc326e28e6
Headers
Series [committed] Fix pr65369.c |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 warning Patch is already merged

Commit Message

Jeff Law Dec. 3, 2023, 5:41 a.m. UTC
  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.

Pushed to the trunk.

Jeff
commit 3da08ffa6df2634092a6292b045568fc326e28e6
Author: Jeff Law <jlaw@ventanamicro.com>
Date:   Sat Dec 2 22:40:41 2023 -0700

    [committed] Fix pr65369.c
    
    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.
  

Patch

diff --git a/gcc/testsuite/gcc.c-torture/execute/pr65369.c b/gcc/testsuite/gcc.c-torture/execute/pr65369.c
index 017fe1b01ce..548b48fa43f 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr65369.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr65369.c
@@ -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 ();