m68k.c (output_function_prologue): Fix computation of save mask when generating PIC code.

* m68k.c (output_function_prologue): Fix computation of save mask
        when generating PIC code.

From-SVN: r28119
This commit is contained in:
Jeffrey A Law 1999-07-16 07:41:49 +00:00 committed by Jeff Law
parent 3cda32a10b
commit df59fef773
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Jul 16 01:39:57 1999 Jeffrey A Law (law@cygnus.com)
* m68k.c (output_function_prologue): Fix computation of save mask
when generating PIC code.
Thu Jul 15 15:40:09 1999 Jim Wilson <wilson@cygnus.com>
* tree.c (build_type_attribute_variant): Move current_obstack restore

View File

@ -358,7 +358,10 @@ output_function_prologue (stream, size)
num_saved_regs--;
}
if (flag_pic && regs_ever_live[PIC_OFFSET_TABLE_REGNUM])
mask |= 1 << PIC_OFFSET_TABLE_REGNUM;
{
mask |= 1 << (15 - PIC_OFFSET_TABLE_REGNUM);
num_saved_regs++;
}
#if NEED_PROBE
#ifdef MOTOROLA