https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61918
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect -fno-canonical-system-headers fixes the behavior to what you think it should be.
pinskia at gcc dot gnu.org via Gcc-bugs Sat, 01 Feb 2025 10:33:48 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61918
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect -fno-canonical-system-headers fixes the behavior to what you think it should be.