This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: BINFO_OFFSET
- To: kenner at vlsi1 dot ultra dot nyu dot edu
- Subject: Re: BINFO_OFFSET
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sun, 20 Feb 2000 10:54:50 -0800
- Cc: gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <10002201345.AA19519@vlsi1.ultra.nyu.edu>
>>>>> "Richard" == Richard Kenner <kenner@vlsi1.ultra.nyu.edu> writes:
Richard> Sometimes it's passed to ssize_binop, meaning that it is
Richard> supposed to be of type ssizeype, but something it's
Richard> passed to size_binop, meaning that it's supposed to be
Richard> sizetype. Which is correct?
In the C++ front-end, BINFO_OFFSET always has type sizetype, to the
best of my knowledge. However, we often need to subtract one
BINFO_OFFSET from another, and that often yields negative values. (In
other words, we ask the question: how far is it from this sub-object
to this other sub-object?)
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com