On 15/01/18 19:59 +0000, Jonathan Wakely wrote:
The chi_squared_distribution::param(const param&) function should also
update the parameters of the gamma_distribution member.

        PR libstdc++/83833
        * include/bits/random.h (chi_squared_distribution::param): Update
        gamma distribution parameter.
        * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
        test.

Tested powerpc64le-linux, committed to trunk.

(I know this is not a regression, but it's a small fix, and I also
plan to apply it on the branches).

This is needed to prevent the test failing on x86-32.

Committed to trunk and gcc-7-branch.



commit 7b450fcaf80dc75b7007de5f5fd82489cfc92eee
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Mon Jan 29 14:06:37 2018 +0000

    PR libstdc++/83833 fix failing test on ia32
    
            PR libstdc++/83833
            * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
            Add -ffloat-store to options for m68k and ia32.

diff --git a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/83833.cc b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/83833.cc
index 01667635b41..087c9368ce4 100644
--- a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/83833.cc
+++ b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/83833.cc
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++11 } }
+// // { dg-additional-options "-ffloat-store" { target { m68*-*-* || ia32 } } }
 
 #include <random>
 #include <testsuite_hooks.h>

Reply via email to