This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Old ABI compatibility
According to Mark Mitchell:
> >>>>> "Chip" == Chip Salzenberg <chip@valinux.com> writes:
> Chip> True, BUT: Is it at least safe to assume that single,
> Chip> non-virtual inheritance results in no deltas?
>
> No. That's true in all the ABI's I know of, but I don't think
> anything in the standard guarantees this [...]
I seem to recall an ANSI C requirement that:
(void*)(&struct) == (void*)(&struct.first_member)
In other words,
OFFSETOF(struct, first_member) == 0
Could that be parlayed into a single-inheritance delta requirement?
--
Chip Salzenberg - a.k.a. - <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K