lkml.org 
[lkml]   [1996]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: signal(SIGFPE,SIG_IGN) causes endless loop
Date
Alan Cox <alan@cymru.net> writes:
> > > SCO Unix:
> >
> > Well on SCO the proram above does not compile! The compiler notices the
> > divide by zero :-)
>
> Then the SCO system is not a C compiler. Thats a compiler bug. X/0 is legal
> C. Remind me to use an FPU trap to run something gratuitously so SCO users
> cant build it.

My test was done with the cc compiler (This is from Microsoft!). rcc (which
is the "old" (i.e. pcc) compiler will compile the original program and loops
just like Linux. (except if you optimize it and then it doesn't do the
division :-)

gcc (2.5.8) behaves the same as rcc.

Cheers,
Stephen
--
Stephen Rothwell Stephen.Rothwell@nec.com.au
NEC Australia Phone: +61-6-2508747
Information Systems Group Fax: +61-6-2508746
Canberra, Australia


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.064 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site