Set flag_pic to flag_pie for PIE in LTO
commit21dae9f707008039d857697c3263d55b74627b49
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Mar 2016 11:07:10 +0000 (17 11:07 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Mar 2016 11:07:10 +0000 (17 11:07 +0000)
tree20821b0ae8514bf944facf2b9ea5b63d7a2b720a
parent9b60ef2111fb6540afa49b536f4f0f98d52c8f5c
Set flag_pic to flag_pie for PIE in LTO

Since PIE implies PIC, we should set flag_pic to flag_pie for PIE in
LTO.

PR lto/70258
* lto-lang.c (lto_post_options): Set flag_pic to flag_pie for
PIE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234284 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/lto/ChangeLog
gcc/lto/lto-lang.c