Commit 65991ea3 by Jan Hubicka Committed by Jan Hubicka

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

From-SVN: r253729
parent 9cdc325a
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> 2017-10-11 Nathan Sidwell <nathan@acm.org>
* lto.c (mentions_vars_p_decl_with_vis): Use * lto.c (mentions_vars_p_decl_with_vis): Use
......
...@@ -854,11 +854,13 @@ lto_post_options (const char **pfilename ATTRIBUTE_UNUSED) ...@@ -854,11 +854,13 @@ lto_post_options (const char **pfilename ATTRIBUTE_UNUSED)
flag_pie is 2. */ flag_pie is 2. */
flag_pie = MAX (flag_pie, flag_pic); flag_pie = MAX (flag_pie, flag_pic);
flag_pic = flag_pie; flag_pic = flag_pie;
flag_shlib = 0;
break; break;
case LTO_LINKER_OUTPUT_EXEC: /* Normal executable */ case LTO_LINKER_OUTPUT_EXEC: /* Normal executable */
flag_pic = 0; flag_pic = 0;
flag_pie = 0; flag_pie = 0;
flag_shlib = 0;
break; break;
case LTO_LINKER_OUTPUT_UNKNOWN: case LTO_LINKER_OUTPUT_UNKNOWN:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment