Commit 49b4ff63 by Uros Bizjak Committed by Uros Bizjak

re PR target/57655 (ICE: in create_pre_exit, at mode-switching.c:418 with…

re PR target/57655 (ICE: in create_pre_exit, at mode-switching.c:418 with -mno-fp-ret-in-387 -mvzeroupper -mxop and __builtin_ilogbl())

	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
parent 11d396ab
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.
......
......@@ -6498,7 +6498,7 @@ construct_container (enum machine_mode mode, enum machine_mode orig_mode,
/* 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.
......
/* { 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment