https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114717
--- Comment #5 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- Distributions injecting some '-fcf-protection' by default could also inject '-foffload-options=amdgcn-amdhsa=-fno-cf-protection' (or similar) to keep the default case of offloading compilation working, but then with explicit user-specified '-fcf-protection', the user would still get an error for offloading compilation -- which may actually be desirable (for some)? Alternatively: yes, the 'mkoffload's could filter that out -- but there is a policy question, whether 'mkoffload's are permitted to silently drop user-requested '-f[...]' flags? Probably that's OK if the '-fcf-protection' documentation is updated accordingly? I guess I don't have any strong preference. ;-)