This is the mail archive of the gcc-patches@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: [PATCH]: Fix PR tree-optimization/21407



On May 10, 2005, at 10:32 AM, Kenneth Zadeck wrote:
Dale Johannesen wrote:
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.
I had this discussion at Apple with Geoff Keating and Mike Stump. When I left,
they were on board with this. I would not have taken the time to do this if I
thought I was bending the language. A never talked to Matt about this.

It is possible that Mike changed his mind, but that was not his opinion when
I talked to him. I'm sure he'll clarify when he gets in.



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