aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>2000-08-31 23:51:13 -0600
committerJeff Law <law@gcc.gnu.org>2000-08-31 23:51:13 -0600
commit893f3d5b03e40aaed3421e2124e2a2082801b8d9 (patch)
tree6eda621513e89e7a64c63aa1111e0fc56cdac356 /gcc
parent1b3d8f8a350ba123682377bc22e54750bc670f51 (diff)
downloadgcc-893f3d5b03e40aaed3421e2124e2a2082801b8d9.zip
gcc-893f3d5b03e40aaed3421e2124e2a2082801b8d9.tar.gz
gcc-893f3d5b03e40aaed3421e2124e2a2082801b8d9.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/arm.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f2f017d..ed8f18d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-31 Jeff Law <law@cygnus.com>
+
+ * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
+ when we can safely allocate new registers.
+
2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
* stmt.c (expand_asm_operands): Twiddle generating_concat_p
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 ();