diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-10-13 15:44:05 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-10-13 13:44:05 +0000 |
commit | 65991ea3f80607b9d771055770c518c81f2a63a6 (patch) | |
tree | 0ab78bd8911fb65ea524af640c798156b812390c /gcc/lto | |
parent | 9cdc325aa7728bb1b8938ccdc2e0652fbbc194da (diff) | |
download | gcc-65991ea3f80607b9d771055770c518c81f2a63a6.zip gcc-65991ea3f80607b9d771055770c518c81f2a63a6.tar.gz gcc-65991ea3f80607b9d771055770c518c81f2a63a6.tar.bz2 |
* lto-lang.c (lto_post_options): Clean shlib flag when not doing PIC.
From-SVN: r253729
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/lto/lto-lang.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 3e6b00b..173cde6 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -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 diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c index eaf7933..88f2970 100644 --- a/gcc/lto/lto-lang.c +++ b/gcc/lto/lto-lang.c @@ -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: |