From 321c0828275afc28ac94cfe0f4f6ee50b4edad70 Mon Sep 17 00:00:00 2001 From: Manfred Hollstein Date: Thu, 19 Mar 1998 00:16:37 +0000 Subject: [PATCH] regclass.c (memory_move_secondary_cost): Wrap uses of SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS... P * regclass.c (memory_move_secondary_cost): Wrap uses of SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS with #ifdef tests. From-SVN: r18699 --- gcc/regclass.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/regclass.c b/gcc/regclass.c index 4cc02080c9f..e96420bcfea 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -444,9 +444,17 @@ memory_move_secondary_cost (mode, class, in) mem = gen_rtx (MEM, mode, stack_pointer_rtx); if (in) +#ifdef SECONDARY_INPUT_RELOAD_CLASS altclass = SECONDARY_INPUT_RELOAD_CLASS (class, mode, mem); +#else + altclass = NO_REGS; +#endif else +#ifdef SECONDARY_OUTPUT_RELOAD_CLASS altclass = SECONDARY_OUTPUT_RELOAD_CLASS (class, mode, mem); +#else + altclass = NO_REGS; +#endif if (altclass == NO_REGS) return 0; -- 2.30.2