https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100057

JeanHeyd Meneide <phdofthehouse at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |phdofthehouse at gmail dot com

--- Comment #5 from JeanHeyd Meneide <phdofthehouse at gmail dot com> ---
Hey, so, I'm not much of a contributor anymore, but like. Are you sure you got
everything passed to the compiler correctly?

I was under the impression in order to turn of __STDC_HOSTED__, you need to
pass

-ffreestanding

? That defines __STDC_HOSTED__ to 0, which should make those definition checks
choose the non-__STDC_HOSTED__ branches for the #if (as shown in this basic
test: https://godbolt.org/z/7acoPT13M)

https://gcc.gnu.org/onlinedocs/gcc/Standards.html#Standards

Reply via email to