I have been checking the Gentoo wiki lately and stumbled upon the following articles:
https://wiki.gentoo.org/wiki/GCC_optimi ... imizations
https://wiki.gentoo.org/wiki/Hardened/Toolchain#Changes
However, I'm using a custom profile, copying clang/musl profile to my local overlay and importing stuff from hardened/clang atop it.
Do the hardened profile add appropriate compilation flags for such setup? I believe using the same *FLAGS for GCC as above would be moot and the hardened toolchain is supposed to detect this difference and adopt accordingly. However, would it do the same modifications to musl in relation to glibc? Should I add hardening *FLAGS of my own to make.conf?

