re PR rtl-optimization/25367 (-O1 -funroll-loops leads to segfault)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Tue, 10 Jan 2006 18:50:07 +0000 (19:50 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 10 Jan 2006 18:50:07 +0000 (18:50 +0000)
PR rtl-optimization/25367
* config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.

From-SVN: r109551

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,