https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117967
--- Comment #2 from Giuseppe D'Angelo <dangelog at gmail dot com> --- Well, I'm wondering if it's OK that passing -shared causes that warning. I'm not a fan of suppressing warnings; I'd rather have `-fhardened` always enabled and always "do the right thing", that is, only complain if truly incompatible options are explictly passed...