home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!bohra.cpg.oz.au!als
- From: als@bohra.cpg.oz.au (Anthony Shipman)
- Newsgroups: comp.sys.hp
- Subject: Re: that HPUX cc compiler
- Message-ID: <1992Sep1.100705.17481@bohra.cpg.oz.au>
- Date: 1 Sep 92 10:07:05 GMT
- References: <1992Aug31.104950.1108@bohra.cpg.oz.au> <HARDY.92Aug31112334@golem.ps.uci.edu>
- Organization: Computer Power Software
- Lines: 44
-
- hardy@golem.ps.uci.edu (Meinhard E. Mayer (Hardy)) writes:
-
- >In article <1992Aug31.104950.1108@bohra.cpg.oz.au> als@bohra.cpg.oz.au (Anthony Shipman) writes:
-
-
- > Here are some programs for which the HP cc generates incorrect code.
-
- > xfig.2.1.4, contact bvsmith@lbl.gov
-
- > When compiled with -O incorrect code is generated for the
- > int_spline_bound() function. This results in floating point exceptions
- > while working with splines. The program works without -O.
-
- > .....more of the same
-
- >I found that most programs compile perfectly with the +O1 option,
- >quite a few with +O3 (they take quite a while -- you may have given up
- >too early), unless I run out of memory. I have put +O1 as the default
- >in my hp.cf to use with xmkmf (also, some of the newer X-stuff will
- >not link unless I include both the X11R4 ann X11R5 include files.
-
- No. The programs all compile and run. They just give either wrong answers
- or crash, with -O.
-
- I haven't tried +O1 (shoulda RTFMed). (The +z bug is still a real problem
- for me though).
-
- I just broke the optimiser again. For a .c file generated by sml2c I got
- from -O
-
- *** c.c2: INTERNAL OPTIMIZER ERROR ***
- too many kids in dagnode
-
- (but it works at +O1).
-
-
- When I have tracked any -O problem at the machine level it has always seemed
- that the compiler has lost track of which value is in which register.
-
- --
- Anthony Shipman "You've got to be taught before it's too late,
- CP Software Export Pty Ltd, Before you are six or seven or eight,
- 19 Cato St., East Hawthorn, To hate all the people your relatives hate,
- Melbourne, Australia, 3121 You've got to be carefully taught." R&H
-