From 893f3d5b03e40aaed3421e2124e2a2082801b8d9 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Thu, 31 Aug 2000 23:51:13 -0600 Subject: arm.c (legitimize_pic_address): Use no_new_pseudos to determine when we can safely allocate new registers. * arm.c (legitimize_pic_address): Use no_new_pseudos to determine when we can safely allocate new registers. From-SVN: r36089 --- gcc/config/arm/arm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/config') diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 6abe732..609536b 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -1895,7 +1895,7 @@ legitimize_pic_address (orig, mode, reg) if (reg == 0) { - if (reload_in_progress || reload_completed) + if (no_new_pseudos) abort (); else reg = gen_reg_rtx (Pmode); @@ -1938,7 +1938,7 @@ legitimize_pic_address (orig, mode, reg) if (reg == 0) { - if (reload_in_progress || reload_completed) + if (no_new_pseudos) abort (); else reg = gen_reg_rtx (Pmode); @@ -1959,7 +1959,7 @@ legitimize_pic_address (orig, mode, reg) test the index for the appropriate mode. */ GO_IF_LEGITIMATE_INDEX (mode, 0, offset, win); - if (! reload_in_progress && ! reload_completed) + if (! no_new_pseudos) offset = force_reg (Pmode, offset); else abort (); -- cgit v1.1