This is the mail archive of the gcc@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]

Re: malloc attributes and realloc


> I don't know why.  But it is no different from grabbing some storage,
> printing the value of its start on stdout and reading it back and use
> it. 

Yes, that's what I mean by pointer punning, here you are taking a pointer
value, converting it to a string, and then converting it back to a pointer.
So this is indeed different.

I had always thought that C would allow compacting garbage collection in the
absence of pointer punning. This is the first time I have seen a suggestion
otherwise, and it's rather a marginal case :-)


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