home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4658 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.3 KB  |  30 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!murdoch!cyclops.micr.Virginia.EDU!wrp
  3. From: wrp@cyclops.micr.Virginia.EDU (Bill Pearson)
  4. Subject: gcc 2.1/2.2 bugs
  5. Message-ID: <1992Sep2.013111.18457@murdoch.acc.Virginia.EDU>
  6. Originator: wrp@cyclops.micr.Virginia.EDU
  7. Sender: usenet@murdoch.acc.Virginia.EDU
  8. Organization: University of Virginia
  9. Date: Wed, 2 Sep 1992 01:31:11 GMT
  10. Lines: 18
  11.  
  12.     In my hands, the os/2 (emx) gcc2.1 and gcc2.2 seem to have some
  13. serious problems.  I have a program that runs on virtually any machine
  14. with a C-compiler, and compiles under os/2 gcc2.1 (and 2.2) with no
  15. errors, but when I run it, an unintiallized global character array
  16. is not all '\0', and if I try to initialize it, the program either
  17. bombs with an illegal reference or wipes out another global array.
  18.  
  19.     Although I feel uncomfortable blaming a compiler, this same
  20. code has compiled on so many machines (sun4 sun cc, gcc, mips m/120,
  21. rs/6000, mac, dos/turbo c++ ) that I feel relatively confident that
  22. the os2 gcc compiler has serious problems, at least with global variables.
  23.  
  24.     Is it possible that emx is the culprit?  I have been unable to
  25. find a gdb to check to see what is going on.  I am using emx0.8d I believe,
  26. and wonder if another version might help.
  27.  
  28. Bill Pearson
  29.  
  30.