This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch/RFC] link_name attribute to alter the mangling of class types
- From: Mike Stump <mrs at apple dot com>
- To: Doug Gregor <dgregor at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 23 Jul 2003 17:08:43 -0700
- Subject: Re: [Patch/RFC] link_name attribute to alter the mangling of class types
On Friday, July 18, 2003, at 11:41 AM, Doug Gregor wrote:
This patch adds a new type attribute for the C++ front end called
link_name.
I looked at this and it looks fine to me. A few typos with spaces:
(original patch)
! && ((name && get_identifier(name) == subst_identifiers[index])
+ tree attributes = TYPE_ATTRIBUTES ( TYPE_MAIN_VARIANT( TREE_TYPE
(decl)));
+ && strcmp(IDENTIFIER_POINTER (TREE_PURPOSE (attributes)),
+ && strcmp(IDENTIFIER_POINTER (TREE_PURPOSE (attributes)),
+ attributes = TREE_CHAIN(attributes);
+ if (!name_expr || TREE_CODE(name_expr) != STRING_CST)
(more recent patch sent to be offlist)
+ tree attributes = TYPE_ATTRIBUTES ( TYPE_MAIN_VARIANT( TREE_TYPE
(decl)));
+ && strcmp(IDENTIFIER_POINTER (TREE_PURPOSE (attributes)),
+ && strcmp(IDENTIFIER_POINTER (TREE_PURPOSE (attributes)),
+ int flags ATTRIBUTE_UNUSED ,
+ if (!name_expr || TREE_CODE(name_expr) != STRING_CST)
Jason might miss it, as it didn't have C++ in the subject line.