[gcc r14-6713] testsuite: adjust call to abort in excess-precision-12
Marc Poulhi?s
dkm@gcc.gnu.org
Tue Dec 19 15:04:44 GMT 2023
https://gcc.gnu.org/g:c37159d2e5340c8f81fd5cee70b00274dadaf903
commit r14-6713-gc37159d2e5340c8f81fd5cee70b00274dadaf903
Author: Marc Poulhiès <poulhies@adacore.com>
Date: Thu Nov 9 16:29:58 2023 +0100
testsuite: adjust call to abort in excess-precision-12
On non-hosted targets, cstdlib may not be sufficient to have abort
defined, but it should be for std::abort.
gcc/testsuite/ChangeLog:
* g++.target/i386/excess-precision-12.C: call std::abort instead of abort.
Diff:
---
gcc/testsuite/g++.target/i386/excess-precision-12.C | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/g++.target/i386/excess-precision-12.C b/gcc/testsuite/g++.target/i386/excess-precision-12.C
index dff48c07c8b..7cfd15d6136 100644
--- a/gcc/testsuite/g++.target/i386/excess-precision-12.C
+++ b/gcc/testsuite/g++.target/i386/excess-precision-12.C
@@ -13,8 +13,8 @@ main (void)
unsigned long long int u = (1ULL << 63) + 1;
if ((f <=> u) >= 0)
- abort ();
+ std::abort ();
if ((u <=> f) <= 0)
- abort ();
+ std::abort ();
}
More information about the Gcc-cvs
mailing list