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 11, 2005, at 8:16 AM, Giovanni Bajo wrote:
I understand your point. But I think this is getting more and more unlikely:
the offset is highly dependent on target, ABI, optimization settings,
compiler version and whatnot, and without offsetof() there is no
(real-world) way to know it.

ptrdiff_t i = (char *)&s.m2 - (char *)&s;



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