home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9875 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.7 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: that HPUX cc compiler
  5. Message-ID: <1992Aug31.104950.1108@bohra.cpg.oz.au>
  6. Date: 31 Aug 92 10:49:50 GMT
  7. Organization: Computer Power Software
  8. Lines: 41
  9.  
  10. Here are some programs for which the HP cc generates incorrect code.
  11.  
  12. xfig.2.1.4, contact bvsmith@lbl.gov
  13.  
  14.     When compiled with -O incorrect code is generated for the 
  15.     int_spline_bound() function.  This results in floating point exceptions
  16.     while working with splines.  The program works without -O.
  17.  
  18.  
  19.  
  20. Metafont
  21.     This is supplied with Unix TeX3.14.  When compiled with -O the bit
  22.     maps it generates for a font's characters are seriously corrupted.
  23.  
  24.  
  25.  
  26.  
  27. sml2c from /usr/nemo/sml2c on dravido.soar.cs.cmu.edu.
  28.  
  29.     This is an SML to C compiler.
  30.  
  31.     I tried to make a sharable library out of the runtime library.  When
  32.     I compiled it with +z and linked with -b the compiler crashed. 
  33.     When I linked the compiler statically with the runtime library still
  34.     compiled with +z it also crashed.  The fault seemed to be in the
  35.     large .c file containing the compiled SML-source runtime code
  36.     (perv.sml.c).  It runs fine normally, i.e. compiled without -O.
  37.  
  38.  
  39.  
  40. Debugging the last two would be rather difficult since the C code that fails
  41. is generated by some translater from quite different source.
  42.  
  43. As a normal precaution I never use -O with anything 'complicated'.
  44.  
  45.  
  46. -- 
  47. Anthony Shipman                 "You've got to be taught before it's too late,
  48. CP Software Export Pty Ltd,      Before you are six or seven or eight,
  49. 19 Cato St., East Hawthorn,      To hate all the people your relatives hate,
  50. Melbourne, Australia, 3121       You've got to be carefully taught."  R&H
  51.