+Fri May 29 01:10:12 1998 Peter Leven <leven@lpr.e-technik.tu-muenchen.de>
+
+ * gcc.c-torture/execute/ieee/fp-cmp-1.c: Set up signal handler
+ earlier.
+
Thu May 28 00:17:42 1998 Catherine Moore <clm@cygnus.com>
* gcc.c-torture/execute/980526-3.c: New test.
main ()
{
#if ! defined (__vax__) && ! defined (_CRAY)
+ /* Move this line earlier, for architectures (like alpha) that issue
+ SIGFPE on the first comparisons. */
+#ifndef SIGNAL_SUPPRESS
+ /* Some machines catches a SIGFPE when a NaN is compared.
+ Let this test succeed o such machines. */
+ signal (SIGFPE, leave);
+#endif
/* NaN is an IEEE unordered operand. All these test should be false. */
if (nan == nan)
abort ();
else
abort ();
-#ifndef SIGNAL_SUPPRESS
- /* Some machines catches a SIGFPE when a NaN is compared.
- Let this test succeed o such machines. */
- signal (SIGFPE, leave);
-#endif
-
if (nan < x)
abort ();
if (nan > x)