On Mon, 2013-07-01 at 11:36 -0400, David Malcolm wrote: Sorry, I forgot the ChangeLog entries:
gcc/ 2013-07-01 David Malcolm <dmalc...@redhat.com> * doc/extend.texi (Type Attributes): Document new "force_static" attribute. gcc/cp/ 2013-07-01 David Malcolm <dmalc...@redhat.com> * cp-tree.h (struct lang_type_class): Add force_static bitfield. (CLASSTYPE_FORCE_STATIC): New macro. * decl.c (grokfndecl): Silently discard "const" on methods within a "force_static" class. (grokdeclarator): Implement the effect of the "force_static" attribute. * ptree.c (cxx_print_type): Indicate when a class has been marked with "force_static". * tree.c (cxx_attribute_table): Add an entry for a new "force_static" attribute. (handle_force_static_attribute): New. gcc/testsuite/ 2013-07-01 David Malcolm <dmalc...@redhat.com> New "force_static" attribute. * g++.dg/ext/force_static/attribute.C: New. * g++.dg/ext/force_static/callsite.C: Likewise. * g++.dg/ext/force_static/const.C: Likewise. * g++.dg/ext/force_static/ctor.C: Likewise. * g++.dg/ext/force_static/dtor.C: Likewise. * g++.dg/ext/force_static/method.C: Likewise. * g++.dg/ext/force_static/not-a-class.C: Likewise. * g++.dg/ext/force_static/struct.C: Likewise. * g++.dg/ext/force_static/trailing.C: Likewise. * g++.dg/ext/force_static/vfunc.C: Likewise.