From: Michael Meissner Date: Fri, 16 Aug 1996 20:14:24 +0000 (+0000) Subject: Make -fpic work with -O3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da39823a4c07de06f5a924fc8678eea8b4706bf2;p=gcc.git Make -fpic work with -O3 From-SVN: r12648 --- diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 72233468376..cb65dcf1fc4 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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);