public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch,Committed,AVR]: Don't use 'magic' register number.
@ 2011-07-08 13:21 Georg-Johann Lay
  0 siblings, 0 replies; only message in thread
From: Georg-Johann Lay @ 2011-07-08 13:21 UTC (permalink / raw)
  To: gcc-patches; +Cc: Denis Chertykov, Anatoly Sokolov, Eric Weddington

http://gcc.gnu.org/viewcvs?view=revision&revision=176041

Committed this patchlet as pre-approved by Denis.

Johann

	* config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
	of magic '31'.


--- trunk/gcc/config/avr/avr.c	2011/07/08 13:03:38	176040
+++ trunk/gcc/config/avr/avr.c	2011/07/08 13:09:07	176041
@@ -6239,7 +6239,7 @@
                  That's cheaper than loading from constant pool.  */

               cooked_clobber_p = true;
-              clobber_reg = gen_rtx_REG (QImode, 31);
+              clobber_reg = gen_rtx_REG (QImode, REG_Z + 1);
               avr_asm_len ("mov __tmp_reg__,%0", &clobber_reg, len, 1);
               break;
             }

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

only message in thread, other threads:[~2011-07-08 13:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-08 13:21 [Patch,Committed,AVR]: Don't use 'magic' register number Georg-Johann Lay

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