From: Marc Poulhiès Date: Thu, 9 Nov 2023 15:29:58 +0000 (+0100) Subject: testsuite: adjust call to abort in excess-precision-12 X-Git-Tag: basepoints/gcc-15~3426 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c37159d2e5340c8f81fd5cee70b00274dadaf903;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/g++.target/i386/excess-precision-12.C b/gcc/testsuite/g++.target/i386/excess-precision-12.C index dff48c07c8b7..7cfd15d6136d 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 (); }