re PR lto/45375 ([meta-bug] Issues with building Mozilla (i.e. Firefox) with LTO)
authorJan Hubicka <jh@suse.cz>
Fri, 7 Jan 2011 18:21:00 +0000 (19:21 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 7 Jan 2011 18:21:00 +0000 (18:21 +0000)
PR lto/45375
* lto-opt.c (lto_reissue_options): Set flag_shlib.

From-SVN: r168580

gcc/ChangeLog
gcc/lto-opts.c

index 54c14cc9236c8e3be7603583d6f295c7121d0b6f..238eef6c6758d95f402782d67f00c685e4335e06 100644 (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.
index 40a5db0f8a8a9b690ca695db3c273eb591d4efff..3f80e91b5b13238d117b33f154ef6afcf94675ab 100644 (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);
 }