[binutils-gdb] ld: fix C23 issue in vers7 test

Sam James sjames@sourceware.org
Wed May 14 06:23:13 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6ebd38072de4a77a2d28f04a79b64ab570532e98

commit 6ebd38072de4a77a2d28f04a79b64ab570532e98
Author: Sam James <sam@gentoo.org>
Date:   Wed May 14 06:38:56 2025 +0100

    ld: fix C23 issue in vers7 test
    
    This test is UNSUPPORTED on arm64 with GCC 15 (which defaults to -std=gnu23)
    because it now prototypes "no arguments".
    
            PR ld/32546
            * ld-elfvers/vers7.c: Fix function definitions for C23.

Diff:
---
 ld/testsuite/ld-elfvers/vers7.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ld/testsuite/ld-elfvers/vers7.c b/ld/testsuite/ld-elfvers/vers7.c
index 54316c92429..a4fb2543fcf 100644
--- a/ld/testsuite/ld-elfvers/vers7.c
+++ b/ld/testsuite/ld-elfvers/vers7.c
@@ -2,8 +2,8 @@
  * Test program that goes with test7.so
  */
 
-extern int hide_a();
-extern int show_b();
+extern int hide_a(int e);
+extern int show_b(int e);
 
 int
 main()


More information about the Binutils-cvs mailing list