diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-07 18:21:00 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-07 18:21:00 +0000 |
commit | cee60343a6a96dcd44724027c6d980780b95c5e7 (patch) | |
tree | 4d034ee59a6290714b8af482f016e350589d7067 /gcc/lto-opts.c | |
parent | e079db8d5de396570c71a052e7cec3ff7e46f5ff (diff) | |
download | gcc-cee60343a6a96dcd44724027c6d980780b95c5e7.tar.gz |
PR lto/45375
* lto-opt.c (lto_reissue_options): Set flag_shlib.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168580 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-opts.c')
-rw-r--r-- | gcc/lto-opts.c | 4 |
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); } |