This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH] libstdc++ testsuite, silence a FreeBSD libm warning
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 30 Sep 2019 19:09:10 +0200
- Subject: [PATCH] libstdc++ testsuite, silence a FreeBSD libm warning
Hi all,
the attached patch tries to silence a warning from the msun of FreeBSD.
When compiling the special_functions testcases, I get excess errors
because of this warning:
warning: tgammal has lower than advertised precision
With the patch, all special_functions test cases pass now.
What do you think?
TIA,
Andreas
2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
* testsuite/lib/prune.exp (libstdc++-dg-prune): Ignore the FreeBSD
warning about lower advertised precision of tgammal.
Index: testsuite/lib/prune.exp
===================================================================
--- testsuite/lib/prune.exp (revision 276342)
+++ testsuite/lib/prune.exp (working copy)
@@ -66,6 +66,10 @@
# Ignore harmless warnings from Xcode 4.0.
regsub -all "(^|\n)\[^\n\]*ld: warning: could not create compact
unwind for\[^\n\]*" $text "" text
+ # Ignore FreeBSD msun warning
+ regsub -all "(^|\n)\[^\n]*ld: \[^\n\]* in function \[^\n\]*" $text
"" text
+ regsub -all "(^|\n)\[^\n]*warning: tgammal has lower than
advertised precision" $text "" text
+
foreach p $additional_prunes {
if { [string length $p] > 0 } {
# Following regexp matches a complete line containing $p.