On 2015.10.31 at 08:33 +0100, Markus Trippelsdorf wrote: > On 2015.10.31 at 07:56 +0100, Andreas Schwab wrote: > > ../../gcc/ggc-common.c: In function 'void init_ggc_heuristics()': > > ../../gcc/ggc-common.c:822: error: 'GGC_MIN_EXPAND' was not declared in > > this scope > > ../../gcc/ggc-common.c:822: error: 'set_default_param_value' was not > > declared in this scope > > ../../gcc/ggc-common.c:823: error: 'GGC_MIN_HEAPSIZE' was not declared in > > this scope > > Yes. I've hit this issue also today. It only happens with > --enable-checking=release. > > 818 void > 819 init_ggc_heuristics (void) > 820 { > 821 #if !defined ENABLE_GC_CHECKING && !defined ENABLE_GC_ALWAYS_COLLECT > 822 set_default_param_value (GGC_MIN_EXPAND, ggc_min_expand_heuristic ()); > 823 set_default_param_value (GGC_MIN_HEAPSIZE, ggc_min_heapsize_heuristic > ()); > 824 #endif > 825 }
Fix committed as obvious: r229623 *ggc-common.c : Restore needed header for checking=release. diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 498853057e56..4bbe9168ff61 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see #include "timevar.h" #include "diagnostic-core.h" #include "ggc-internal.h" +#include "params.h" #include "hosthooks.h" #include "plugin.h" -- Markus