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: C++ PATCH: PR 16405


Richard Kenner wrote:
    Well, in Ada we have "aligning" nodes that explicitly step up the
    alignment of an expression that is known to be over-aligned, but for
    which this can't be deduced from the expression itself.  Removing
    these nodes may lead to the creation of unwanted temporaries later.
    See TYPE_ALIGN_OK.

Just so this doesn't seem totally obscure, the case is where we have a
classwide type, some subtype has a stricter alignment, and we've now
determined that the object is a member of the subtype via its tag.  That
means that we know that it's aligned stricter than its type would otherwise
indicate, so when we convert it to the more aligned type, we can operate as
if it had that alignment.

Are the two versions of the type type_compatible_p?


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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