Check current_function_uses_pic_offset_table, not pic_offset_table_rtx
From-SVN: r12624
This commit is contained in:
parent
961b7009ee
commit
2954cae083
|
@ -2072,7 +2072,7 @@ struct rtx_def *
|
|||
rs6000_got_register (value)
|
||||
rtx value;
|
||||
{
|
||||
if (!pic_offset_table_rtx)
|
||||
if (!current_function_uses_pic_offset_table)
|
||||
{
|
||||
if (reload_in_progress || reload_completed)
|
||||
fatal_insn ("internal error -- needed new GOT register during reload phase to load:", value);
|
||||
|
|
Loading…
Reference in New Issue