aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/lto-opts.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 54c14cc..238eef6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-07 Jan Hubicka <jh@suse.cz>
+
+ PR lto/45375
+ * lto-opt.c (lto_reissue_options): Set flag_shlib.
+
2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
* target.def (function_switched_text_sections): New Hook.
diff --git a/gcc/lto-opts.c b/gcc/lto-opts.c
index 40a5db0..3f80e91 100644
--- a/gcc/lto-opts.c
+++ b/gcc/lto-opts.c
@@ -420,5 +420,9 @@ lto_reissue_options (void)
gcc_unreachable ();
}
+ /* Flag_shlib is usually set by finish_options, but we are issuing flag_pic
+ too late. */
+ if (flag_pic && !flag_pie)
+ flag_shlib = 1;
VEC_free (opt_t, heap, opts);
}