gcc/ChangeLog:
* context.c (context::~context): Free MPFR caches to avoid
a memory leak on program exit.
From-SVN: r245878
+2017-03-03 Martin Sebor <msebor@redhat.com>
+
+ PR tree-optimization/79699
+ * context.c (context::~context): Free MPFR caches to avoid
+ a memory leak on program exit.
+
2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64.c (aarch64_float_const_representable_p):
#include "context.h"
#include "pass_manager.h"
#include "dumpfile.h"
+#include "realmpfr.h"
/* The singleton holder of global state: */
gcc::context *g;
{
delete m_passes;
delete m_dumps;
+
+ /* Release MPFR caches to avoid Valgrind leak reports. */
+ mpfr_free_cache ();
}