Re: [PATCH] i386: Mask out the CF_SET bit for -fcf-protection check

2018-02-07 Thread Uros Bizjak
gcc.gnu.org >> Cc: Uros Bizjak ; Tsimbalist, Igor V >> >> Subject: [PATCH] i386: Mask out the CF_SET bit for -fcf-protection check >> >> Since ix86_option_override_internal sets the CF_SET bit in >> flag_cf_protection and it can be called more than once via pragma, >

RE: [PATCH] i386: Mask out the CF_SET bit for -fcf-protection check

2018-02-06 Thread Tsimbalist, Igor V
> -Original Message- > From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- > ow...@gcc.gnu.org] On Behalf Of H.J. Lu > Sent: Tuesday, February 6, 2018 10:09 PM > To: gcc-patches@gcc.gnu.org > Cc: Uros Bizjak ; Tsimbalist, Igor V > > Subject: [PATCH] i386: Mas

[PATCH] i386: Mask out the CF_SET bit for -fcf-protection check

2018-02-06 Thread H.J. Lu
Since ix86_option_override_internal sets the CF_SET bit in flag_cf_protection and it can be called more than once via pragma, we need to mask out the CF_SET bit when checking flag_cf_protection. OK for trunk if there is no regression? H.J. --- PR target/84248 * config/i386/i386.c