home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / perl / 7592 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!newsaintmail
  3. From: crawdad@fncent (Matt Crawford)
  4. Subject: SunOS 4.1 cc -O loses on perl (4.033) util.c
  5. Message-ID: <0MQ+CY9O2@linac.fnal.gov>
  6. Sender: daemon@linac.fnal.gov (The Background Man)
  7. Nntp-Posting-Host: fncent.fnal.gov
  8. Organization: FERMILAB, Batavia, IL
  9. Date: Wed, 23 Dec 1992 16:02:59 GMT
  10. Lines: 24
  11.  
  12. I had installed perl 4.0p33 at work under SunOS 4.1.2 and I attempted
  13. to do the same at home under 4.1.  (CPU = 4/75 and 4/60, resp.)
  14. "Make test" bombed instantly with a core dump in fdopen().  It turned
  15. out that the optimizer, when working on the fragment
  16.  
  17.     if (p[THIS] != (*mode == 'r')) {
  18.         dup2(p[THIS], *mode == 'r');
  19.         close(p[THIS]);
  20.     }
  21.  
  22. in mypopen(), clobbered the value of mode with a "ldsb [%i1], %i1"
  23. instruction.  On the last line of mypopen
  24.  
  25.     return fdopen(p[this], mode);
  26.  
  27. fdopen was passed 'r' instead of "r".
  28.  
  29. When I compile util.c without "-O", all is well.
  30.  
  31. Two questions: Does patch 34 or 35 fix this?  Where can I find those
  32. patches?  I already looked on devvax.jpl.nasa.gov, ftp.uu.net, and
  33. convex.com.
  34. _________________________________________________________
  35. Matt Crawford       crawdad@fncent.fnal.gov      Fermilab
  36.