This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[trans-mem] TM attributes vs C++ inheritance
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: jason at redhat dot com
- Date: Wed, 08 Jul 2009 17:40:21 -0700
- Subject: [trans-mem] TM attributes vs C++ inheritance
The language specification for C++ allows for putting attributes on the
class itself, which then get automatically pushed out to any member
functions defined by that class. Further, it defines how these
attributes get propagated down the class inheritance tree. Finally, it
has special rules for how these attributes are applied to virtual member
functions, which ensure that when the virtual method is called on the
base class, all of the implementation methods in the derived classes are
compatible.
This patch appears to do the trick. Comments on the implementation from
the C++ maintainers?
r~
Attachment:
d-tm-c++-2
Description: Text document