Fix glibc 2.2 build failure from fr reunification patch.
authorJim Wilson <wilson@cygnus.com>
Thu, 6 Jul 2000 01:31:15 +0000 (01:31 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 6 Jul 2000 01:31:15 +0000 (18:31 -0700)
* config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
CCmode.

From-SVN: r34881

gcc/ChangeLog
gcc/config/ia64/ia64.h

index 7c41998..a670d87 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-05  Jim Wilson  <wilson@cygnus.com>
+
+       * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
+       CCmode.
+
 2000-07-05  Rodney Brown  <RodneyBrown@pmsc.com>
 
        * invoke.texi: Fix minor typos
index b2c80cd..9db1675 100644 (file)
@@ -812,7 +812,9 @@ while (0)
    that one).  */
 /* ??? movxf_internal does not support XFmode values in integer registers.  */
 #define HARD_REGNO_MODE_OK(REGNO, MODE) \
-  (PR_REGNO_P (REGNO) ? (MODE) == CCmode : 1)
+  (FR_REGNO_P (REGNO) ? (MODE) != CCmode                               \
+   : PR_REGNO_P (REGNO) ? (MODE) == CCmode                             \
+   : 1)
 
 /* A C expression that is nonzero if it is desirable to choose register
    allocation so as to avoid move instructions between a value of mode MODE1