http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59492
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ubizjak at gmail dot com --- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> --- We should never change -fPIC. This patch fixes it: diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 9fd6baa..2d79ee6 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -4333,6 +4333,9 @@ ix86_function_specific_restore (struct gcc_options *opts, unsigned int ix86_arch_mask; int i; + /* We don't change -fPIC. */ + opts->x_flag_pic = flag_pic; + ix86_arch = (enum processor_type) ptr->arch; ix86_schedule = (enum attr_cpu) ptr->schedule; ix86_tune = (enum processor_type) ptr->tune;