GCC Pointer Initialization Question

Macy Gasp macygasp@gmail.com
Wed Mar 23 09:02:00 GMT 2005


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.



More information about the Gcc-help mailing list