Mini-patch for cccp.c
meissner@cygnus.com
meissner@cygnus.com
Wed Oct 8 14:14:00 GMT 1997
|
| On 7 Oct 1997, Andreas Schwab wrote:
|
| > |> Having to remember to init structure members when new ones are
| > |> added is prone to error. Isn't it better to do bzero(&foo, sizeof(foo))
| > |> and then set any non zero members?
| > Pedantically this won't work for pointers in the structure, ie. they still
| > have to be initialized explicitly.
|
| Do you mean machines where the machine representation of NULL-addresses
| has some bits set? I wonder if GCC supports such machines at all?
Yes there have been machines out there that at least comptemplated making NULL
have non-zero bits (I know I at least flirted with it on the Data General
MV/Eclipse computers but never did, the PR1ME, Livermore S1, and Symbolics
computers come to mind as machines that had a non-zero NULL pointer). No, GCC
would never run on those machines.
GCC makes a number of simplifying assumptions about the machines it generates
code for, such as all pointers are the same size and format (though I recently
did a port for a machine that had two different formats, and I had to not
implement certain things like trampolines and labels as values because of it --
it wasn't pretty).
More information about the Gcc
mailing list