summaryrefslogtreecommitdiff
path: root/gcc/lto-opts.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-01-07 19:21:00 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2011-01-07 18:21:00 +0000
commitfe95fbf90773ebf53740e46a38ea5e923233a25b (patch)
tree4d034ee59a6290714b8af482f016e350589d7067 /gcc/lto-opts.c
parenteaf31d823ff3421a12139fec6d7c9788cf456667 (diff)
downloadgcc-fe95fbf90773ebf53740e46a38ea5e923233a25b.tar.gz
re PR lto/45375 ([meta-bug] Issues with building Mozilla (i.e. Firefox) with LTO)
PR lto/45375 * lto-opt.c (lto_reissue_options): Set flag_shlib. From-SVN: r168580
Diffstat (limited to 'gcc/lto-opts.c')
-rw-r--r--gcc/lto-opts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/lto-opts.c b/gcc/lto-opts.c
index 40a5db0f8a8..3f80e91b5b1 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);
}