public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: chris@lslsun.epfl.ch (Christian Iseli)
To: crux@Pool.Informatik.RWTH-Aachen.DE
Cc: meissner@cygnus.com, law@cygnus.com, rth@cygnus.com,
	pcg@goof.com, egcs@cygnus.com
Subject: Re: question regarding asm()
Date: Tue, 09 Dec 1997 07:28:00 -0000	[thread overview]
Message-ID: <199712091527.QAA15896@lslsun17.epfl.ch> (raw)

Hello again...

I see one of your reload patches got into the latest snapshot... great!

I twiddled a little bit the other one (dated August 21...) and applied
it as well.  I still had some cases where the compiler stopped saying
"fixed or forbidden register was spilled...".  So I whipped up the
following kludge and now my test cases seem to compile fine (and run
fine too... :-)

Do you see anything blatantly wrong with this fix to your patch?

Thanks for your feedback,
					Christian

*** reload1.c.orig	Tue Dec  9 14:27:30 1997
--- reload1.c	Tue Dec  9 15:47:06 1997
*************** order_regs_for_reload (chain, global)
*** 1550,1563 ****
        hard_reg_n_uses[i].regno = i;
        hard_reg_n_uses[i].uses = 0;
  
!       if (fixed_regs[i] || i == HARD_FRAME_POINTER_REGNUM)
  	{
  	  SET_HARD_REG_BIT (bad_spill_regs, i);
  	  continue;
  	}
  
        regno = chain->inverse_renum_before[i];
!       if (regno < 0)
  	SET_HARD_REG_BIT (bad_spill_regs, i);
        else if (regno > 0 && ! REGNO_REG_SET_P (spilled_pseudos, regno))
  	{
--- 1550,1566 ----
        hard_reg_n_uses[i].regno = i;
        hard_reg_n_uses[i].uses = 0;
  
!       if (fixed_regs[i]
! 	  || (i == HARD_FRAME_POINTER_REGNUM
! 	      && (!SMALL_REGISTER_CLASSES
! 		  || frame_pointer_needed)))
  	{
  	  SET_HARD_REG_BIT (bad_spill_regs, i);
  	  continue;
  	}
  
        regno = chain->inverse_renum_before[i];
!       if (regno < 0 && !SMALL_REGISTER_CLASSES)
  	SET_HARD_REG_BIT (bad_spill_regs, i);
        else if (regno > 0 && ! REGNO_REG_SET_P (spilled_pseudos, regno))
  	{
*************** order_regs_for_reload (chain, global)
*** 1571,1577 ****
  	}
  
        regno = chain->inverse_renum_after[i];
!       if (regno < 0)
  	SET_HARD_REG_BIT (bad_spill_regs, i);
        else if (regno > 0 && ! REGNO_REG_SET_P (spilled_pseudos, regno)
  	       && regno != chain->inverse_renum_before[i])
--- 1574,1580 ----
  	}
  
        regno = chain->inverse_renum_after[i];
!       if (regno < 0 && !SMALL_REGISTER_CLASSES)
  	SET_HARD_REG_BIT (bad_spill_regs, i);
        else if (regno > 0 && ! REGNO_REG_SET_P (spilled_pseudos, regno)
  	       && regno != chain->inverse_renum_before[i])

             reply	other threads:[~1997-12-09  7:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-09  7:28 Christian Iseli [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-10-29  9:17 Christian Iseli
1997-10-29  2:28 Christian Iseli
1997-10-28  8:31 Christian Iseli
1997-10-28 10:25 ` Joern Rennecke
1997-10-29  5:13 ` Bernd Schmidt
1997-10-07 23:14 Marc Lehmann
1997-10-09  9:26 ` dtm
1997-10-15 21:03 ` Jeffrey A Law
1997-10-16  8:31   ` Richard Henderson
1997-10-16 15:19     ` Jeffrey A Law
1997-10-17  1:22       ` Bernd Schmidt
1997-10-17 12:44         ` Jeffrey A Law
1997-10-17 12:53         ` Michael Meissner
1997-10-20  4:29           ` Bernd Schmidt
     [not found] <9710040128.AA17540@rios1.watson.ibm.com>
1997-10-04  6:04 ` Marc Lehmann
1997-10-03 18:13 Marc Lehmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199712091527.QAA15896@lslsun17.epfl.ch \
    --to=chris@lslsun.epfl.ch \
    --cc=crux@Pool.Informatik.RWTH-Aachen.DE \
    --cc=egcs@cygnus.com \
    --cc=law@cygnus.com \
    --cc=meissner@cygnus.com \
    --cc=pcg@goof.com \
    --cc=rth@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).