On 14/03/19 16:23, Richard Henderson wrote: > On 3/14/19 3:46 AM, Paolo Bonzini wrote: >> On 14/03/19 01:56, Richard Henderson wrote: >>> Hmm. The gcc for aarch64 names the similar feature -mbranch-protection. >>> I'm >>> rather annoyed that the i386 gcc folk appropriated a generic -f name without >>> actually making the feature generic at the same time. >> >> Wouldn't -fcf-protection=branch also apply to ARM BTI? > > It should, but doesn't. Which was sort of my point re non-coordination of > development.
I agree. We should open a GCC bug about it, to make sure that in the long run -fcf-protection does suffice on all architectures. Paolo