]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Backport r253729
authorMartin Liska <mliska@suse.cz>
Wed, 7 Mar 2018 09:42:53 +0000 (10:42 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 7 Mar 2018 09:42:53 +0000 (09:42 +0000)
2018-03-07  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-10-13  Jan Hubicka  <hubicka@ucw.cz>

* lto-lang.c (lto_post_options): Clean shlib flag when not doing PIC.

From-SVN: r258318

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

index 16431e8dc65e74d2f5a5116c300cfed6b01cb89c..940e6d2662ece61457dbf9e8dacb2b4485ddcdfe 100644 (file)
@@ -1,3 +1,10 @@
+2018-03-07  Martin Liska  <mliska@suse.cz>
+
+       Backport from mainline
+       2017-10-13  Jan Hubicka  <hubicka@ucw.cz>
+
+       * lto-lang.c (lto_post_options): Clean shlib flag when not doing PIC.
+
 2017-07-04  Release Manager
 
        * GCC 6.4.0 released.
index ebe908a3e17132dd2f52f0be3b7e1ee32074e782..0b0db6195627a836eeee2e755ba6bbe76f4542f0 100644 (file)
@@ -837,11 +837,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: