From: Nick Clifton Date: Fri, 29 Oct 2004 07:15:10 +0000 (+0000) Subject: (CONDITIONAL_REGISTER_USAGE): When adding the PIC register to the fixed_regs array... X-Git-Tag: releases/gcc-4.0.0~3581 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07c05acd82081dbc55bccab05e730898adb1a1ef;p=thirdparty%2Fgcc.git (CONDITIONAL_REGISTER_USAGE): When adding the PIC register to the fixed_regs array... (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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0fef4720a965..8ad6c075d8bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-10-29 Nick Clifton + + 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 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h index df1a4b114448..f6e251e90c1e 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