aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1996-08-16 20:14:24 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1996-08-16 20:14:24 +0000
commitda39823a4c07de06f5a924fc8678eea8b4706bf2 (patch)
treeb75d1736b6054648dd75375f041906e06f09f41d /gcc
parentc8babb39777155c8fc1107e08223333e22421283 (diff)
downloadgcc-da39823a4c07de06f5a924fc8678eea8b4706bf2.zip
gcc-da39823a4c07de06f5a924fc8678eea8b4706bf2.tar.gz
gcc-da39823a4c07de06f5a924fc8678eea8b4706bf2.tar.bz2
Make -fpic work with -O3
From-SVN: r12648
Diffstat (limited to 'gcc')
-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 7223346..cb65dcf 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);