This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
GCC Pointer Initialization Question
- From: Macy Gasp <macygasp at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Mar 2005 08:49:38 +0000
- Subject: GCC Pointer Initialization Question
- Reply-to: Macy Gasp <macygasp at gmail dot com>
Hello,
Is there any option/patch for gcc/g++ which will enable the
initialization of pointers and of allocated/freed memory with
constants like Microsoft's compiler does?
i.e.
Pattern Description
0xFDFDFDFD No man's land (normally outside of a process)
0xDDDDDDDD Freed memory
0xCDCDCDCD Uninitialized (global)
0xCCCCCCCC Uninitialized locals (on the stack)
Thanks.