This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch,Committed,AVR]: Don't use 'magic' register number.


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;
             }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]