[gcc r14-6545] [committed] Fix m68k testcase for c99

Jeff Law law@gcc.gnu.org
Thu Dec 14 13:32:52 GMT 2023


https://gcc.gnu.org/g:679adb2396a911b5999591f7a4f27a88064e91ff

commit r14-6545-g679adb2396a911b5999591f7a4f27a88064e91ff
Author: Jeff Law <jlaw@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:
---
 gcc/testsuite/gcc.target/m68k/pr63347.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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);
 }


More information about the Gcc-cvs mailing list