* lto-lang.c (lto_post_options): Clean shlib flag when not doing PIC.
authorJan Hubicka <hubicka@ucw.cz>
Fri, 13 Oct 2017 13:44:05 +0000 (15:44 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 13 Oct 2017 13:44:05 +0000 (13:44 +0000)
From-SVN: r253729

gcc/lto/ChangeLog
gcc/lto/lto-lang.c

index 3e6b00bc487091bdeaf0f196382faebfcb1b06c0..173cde67369d7f6ff9d7a85b0aede8b1f9c34f13 100644 (file)
@@ -1,3 +1,7 @@
+2017-10-13  Jan Hubicka  <hubicka@ucw.cz>
+
+       * lto-lang.c (lto_post_options): Clean shlib flag when not doing PIC.
+
 2017-10-11  Nathan Sidwell  <nathan@acm.org>
 
        * lto.c (mentions_vars_p_decl_with_vis): Use
index eaf793383f7718f7ac5178f5ad09735ecb6da60d..88f29705e65cb9d2c28f6f39d0ca9df6c06eb83a 100644 (file)
@@ -854,11 +854,13 @@ lto_post_options (const char **pfilename ATTRIBUTE_UNUSED)
          flag_pie is 2.  */
       flag_pie = MAX (flag_pie, flag_pic);
       flag_pic = flag_pie;
+      flag_shlib = 0;
       break;
 
     case LTO_LINKER_OUTPUT_EXEC: /* Normal executable */
       flag_pic = 0;
       flag_pie = 0;
+      flag_shlib = 0;
       break;
 
     case LTO_LINKER_OUTPUT_UNKNOWN: