https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65584
Bug ID: 65584 Summary: [i386] Intrinsics inclusion with `-nostdinc' failing due to `stdlib.h' dependency Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kyukhin at gcc dot gnu.org Created attachment 35149 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35149&action=edit Reproducer Hello, When disabling standard headers inclusion, it is impossible to use GCC intrinsics: $ ./release/usr/local/bin/gcc -mavx -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include -S repro.c In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/xmmintrin.h:38:0, from /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/x86intrin.h:34, from repro.c:2: /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/mm_malloc.h:27:20: fatal error: stdlib.h: No such file or directory compilation terminated. This is because `mm_malloc.h' depends on malloc () / free () calls. Maybe remove this dependence?