🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52355

Re: gnu, malloc, and "zero'd" memory

#52355
From: tiemann
Date: Fri, 27 Nov 1992 01:19
27 lines
1804 bytes
   To: help-gcc@prep.ai.mit.edu
   Date: Thu, 26 Nov 1992 01:34:10 GMT
   Organization: Lynx Real-Time Systems, Inc.
   From: bitbug@netcom.com (James Buster)
   Subject: Re: gnu, malloc, and "zero'd" memory
   
   Which version of gcc are you using? I know for sure that g++ 1.42 depends
   upon its malloc'ed memory being zeroed. I had to modify xmalloc() to
   memset() the memory to zeroes before letting the compiler use it. I didn't
   track down exactly where such dependencies were, however. gcc 1.42 (at
   lease on our platform) doesn't seem to need this, but the fact that g++
   needs this casts doubt upon gcc.
   -- 
   				James Buster
   			     bitbug@netcom.com

If you found that changing xmalloc in the way you described changed
the behavior of the compiler, then you have found a bug.  By not
reporting the bug in the proper fashion, you leave yourself and others
open to potential problems in the future.  This is irresponsible.

Without knowledge of what is the exact bug in G++ 1.42, I don't see
why you choose to cast doubt on GCC 1.42.  That does nothing but cast
doubt onto all GNU software--doubt which stems from ignorance, not
inference nor intelligence.

Michael
Technical Details
Message-ID: <9211271719.AA16816@rtl.cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!tiemann
References: <1992Nov26.013410.5755@netcom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,459b3f6402b4c06d
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-11-27 09:27:04 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!tiemann
From: tiemann@cygnus.com
Subject: Re: gnu, malloc, and "zero'd" memory
Message-ID: <9211271719.AA16816@rtl.cygnus.com>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
References: <1992Nov26.013410.5755@netcom.com>
Distribution: gnu
Date: Fri, 27 Nov 1992 01:19:34 GMT
Lines: 27