aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2015-07-08 19:35:43 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2015-07-08 12:35:43 -0700
commit7ad46e1912090d8a4323082caf81f3f13c8b70fe (patch)
treeeaf946fdba4528297268336a9b4d805358321860 /gcc
parent00cbba897fbbc492274a8c800b46fda72c638a58 (diff)
downloadgcc-7ad46e1912090d8a4323082caf81f3f13c8b70fe.zip
gcc-7ad46e1912090d8a4323082caf81f3f13c8b70fe.tar.gz
gcc-7ad46e1912090d8a4323082caf81f3f13c8b70fe.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.target/i386/pr37870.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9a3a93e..3fa2511 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
+ * gcc.target/i386/pr37870.c (dg-options): Add -mlong-double-80.
+
+2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
+
* gcc.target/i386/readeflags-1.c (abort): New prototype.
* gcc.target/i386/writeeflags-1.c (abort): Likewise.
diff --git a/gcc/testsuite/gcc.target/i386/pr37870.c b/gcc/testsuite/gcc.target/i386/pr37870.c
index 19cfb20..bc78ed7 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)