This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/65584] [i386] Intrinsics inclusion with `-nostdinc' failing due to `stdlib.h' dependency
- From: "kyukhin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Mar 2015 11:55:25 +0000
- Subject: [Bug target/65584] [i386] Intrinsics inclusion with `-nostdinc' failing due to `stdlib.h' dependency
- Auto-submitted: auto-generated
- References: <bug-65584-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65584
--- Comment #2 from Kirill Yukhin <kyukhin at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> IMHO a user error, if you use -nostdinc, you are responsible for letting the
> compiler know where to find all the needed includes.
Yes, but for my case, these header is not needed. Moreover, as far as I
understand <stdlib.h> inclusion was added for compatibility with ICC only.
Maybe, somehow check if this header is available and include <mm_malloc.h>
into <x86intrin.h> only if it is.