More fallout from the c99 conversion. The m68k specific test pr63347.c calls exit and abort without a prototype in scope. This patch turns them into __builtin calls avoiding the error.

Bootstrapped and regression tested on m68k-linux-gnu, pushed to the trunk.

Jeff
commit 679adb2396a911b5999591f7a4f27a88064e91ff
Author: Jeff Law <j...@ventanamicro.com>
Date:   Thu Dec 14 06:31:49 2023 -0700

    [committed] Fix m68k testcase for c99
    
    More fallout from the c99 conversion.   The m68k specific test pr63347.c 
calls
    exit and abort without a prototype in scope.  This patch turns them into
    __builtin calls avoiding the error.
    
    Bootstrapped and regression tested on m68k-linux-gnu, pushed to the trunk.
    
    gcc/testsuite
            * gcc.target/m68k/pr63347.c: Call __builtin_abort and __builtin_exit
            instead of abort and exit.

diff --git a/gcc/testsuite/gcc.target/m68k/pr63347.c 
b/gcc/testsuite/gcc.target/m68k/pr63347.c
index 63964769766..b817f4694f3 100644
--- a/gcc/testsuite/gcc.target/m68k/pr63347.c
+++ b/gcc/testsuite/gcc.target/m68k/pr63347.c
@@ -32,13 +32,13 @@ int main(int argc, char *argv[])
     myaddr = 0x0;
     ret = print_info(&myaddr);
     if (!ret)
-        abort ();
+        __builtin_abort ();
 
     myaddr = 0x01020304;
     ret = print_info(&myaddr);
     if (ret)
-        abort ();
-    exit (0);
+        __builtin_abort ();
+    __builtin_exit (0);
 }
 
 

Reply via email to