[Bug target/65584] [i386] Intrinsics inclusion with `-nostdinc' failing due to `stdlib.h' dependency

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 7 17:05:43 GMT 2021


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.


More information about the Gcc-bugs mailing list