+2017-09-03 Uros Bizjak <ubizjak@gmail.com>
+
+ * gcc.target/i386/mpx/mpx-check.h (main): Use __get_cpuid_count
+ and return NORUNRES on failure.
+ * gcc.target/i386/mpx/va-arg-pack-1-lbv.c (foo1): Use
+ __builtin_va_arg_pack instead of __va_arg_pack.
+ * gcc.target/i386/mpx/va-arg-pack-1-nov.c (foo1): Ditto.
+ * gcc.target/i386/mpx/va-arg-pack-1-ubv.c (foo1): Ditto.
+ * gcc.target/i386/mpx/va-arg-pack-2-lbv.c (foo1): Ditto.
+ * gcc.target/i386/mpx/va-arg-pack-2-nov.c (foo1): Ditto.
+ * gcc.target/i386/mpx/va-arg-pack-2-ubv.c (foo1): Ditto.
+
2017-09-01 Jakub Jelinek <jakub@redhat.com>
PR target/81766
{
unsigned int eax, ebx, ecx, edx;
- if (__get_cpuid_max (0, NULL) < 7)
- return 0;
-
- __cpuid_count (7, 0, eax, ebx, ecx, edx);
+ if (!__get_cpuid_count (7, 0, &eax, &ebx, &ecx, &edx))
+ return NORUNRES;
/* Run MPX test only if host has MPX support. */
if ((ebx & bit_MPX) && (xgetbv (0) & XSTATE_BNDREGS))
static __attribute__((always_inline)) int
foo1 (int *p1, ...)
{
- return foo2 (10, p1, __va_arg_pack ());
+ return foo2 (10, p1, __builtin_va_arg_pack ());
}
int prebuf[100];
static __attribute__((always_inline)) int
foo1 (int *p1, ...)
{
- return foo2 (10, p1, __va_arg_pack ());
+ return foo2 (10, p1, __builtin_va_arg_pack ());
}
int prebuf[100];
static __attribute__((always_inline)) int
foo1 (int *p1, ...)
{
- return foo2 (10, p1, __va_arg_pack ());
+ return foo2 (10, p1, __builtin_va_arg_pack ());
}
int prebuf[100];
static __attribute__((always_inline)) int
foo1 (int *p1, ...)
{
- return foo2 (10, p1, __va_arg_pack ());
+ return foo2 (10, p1, __builtin_va_arg_pack ());
}
int prebuf[100];
static __attribute__((always_inline)) int
foo1 (int *p1, ...)
{
- return foo2 (10, p1, __va_arg_pack ());
+ return foo2 (10, p1, __builtin_va_arg_pack ());
}
int prebuf[100];
static __attribute__((always_inline)) int
foo1 (int *p1, ...)
{
- return foo2 (10, p1, __va_arg_pack ());
+ return foo2 (10, p1, __builtin_va_arg_pack ());
}
int prebuf[100];