This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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]

Re: enum { BFD_ENDIAN_BIG, ...}


On Tue, Dec 18, 2001 at 10:59:41AM +1030, Alan Modra wrote:
> While we're on this subject, note that initialising pointers (and FP) to
> all-bits-zero via memset is not strictly portable.  Not all architectures
> represent a NULL pointer as all-bits-zero.  The C-FAQ mentions a number
> of such machines.  http://www.eskimo.com/~scs/C-faq/top.html

Whatever.  None of them are live.

Nor, IMO, will there ever be another machine created with a non-zero
NULL.  The assumption is now so universally ingrained it would cause
more trouble than it would be worth.


r~


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