https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65584
--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #6) > And the "somehow" is now possible too, we can use __has_include(<stdlib.h>). Including it with -ffreestanding in effect is always wrong. Even if the header exists it may not be what you expected.