diff options
author | Jeff Law <jlaw@ventanamicro.com> | 2023-12-14 06:31:49 -0700 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2023-12-14 06:31:49 -0700 |
commit | 679adb2396a911b5999591f7a4f27a88064e91ff (patch) | |
tree | 86ad3b2bd432beef18b3bc8f56c3956afc8473fb | |
parent | 65e41f4fbfc539c5cc429c684176f8ea39f4b8f2 (diff) | |
download | gcc-679adb2396a911b5999591f7a4f27a88064e91ff.zip gcc-679adb2396a911b5999591f7a4f27a88064e91ff.tar.gz gcc-679adb2396a911b5999591f7a4f27a88064e91ff.tar.bz2 |
[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.
-rw-r--r-- | gcc/testsuite/gcc.target/m68k/pr63347.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.target/m68k/pr63347.c b/gcc/testsuite/gcc.target/m68k/pr63347.c index 6396476..b817f46 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); } |