From 94aaab7af9eee21fd6ee757b0840f9b06b64de11 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 29 Aug 2000 14:18:01 -0700 Subject: [PATCH] reload.c (push_secondary_reload): Allow class == reload_class if we're using a reload_in/out pattern. * reload.c (push_secondary_reload): Allow class == reload_class if we're using a reload_in/out pattern. From-SVN: r36052 --- gcc/ChangeLog | 5 +++++ gcc/reload.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f0d1b058f57c..efd94d8db840 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-08-29 Richard Henderson + + * reload.c (push_secondary_reload): Allow class == reload_class + if we're using a reload_in/out pattern. + 2000-08-29 Kazu Hirata * reload.c: Fix formatting. diff --git a/gcc/reload.c b/gcc/reload.c index c82b66a597aa..ee2fa4884d27 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -411,11 +411,11 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode, can not use secondary reloads, you must work around the problem some other way. - Allow this when MODE is not reload_mode and assume that the generated - code handles this case (it does on the Alpha, which is the only place - this currently happens). */ + Allow this when a reload_in/out pattern is being used. I.e. assume + that the generated code handles this case. */ - if (in_p && class == reload_class && mode == reload_mode) + if (in_p && class == reload_class && icode == CODE_FOR_nothing + && t_icode == CODE_FOR_nothing) abort (); /* If we need a tertiary reload, see if we have one we can reuse or else -- 2.47.2