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: [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.



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