]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[committed] Fix m68k testcase for c99
authorJeff Law <jlaw@ventanamicro.com>
Thu, 14 Dec 2023 13:31:49 +0000 (06:31 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Thu, 14 Dec 2023 13:31:49 +0000 (06:31 -0700)
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.

gcc/testsuite/gcc.target/m68k/pr63347.c

index 63964769766aefae7fdf9895cc3d84a3edba5987..b817f4694f3bbbbd0404c5f8ac47dacd8e6be8fd 100644 (file)
@@ -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);
 }