]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA case.
authorJeffrey A Law <law@cygnus.com>
Mon, 28 Jun 1999 05:09:08 +0000 (05:09 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 28 Jun 1999 05:09:08 +0000 (23:09 -0600)
        * m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA
        case.  Also make the PIC register call_used.

From-SVN: r27808

gcc/ChangeLog
gcc/config/m68k/m68k.h

index 2dc9103ee013f5b3d2bd0ae20fe59ae08f5e5ff8..be29184e42655a83a3bf38cecae88ad1dc2bf273 100644 (file)
@@ -1,5 +1,8 @@
 Mon Jun 28 05:32:09 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA
+       case.  Also make the PIC register call_used.
+
         * m68k.h (FINALIZE_PIC): Delete.
         * m68k.c (finalize_pic): Delete.
 
index 0864d9ee7e955910d55758bf350e674a97fb574b..9a58f1db6bea2842ee222f4f912ab85010e85e6e 100644 (file)
@@ -442,9 +442,16 @@ extern int target_flags;
        fixed_regs[i] = call_used_regs[i] = 1;  \
     }                                          \
   if (flag_pic)                                        \
-    fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1;   \
+    fixed_regs[PIC_OFFSET_TABLE_REGNUM]                \
+      = call_used_regs[PIC_OFFSET_TABLE_REGNUM] = 1;\
+}
+#else
+#define CONDITIONAL_REGISTER_USAGE \
+{                                              \
+  if (flag_pic)                                        \
+    fixed_regs[PIC_OFFSET_TABLE_REGNUM]                \
+      = call_used_regs[PIC_OFFSET_TABLE_REGNUM] = 1;\
 }
-
 #endif /* defined SUPPORT_SUN_FPA */
 
 /* Return number of consecutive hard regs needed starting at reg REGNO