* [committed] Fix m68k testcase for c99
@ 2023-12-14 13:33 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-12-14 13:33 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
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
[-- Attachment #2: P --]
[-- Type: text/plain, Size: 1165 bytes --]
commit 679adb2396a911b5999591f7a4f27a88064e91ff
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 --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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-14 13:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-14 13:33 [committed] Fix m68k testcase for c99 Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).