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