+2018-06-04 Sebastian Peryt <sebastian.peryt@intel.com>
+
+ * config/i386/cldemoteintrin.h: Change define from _X86INTRIN_H_INCLUDED
+ to _IMMINTRIN_H_INCLUDED.
+ * config/i386/pconfigintrin.h: Ditto.
+ * config/i386/waitpkgintrin.h: Ditto.
+ * config/i386/immintrin.h: Add includes for sgxintrin.h,
+ pconfigintrin.h, waitpkgintrin.h and cldemoteintrin.h.
+ * config/i386/x86intrin.h: Remove includes for mintrin.h, xmmintrin.h,
+ emmintrin.h, pmmintrin.h, tmmintrin.h, smmintrin.h, wmmintrin.h,
+ bmiintrin.h, bmi2intrin.h, lzcntintrin.h, sgxintrin.h, pconfigintrin.h,
+ waitpkgintrin.h and cldemoteintrin.h.
+
2018-06-04 Richard Biener <rguenther@suse.de>
PR tree-optimization/86038
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */
-#if !defined _X86INTRIN_H_INCLUDED
-# error "Never use <cldemoteintrin.h> directly; include <x86intrin.h> instead."
+#if !defined _IMMINTRIN_H_INCLUDED
+# error "Never use <cldemoteintrin.h> directly; include <immintrin.h> instead."
#endif
#ifndef _CLDEMOTE_H_INCLUDED
#include <movdirintrin.h>
+#include <sgxintrin.h>
+
+#include <pconfigintrin.h>
+
+#include <waitpkgintrin.h>
+
+#include <cldemoteintrin.h>
+
extern __inline void
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
_wbinvd (void)
-#ifndef _X86INTRIN_H_INCLUDED
-#error "Never use <pconfigintrin.h> directly; include <x86intrin.h> instead."
+#ifndef _IMMINTRIN_H_INCLUDED
+#error "Never use <pconfigintrin.h> directly; include <immintrin.h> instead."
#endif
#ifndef _PCONFIGINTRIN_H_INCLUDED
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */
-#if !defined _X86INTRIN_H_INCLUDED
-# error "Never use <waitpkgintrin.h> directly; include <x86intrin.h> instead."
+#if !defined _IMMINTRIN_H_INCLUDED
+# error "Never use <waitpkgintrin.h> directly; include <immintrin.h> instead."
#endif
#ifndef _WAITPKG_H_INCLUDED
#ifndef __iamcu__
-#include <mmintrin.h>
-
-#include <xmmintrin.h>
-
-#include <emmintrin.h>
-
-#include <pmmintrin.h>
-
-#include <tmmintrin.h>
-
-#include <ammintrin.h>
-
-#include <smmintrin.h>
-
-#include <wmmintrin.h>
-
/* For including AVX instructions */
#include <immintrin.h>
#include <lwpintrin.h>
-#include <bmiintrin.h>
-
-#include <bmi2intrin.h>
-
#include <tbmintrin.h>
-#include <lzcntintrin.h>
-
#include <popcntintrin.h>
#include <rdseedintrin.h>
#include <xsaveoptintrin.h>
-#include <sgxintrin.h>
-
-#include <pconfigintrin.h>
-
#endif /* __iamcu__ */
#include <adxintrin.h>
#include <pkuintrin.h>
-#include <waitpkgintrin.h>
-
-#include <cldemoteintrin.h>
-
#endif /* __iamcu__ */
#endif /* _X86INTRIN_H_INCLUDED */