This is the mail archive of the gcc-help@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]
Other format: [Raw text]

GCC Pointer Initialization Question


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.


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