home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9922 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  2.1 KB

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