Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1368)

Unified Diff: gcc/gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/dfp/convert-complex.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/convert-int-fold.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c
diff --git a/gcc/gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c b/gcc/gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c
index 9833abb7ff0bf5613ecda948cf34d71907534e25..e3781bfc9679e8f5f0f1e7689c2d66899d6c6d77 100644
--- a/gcc/gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c
+++ b/gcc/gcc/testsuite/gcc.dg/dfp/convert-dfp-round.c
@@ -1,4 +1,4 @@
-/* { dg-options "-O0 -std=gnu99" } */
+/* { dg-options "-O0" } */
/* { dg-skip-if "test is for emulation" { hard_dfp } { "*" } { "" } } */
/* N1150 5.2: Conversions among decimal floating types and between
@@ -12,20 +12,9 @@
Normally this would not be part of compiler testing, but conversions
are currently handled in libgcc via decNumber. */
+#include "dfp-dbg.h"
#include "dfp-round.h"
-extern void abort (void);
-static int failcnt = 0;
-
-/* Support compiling the test to report individual failures; default is
- to abort as soon as a check fails. */
-#ifdef DBG
-#include <stdio.h>
-#define FAILURE { printf ("failed at line %d\n", __LINE__); failcnt++; }
-#else
-#define FAILURE abort ();
-#endif
-
_Decimal32 d32;
_Decimal64 d64;
_Decimal128 d128;
@@ -131,7 +120,5 @@ main ()
if (!do_d128_to_d64 (-1.1111111111111125dl, -1.111111111111112dd)) FAILURE
if (!do_d128_to_d64 (-1.1111111111111135dl, -1.111111111111113dd)) FAILURE
- if (failcnt)
- abort ();
- return 0;
+ FINISH
}
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/dfp/convert-complex.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/convert-int-fold.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698