Make -fpic work with -O3
authorMichael Meissner <meissner@gcc.gnu.org>
Fri, 16 Aug 1996 20:14:24 +0000 (20:14 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 16 Aug 1996 20:14:24 +0000 (20:14 +0000)
From-SVN: r12648

gcc/config/rs6000/rs6000.c

index 7223346837639cc7bd2583a66a78742549f01feb..cb65dcf1fc4854bf43057577d8cc215358cf92e0 100644 (file)
@@ -2072,7 +2072,7 @@ struct rtx_def *
 rs6000_got_register (value)
      rtx value;
 {
-  if (!current_function_uses_pic_offset_table)
+  if (!current_function_uses_pic_offset_table || !pic_offset_table_rtx)
     {
       if (reload_in_progress || reload_completed)
        fatal_insn ("internal error -- needed new GOT register during reload phase to load:", value);