GCC 9 has a -march=znver2 option, please add to gentoo-sources.
toolchain@ does not maintain sys-kernel/gentoo-sources[experimental] patches.
@kernel does not add patches to gcc
znver2 is part of gcc 9.
Not sure what patch you are referring to, as you did not include any info.
URL? Patch ?
Assuming 5011_enable-cpu-optimizations-for-gcc8.patch is conditionally applied based gcc >= 8, then this is not the right place to support this feature request, as the new arch arrived in gcc 9.
As the zen version 1 support is;
# grep znver 5011_enable-cpu-optimizations-for-gcc8.patch
+cflags-$(CONFIG_MZEN) += $(call cc-option,-march=znver1,-march=athlon)
+ Enables -march=znver1
+ cflags-$(CONFIG_MZEN) += $(call cc-option,-march=znver1)
I'd imagine supporting zen version 2 would be something like;
+cflags-$(CONFIG_MZEN2) += $(call cc-option,-march=znver2,-march=athlon)
+ Enables -march=znver2
+ cflags-$(CONFIG_MZEN2) += $(call cc-option,-march=znver2)
Sorry if i've missed the point of the discussion.
Use the -march=native (CONFIG_MNATIVE) option.
/usr/libexec/gcc/x86_64-pc-linux-gnu/9.2.0/cc1 -E -quiet - "-march=znver2"
https://github.com/graysky2/kernel_gcc_patch he has updated it
Now I get your point. I'll take a look.
This will be in the next gentoo-sources release for 4.14,4.19 and 5.2