summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-28 20:55:53 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-28 20:55:53 +0000
commitb724807daf09b51c6ee6e1fec1ad93efcc337474 (patch)
tree89a8108e2d073c2be0af417b2cde716262bb8d8f
parent0799886fcf0899e69569a293a75a9c295b7dd1c9 (diff)
downloadmpfr-b724807daf09b51c6ee6e1fec1ad93efcc337474.tar.gz
[tests] Increase buffer sizes to avoid a build failure with GCC 7
under some conditions due to the following bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79257 This increase is not a problem for the tests, where optimal code is useless. (merged changesets r11469,11470 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11537 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tl2b.c2
-rw-r--r--tests/tpow_all.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/tl2b.c b/tests/tl2b.c
index 2472b0afd..8e9052632 100644
--- a/tests/tl2b.c
+++ b/tests/tl2b.c
@@ -83,7 +83,7 @@ compute_l2b (int output)
mpfr_srcptr t;
int beta, i;
int error = 0;
- char buffer[30];
+ char buffer[256]; /* larger than needed, for maintainability */
for (beta = 2; beta <= BASE_MAX; beta++)
{
diff --git a/tests/tpow_all.c b/tests/tpow_all.c
index 059ab613a..ec7ef7b45 100644
--- a/tests/tpow_all.c
+++ b/tests/tpow_all.c
@@ -498,7 +498,7 @@ underflow_up1 (void)
for (i = 0; i <= 12; i++)
{
unsigned int flags = 0;
- char sy[16];
+ char sy[256]; /* larger than needed, for maintainability */
/* Test 2^(emin - i/4).
* --> Underflow iff i > 4.