public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix bootstrap fail on spu vs. ira.c/genpreds
@ 2009-04-27 14:41 Dave Korn
  2009-04-27 15:34 ` Vladimir Makarov
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Dave Korn @ 2009-04-27 14:41 UTC (permalink / raw)
  To: GCC Patches


    Hello all,


  As discussed on the main list earlier today[*], there is currently an
implicit assumption in ira.c that every backend implements at least one
define_register_constraint; when the backend doesn't, genpreds does not output
any definition for regclass_for_constraint and then ira.c (which refers to it
unguarded) fails to link.


gcc/ChangeLog

	* ira.c (setup_cover_and_important_classes):  Use safe macro
	REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
	directly.
	* genpreds.c (write_tm_preds_h):  Output suitable definition of
	REG_CLASS_FOR_CONSTRAINT.

  The attached patch fixes the reported bug according to Revital; I'm putting
it through a bootstrap right now (all languages except for Ada), on
i686-pc-cygwin, which is a platform that won't hit the new code paths, so can
I skip running the testsuites?  Ok for trunk?

    cheers,
      DaveK
-- 
[*] - http://gcc.gnu.org/ml/gcc/2009-04/threads.html#00696

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-04-30 21:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-27 14:41 [PATCH] Fix bootstrap fail on spu vs. ira.c/genpreds Dave Korn
2009-04-27 15:34 ` Vladimir Makarov
2009-04-27 16:28   ` Dave Korn
2009-04-27 16:42     ` Vladimir Makarov
2009-04-27 16:45       ` Jakub Jelinek
2009-04-27 16:52         ` Vladimir Makarov
2009-04-27 16:57         ` Dave Korn
2009-04-28 13:13 ` Anthony Green
2009-04-30 23:21 ` Michael Meissner

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