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
This commit is contained in:
Jan Hubicka 2011-01-07 19:21:00 +01:00 committed by Jan Hubicka
parent eaf31d823f
commit fe95fbf907
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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);
}