diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/mn10300/mn10300.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0fef472..8ad6c07 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h index df1a4b1..f6e251e 100644 --- a/gcc/config/mn10300/mn10300.h +++ b/gcc/config/mn10300/mn10300.h @@ -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 |