From: Martin Sebor Date: Fri, 23 Sep 2016 17:55:29 +0000 (+0000) Subject: re PR testsuite/77713 (gcc.dg/tree-ssa/builtin-sprintf.c compilation failed to produc... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0535922dc32f753491e2f257e275006df251f49;p=gcc.git re PR testsuite/77713 (gcc.dg/tree-ssa/builtin-sprintf.c compilation failed to produce executable) gcc/testsuite/ChangeLog: PR testsuite/77713 * gcc.dg/tree-ssa/builtin-sprintf.c (test_e_long_double): Avoid assuming long double is bigger than double. From-SVN: r240450 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 080e55604ec..a9a52c965db 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-09-23 Martin Sebor + + PR testsuite/77713 + * gcc.dg/tree-ssa/builtin-sprintf.c (test_e_long_double): Avoid + assuming long double is bigger than double. + 2016-09-23 Jakub Jelinek Implement P0138R2, C++17 construction rules for enum class values diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c index 1e50be15f05..b8b332fe8c8 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf.c @@ -420,7 +420,12 @@ test_e_long_double (void) EQL (12, 13, "%Le", 9.999e+99L); EQL (12, 13, "%Le", 9.9999e+99L); EQL (12, 13, "%Le", 9.99999e+99L); + +#if __DBL_DIG__ < __LDBL_DIG__ EQL (12, 13, "%Le", 9.999999e+99L); +#else + RNG (12, 13, 14, "%Le", 9.999999e+99L); +#endif /* The actual output of the following directive depends on the rounding mode. */