summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/rs6000.c
diff options
context:
space:
mode:
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-08-16 20:14:24 +0000
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-08-16 20:14:24 +0000
commit75b8b2b9330c44600fa0b1523e305f428880c80e (patch)
treeb75d1736b6054648dd75375f041906e06f09f41d /gcc/config/rs6000/rs6000.c
parentfa847262e3af602c1cd5785b237820fe186664b9 (diff)
downloadgcc-75b8b2b9330c44600fa0b1523e305f428880c80e.tar.gz
Make -fpic work with -O3
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12648 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/rs6000.c')
-rw-r--r--gcc/config/rs6000/rs6000.c2
1 files changed, 1 insertions, 1 deletions
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);