Make floating point test compile on platforms without FE_UPWARD
---
 gcc/testsuite/gcc.dg/torture/fp-double-convert-float-1.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/torture/fp-double-convert-float-1.c 
b/gcc/testsuite/gcc.dg/torture/fp-double-convert-float-1.c
index 1c28a9e101e..3a1e95c27f3 100644
--- a/gcc/testsuite/gcc.dg/torture/fp-double-convert-float-1.c
+++ b/gcc/testsuite/gcc.dg/torture/fp-double-convert-float-1.c
@@ -10,10 +10,11 @@
 int
 main ()
 {
+  float f;
 #if __DBL_MANT_DIG__ == 53 && __FLT_MANT_DIG__ == 24
 #ifdef FE_UPWARD
   fesetround (FE_UPWARD);
-  float f = 1.3;
+  f = 1.3;
   if (f != 0x1.4ccccep+0f)
     __builtin_abort ();
 #endif
-- 
2.51.2

Reply via email to