https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84248

--- Comment #5 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Wed Feb  7 10:48:39 2018
New Revision: 257444

URL: https://gcc.gnu.org/viewcvs?rev=257444&root=gcc&view=rev
Log:
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,
we need to mask out the CF_SET bit when checking flag_cf_protection.

        PR target/84248
        * config/i386/i386.c (ix86_option_override_internal): Mask out
        the CF_SET bit when checking -fcf-protection.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c

Reply via email to