PR rtl-optimization/25367
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Jan 2006 18:50:07 +0000 (18:50 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Jan 2006 18:50:07 +0000 (18:50 +0000)
* config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109551 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/sparc.h

index 3a87282..92fa318 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR rtl-optimization/25367
+       * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
+
 2006-01-10  Hans-Peter Nilsson  <hp@axis.com>
 
        PR target/25718
index a72cc90..bb4647c 100644 (file)
@@ -884,6 +884,11 @@ extern int sparc_mode_class[];
 #define HARD_REGNO_MODE_OK(REGNO, MODE) \
   ((hard_regno_mode_classes[REGNO] & sparc_mode_class[MODE]) != 0)
 
+/* Value is 1 if it is OK to rename a hard register FROM to another hard
+   register TO.  We cannot rename %g1 as it may be used before the save
+   register window instruction in the prologue.  */
+#define HARD_REGNO_RENAME_OK(FROM, TO) ((FROM) != 1)
+
 /* Value is 1 if it is a good idea to tie two pseudo registers
    when one has mode MODE1 and one has mode MODE2.
    If HARD_REGNO_MODE_OK could produce different values for MODE1 and MODE2,