[PATCH] PR lto/70258: [6 Regression] flag_pic is cleared for PIE in lto_post_options

2016-03-19 Thread H.J. Lu
Since PIE implies PIC, we should set flag_pic to flag_pie for PIE in LTO. Tested on x86-64. OK for trunk? H.J. --- PR lto/70258 * lto-lang.c (lto_post_options): Set flag_pic to flag_pie for PIE. --- gcc/lto/lto-lang.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] PR lto/70258: [6 Regression] flag_pic is cleared for PIE in lto_post_options

2016-03-18 Thread Richard Biener
On Wed, Mar 16, 2016 at 10:47 PM, H.J. Lu wrote: > Since PIE implies PIC, we should set flag_pic to flag_pie for PIE in > LTO. > > Tested on x86-64. OK for trunk? Ok. I wonder if we need to do sth to flag_shlib here as well? Richard. > H.J. > --- > PR lto/70258