From f1fa37ff6bbd4f760f7df6e60dd44cf731d79f44 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 11 Apr 2001 18:22:46 +0000 Subject: Makefile.in (gcse.o): Depend on params.h. * Makefile.in (gcse.o): Depend on params.h. * gcse.c: Include params.h. (gcse_main): Don't do GCSE if doing so will take inordinate amounts of memory. * params.def (PARAM_MAX_GCSE_MEMORY): New parameter. * params.h (MAX_GCSE_MEMORY): New macro. From-SVN: r41260 --- gcc/params.def | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/params.def') diff --git a/gcc/params.def b/gcc/params.def index aae7068..749414f 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -66,6 +66,13 @@ DEFPARAM(PARAM_MAX_DELAY_SLOT_LIVE_SEARCH, "The maximum number of instructions to consider to find accurate live register information", 333) +/* The GCSE optimization will be disabled if it would require + significantly more memory than this value. */ +DEFPARAM(PARAM_MAX_GCSE_MEMORY, + "max-gcse-memory", + "The maximum amount of memory to be allocated by GCSE", + 50 * 1024 * 1024) + /* Local variables: mode:c -- cgit v1.1