This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: purify 4.1 and egcs still appear to be incompatible.


On 16 Feb 1998, Laurent Bonnaud wrote:

> Brad> When running, purify reports a number of Uninitialized memory reads.
> Brad> They all appear to have something to do with STL vectors, and each
> Brad> one reports trying to read an address that is 17 bytes below the frame
> Brad> pointer.
> 
> It works for me.
  <snip!>
> I tried on solaris 2.6, with purify 4.1, both with egcs 1.0.1 and the
> 02-05 snapshot.  I'm using options -mcpu=ultrasparc -g -O2.

The difference appears to be the '-O2' option.  If you compile my 
test program with _no_ optimization, you get the Uninitialized Memory
Read errors.  Compiling with '-O' also gets rid of the problem.

Laurent, can you confirm this behavior?

Brad Garcia
   ___/  __ /  __ /  ___/ "Being the Linux of digital media
  __/   /  /  / _/  __/    would be a very good life."
_/    ____/ _/ _| ____/      - Jean-Louis Gassee, CEO of Be, Inc.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]