PR target/56540
* config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Predefine
__SIZEOF_{FPREG,FLOAT{80,128}}__ macros.
* gcc.target/ia64/pr56540.c: New test.
From-SVN: r258138
2018-03-02 Jakub Jelinek <jakub@redhat.com>
+ PR target/56540
+ * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Predefine
+ __SIZEOF_{FPREG,FLOAT{80,128}}__ macros.
+
* predict.c (test_prediction_value_range): Use PROB_UNINITIALIZED
instead of -1U in last predictors element's probability member.
builtin_define("__itanium__"); \
if (TARGET_BIG_ENDIAN) \
builtin_define("__BIG_ENDIAN__"); \
+ builtin_define("__SIZEOF_FPREG__=16"); \
+ builtin_define("__SIZEOF_FLOAT80__=16");\
+ builtin_define("__SIZEOF_FLOAT128__=16");\
} while (0)
#ifndef SUBTARGET_EXTRA_SPECS
+2018-03-02 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/56540
+ * gcc.target/ia64/pr56540.c: New test.
+
2018-03-02 Will Schmidt <will_schmidt@vnet.ibm.com>
* gcc.target/powerpc/altivec-7-be.c: Remove VSX content, allow
--- /dev/null
+/* PR target/56540 */
+/* { dg-do compile } */
+
+extern int a[__SIZEOF_FPREG__ != sizeof (__fpreg) ? -1 : 1];
+extern int b[__SIZEOF_FLOAT80__ != sizeof (__float80) ? -1 : 1];
+extern int c[__SIZEOF_FLOAT128__ != sizeof (__float128) ? -1 : 1];