]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: testsuite: Guard use of C99 std::log2
authorJonathan Wakely <jwakely@redhat.com>
Tue, 28 Jun 2022 08:17:06 +0000 (09:17 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 28 Jun 2022 08:29:24 +0000 (09:29 +0100)
commit30aea28bd30027e0a6be8e3077828256779954b3
tree56d8b5e3dc6245ddd8678f19c3cc246c0fee180c
parent10caa98a3792caae367844f08946f849210c1753
libstdc++: testsuite: Guard use of C99 std::log2

This prevents the test from failing if the only thing not supported is
the text printed to the log about the size of the floating-point type.

libstdc++-v3/ChangeLog:

* testsuite/20_util/from_chars/4.cc: Only use log2 if C99 math
functions are available.
libstdc++-v3/testsuite/20_util/from_chars/4.cc