This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH]: Fix PR tree-optimization/21407
On May 10, 2005, at 9:46 AM, Daniel Berlin wrote:
On Tue, 2005-05-10 at 09:30 -0700, Mark Mitchell wrote:
Daniel Berlin wrote:
but if there's
no exemption for character pointers in that case, there should be, at
least in GNU C, where we assume unsegmented memory.
If i give you a pointer to a field, that would mean you could add or
subtract bytes and legally get at any other member of the structure,
containing structure, etc.
I was told by Geoff Keating, and others, that this is not legal in C.
Have I been misinformed? That would be quite sad.
There was quite a bit of discussion of this internal to Apple, and no
agreement was reached. Geoff strongly takes the position you say;
Mike and I disagree. The standard seems unclear.