The gcc packages hard-disable the sanitize flag on hardened profiles, making the sanitizer options unavailable on hardened systems. I believe the intention was that the sanitizers are incompatible with grsecurity and hardened systems were supposed to be run with grsec-patched kernels. But given that grsec is no more I think this is no longer relevant.
(In reply to Hanno Boeck from comment #0) > The gcc packages hard-disable the sanitize flag on hardened profiles, making > the sanitizer options unavailable on hardened systems. > > I believe the intention was that the sanitizers are incompatible with > grsecurity and hardened systems were supposed to be run with grsec-patched > kernels. But given that grsec is no more I think this is no longer relevant. Mask is present in hardened features: profiles/features/hardened/package.use.mask:sys-devel/gcc -hardened sanitize but entry links no bug. I assume it's caused by bug #458706. Reassigning to hardened@ to check on current/future status.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b089a3662eb5ad528c1fddf9228f7ac8017287d8 commit b089a3662eb5ad528c1fddf9228f7ac8017287d8 Author: Magnus Granberg <zorry@gentoo.org> AuthorDate: 2019-03-10 12:27:57 +0000 Commit: Magnus Granberg <zorry@gentoo.org> CommitDate: 2019-03-10 12:29:45 +0000 profile: hardened: remove mask use senitize from gcc Closes: https://bugs.gentoo.org/678956 Signed-off-by: Magnus Granberg <zorry@gentoo.org> profiles/features/hardened/package.use.mask | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)