home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / gcc / help / 2535 < prev    next >
Encoding:
Text File  |  1992-11-16  |  1.7 KB  |  45 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!che.utexas.EDU!jwe
  3. From: jwe@che.utexas.EDU (John Eaton)
  4. Subject: Re: Segmentation Fault
  5. Message-ID: <9211161710.AA03192@schoch.che.utexas.edu>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: GNUs Not Usenet
  8. References: jwe@che.utexas.EDU (John Eaton)
  9. Distribution: gnu
  10. Date: Mon, 16 Nov 1992 17:10:28 GMT
  11. Lines: 32
  12.  
  13. : I do not believe that compiler crashes usually have anything to do
  14. : with a particular line in the source.
  15.  
  16. This may now be true for most of the gcc crashes, but with g++, which
  17. seems to crash a lot more frequently than gcc, I have found that many
  18. of the crashes can be avoided by changing the user's code.  Most of
  19. the time, it is something very simple.
  20.  
  21. Even just knowing that the compiler is working on something related to
  22. a given line of source would be much more helpful than getting
  23. `cc1plus got fatal signal xxx', especially when there may be thousands
  24. of lines of code in the current file.
  25.  
  26. I would even be happy if the message said something like:
  27.  
  28.   cc1plus: I don't think line 13 has anything to do with what's
  29.   cc1plus: going to happen next, but I was just working on
  30.   cc1plus: something vaguely related to that line.
  31.   cc1plus: Now I'm bailing out from line 1313 of cp-tree.c.
  32.  
  33. I agree that the best thing is to fix the compiler so that it doesn't
  34. crash.  Unfortunately, many of us are not able to do that, and we are
  35. trying to use these compilers for real projects.  Having cc1plus tell
  36. me what line(s) it is working on when it crashes would be helpful.
  37.  
  38. If RMS is unwilling to add this feature to cc1plus, does anyone out
  39. there have patches to do it?
  40.  
  41. --
  42. John W. Eaton      | 4.3BSD is not perfect.  -- Leffler, et al. (1989).
  43. jwe@che.utexas.edu |
  44.  
  45.