public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fixing gcc.c-torture/compile/pr44707.c for CRIS v32 1/2.
@ 2012-07-16  3:51 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2012-07-16  3:51 UTC (permalink / raw)
  To: gcc-patches

Buglet in cris_preferred_reload_class, incidental, apparently
without effect at least regarding failing test-cases.  A class
disjunct from the input was returned as "preferred".  It could
arguably be gcc_asserted as a sanity-check by the caller that
the returned class is a subset of the original class.  ...and I
guess I'll add such a gcc_assert *inside*
cris_preferred_reload_class.  Later.  No regressions, cris-elf
and crisv32-elf.  Committed.

gcc:
	* config/cris/cris.c (cris_preferred_reload_class):
	Don't return GENERAL_REGS as preferred to MOF_SRP_REGS.

Index: gcc/config/cris/cris.c
===================================================================
--- gcc/config/cris/cris.c	(revision 189470)
+++ gcc/config/cris/cris.c	(working copy)
@@ -1503,6 +1550,7 @@ cris_preferred_reload_class (rtx x ATTRI
 {
   if (rclass != ACR_REGS
       && rclass != MOF_REGS
+      && rclass != MOF_SRP_REGS
       && rclass != SRP_REGS
       && rclass != CC0_REGS
       && rclass != SPECIAL_REGS)


brgds, H-P

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-16  3:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-16  3:51 Fixing gcc.c-torture/compile/pr44707.c for CRIS v32 1/2 Hans-Peter Nilsson

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).