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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> So, the problem is that with the addition of TARGET_CPU_grace,
> TARGET_CPU_generic is now 64, which causes problems, because of
> return &all_cores[TARGET_CPU_DEFAULT & 0x3f];
> or
> #define TARGET_CPU_DEFAULT \
>  (TARGET_CPU_generic | (AARCH64_CPU_DEFAULT_FLAGS << 6))
> 
> As pointed out by Sam James, this was fixed in GCC 12 with
> r12-8060-g5522dec054cb940fe83661b96249aa12c54c1d77
> Tested a backport of this or even backport thereof with
> #define TARGET_CPU_NBITS 8
> replaced with
> #define TARGET_CPU_NBITS 7
> fixes this.
> Unfortunately, this can't be fixed anymore for 11.5 as the branch is closed.

I wonder if we should document this in gcc-11/changes.html as Caveat in
the 11.5 release section (even if that's a bit hidden), possibly refering
to the rev with the fix.

Reply via email to