From 7ad46e1912090d8a4323082caf81f3f13c8b70fe Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 8 Jul 2015 19:35:43 +0000 Subject: [PATCH] Compile pr37870.c with -mlong-double-80 On x86, the "long double" type is platforma specific, which may be the same as double or __float128. Since pr37870.c requires 80-bit floating point type, it should be compiled with -mlong-double-80. * gcc.target/i386/pr37870.c (dg-options): Add -mlong-double-80. From-SVN: r225578 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/i386/pr37870.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9a3a93e29b8..3fa2511c40f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-07-08 H.J. Lu + + * gcc.target/i386/pr37870.c (dg-options): Add -mlong-double-80. + 2015-07-08 H.J. Lu * gcc.target/i386/readeflags-1.c (abort): New prototype. diff --git a/gcc/testsuite/gcc.target/i386/pr37870.c b/gcc/testsuite/gcc.target/i386/pr37870.c index 19cfb205865..bc78ed7c77d 100644 --- a/gcc/testsuite/gcc.target/i386/pr37870.c +++ b/gcc/testsuite/gcc.target/i386/pr37870.c @@ -1,6 +1,6 @@ /* PR middle-end/37870 */ /* { dg-do run } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -mlong-double-80" } */ unsigned int foo (long double x) -- 2.30.2