[Bug target/102231] New: <xmmintrin.h> includes <mm_malloc.h> unconditionally

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 7 15:21:10 GMT 2021


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

            Bug ID: 102231
           Summary: <xmmintrin.h> includes <mm_malloc.h> unconditionally
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: segher at gcc dot gnu.org
  Target Milestone: ---

Instead, it should do something like
  #if __STDC_HOSTED__
  #include <mm_malloc.h>
  #endif
as Clang does, because <mm_malloc.h> only exists on hosted environments
(which is good, because it itself uses <stdlib.h>, etc.)

A few intrinsics that use stuff from <mm_malloc.h> need the same treatment.


More information about the Gcc-bugs mailing list