PR target/57655
* config/i386/i386.c (construct_container): Report error if
long double is used with disabled x87 float returns.
testsuite/ChangeLog:
PR target/57655
* gcc.target/i386/pr57655.c: New test.
From-SVN: r200260
+2013-06-20 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/57655
+ * config/i386/i386.c (construct_container): Report error if
+ long double is used with disabled x87 float returns.
+
2013-06-20 Jan Hubicka <jh@suse.cz>
* lto-cgraph.c (input_symtab): Do not set cgraph state.
/* Likewise, error if the ABI requires us to return values in the
x87 registers and the user specified -mno-80387. */
- if (!TARGET_80387 && in_return)
+ if (!TARGET_FLOAT_RETURNS_IN_80387 && in_return)
for (i = 0; i < n; i++)
if (regclass[i] == X86_64_X87_CLASS
|| regclass[i] == X86_64_X87UP_CLASS
+2013-06-20 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/57655
+ * gcc.target/i386/pr57655.c: New test.
+
2013-06-20 Eric Botcazou <ebotcazou@adacore.com>
* ada/acats/tests/gcc: Delete.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-mavx -mvzeroupper -mno-fp-ret-in-387" }
+
+/* { dg-error "x87 register return with x87 disabled" "" { target { ! ia32 } } 8 } */
+
+long double
+foo (long double x)
+{
+ return __builtin_ilogbl (x);
+}