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

--- Comment #4 from Haochen Jiang <haochen.jiang at intel dot com> ---
(In reply to Richard Biener from comment #3)
> Hmm, but why would __attribute__((target("avx10.1"))) care for global -mno-*?

It is caused by we are keeping that behavior same as command line option and
going through the whole ix86_option_override_internal, resulting in it is
equivalent to "-march=native -mavx10.1".

In this case, it will finally become "-march=znver5 -mxyz -mno-abc -mavx10.1",
where xyz are the features Zen5 having, abc are those Zen5 not having.
-mno-avx512fp16 -mavx10.1 leads to the warning.

Reply via email to