From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,279217ad1d03b7ad X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1020c6,279217ad1d03b7ad X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,279217ad1d03b7ad X-Google-Attributes: gidfee84,public From: Dan.Pop@mail.cern.ch (Dan Pop) Subject: Re: What do you think of osf/1? Date: 1995/06/27 Message-ID: #1/1 X-Deja-AN: 105130567 sender: news@news.cern.ch (USENET News System) x-nntp-posting-host: ues5.cern.ch references: <3rst5b$i3c@news1.WING.NET> <3s6k3u$q56@imp.demon.co.uk> <3s6pr9$kps@news.duke.edu> <3s7vdi$4af@news.duke.edu> organization: CERN European Lab for Particle Physics newsgroups: comp.unix.osf.osf1,comp.unix.admin,comp.unix.questions In dsr@lns598.lns.cornell.edu (Daniel S. Riley) writes: >In article , Dan.Pop@mail.cern.ch (Dan Pop) wrote: >Dan.Pop> It will happen to you if you try to compile this source: > >Dan.Pop> ues5:~/tmp 110> uname -a >Dan.Pop> OSF1 ues5.cern.ch V3.2 17 alpha >Dan.Pop> ues5:~/tmp 111> cat cc-crash.c >Dan.Pop> main() >Dan.Pop> { >Dan.Pop> char **array= {{"Mac"},{"Ed"},{"Edwin"}}; >Dan.Pop> } >Dan.Pop> ues5:~/tmp 112> cc cc-crash.c >Dan.Pop> Fatal error in: /usr/lib/cmplrs/cc/cfe Segmentation fault - core dumped > >The compiler shouldn't core dump. However, this does not look like >ANSI/ISO 9899-1990 conforming C source code to me, so I have a hard >time getting excited about it. I never claimed it's correct code. I prefer a sensible diagnostic to a core dump, however. > >Dan.Pop> that the support for single precision denormals is broken, > >Is this true even with '-ieee_with_inexact' set? Yes, as far as I can tell: ues5:~/tmp 340> uname -a OSF1 ues5.cern.ch V3.2 17 alpha ues5:~/tmp 341> cat denorm.c #include main() { float x; x = 1.2e-38f / 2; printf("%g\n", x); return 0; } ues5:~/tmp 342> cc -ieee_with_inexact denorm.c ues5:~/tmp 343> ./a.out 1.17549e-38 ues5:~/tmp 344> cc -migrate -ieee_with_inexact denorm.c cc: Warning: denorm.c, line 7: In this statement, underflow occurs in evaluating the expression "1.2e-38f/2". x = 1.2e-38f / 2; ----^ ues5:~/tmp 345> ./a.out 0 Dan -- Dan Pop CERN, CN Division Email: Dan.Pop@mail.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland