]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(CONDITIONAL_REGISTER_USAGE): When adding the PIC register to the fixed_regs array...
authorNick Clifton <nickc@redhat.com>
Fri, 29 Oct 2004 07:15:10 +0000 (07:15 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Fri, 29 Oct 2004 07:15:10 +0000 (07:15 +0000)
(CONDITIONAL_REGISTER_USAGE): When adding the PIC register to the fixed_regs
  array, also add it to the call_used_regs array.

From-SVN: r89818

gcc/ChangeLog
gcc/config/mn10300/mn10300.h

index 0fef4720a9650799e6c65b591d471aa1236da59d..8ad6c075d8bd7352452330e57138fe0e1b85c824 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-29  Nick Clifton  <nickc@redhat.com>
+
+       config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
+       adding the PIC register to the fixed_regs array, also add it
+       to the call_used_regs array.  
+
 2004-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
index df1a4b114448f5db6850fe3af2dc087e72692f4b..f6e251e90c1e80db021a29c223111c9ea34450ed 100644 (file)
@@ -215,7 +215,8 @@ extern GTY(()) int mn10300_unspec_int_label_counter;
        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;\
 }
 
 /* Return number of consecutive hard regs needed starting at reg REGNO