Commit 70a48c3f by Peter Leven Committed by Jeff Law

fp-cmp-1.c: Set up signal handler earlier.

        * gcc.c-torture/execute/ieee/fp-cmp-1.c: Set up signal handler
        earlier.

From-SVN: r20132
parent 8376d400
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> Thu May 28 00:17:42 1998 Catherine Moore <clm@cygnus.com>
* gcc.c-torture/execute/980526-3.c: New test. * gcc.c-torture/execute/980526-3.c: New test.
......
...@@ -11,6 +11,13 @@ void leave () ...@@ -11,6 +11,13 @@ void leave ()
main () main ()
{ {
#if ! defined (__vax__) && ! defined (_CRAY) #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. */ /* NaN is an IEEE unordered operand. All these test should be false. */
if (nan == nan) if (nan == nan)
abort (); abort ();
...@@ -19,12 +26,6 @@ main () ...@@ -19,12 +26,6 @@ main ()
else else
abort (); 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) if (nan < x)
abort (); abort ();
if (nan > x) if (nan > x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment