Bug 102231 - <xmmintrin.h> includes <mm_malloc.h> unconditionally
Summary: <xmmintrin.h> includes <mm_malloc.h> unconditionally
Status: RESOLVED DUPLICATE of bug 65584
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-07 15:21 UTC by Segher Boessenkool
Modified: 2021-09-07 21:01 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Segher Boessenkool 2021-09-07 15:21:10 UTC
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.
Comment 1 Andrew Pinski 2021-09-07 15:30:18 UTC
Dup of bug 65584

*** This bug has been marked as a duplicate of bug 65584 ***