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 50594 (C++ front-end bits)


Hi,
+    delattrs
+      = build_tree_list (get_identifier ("externally_visible"),
+             build_tree_list (NULL_TREE, integer_one_node));
Why integer_one_node?
To be honest? No idea, I copied what pre-existed for operator new. Shall I
test (NULL_TREE, NULL_TREE)??
build_tree_list (get_identifier ("externally_visible"), NULL_TREE)
Thanks Richard. Ah, now I see: for new, the integer_one_node is for the alloc_size attribute itself. externally_visible has no parameters of its own. Sorry about my laziness ;)

Thus I'm testing the below. Looks better?

Thanks,
Paolo.

///////////////////////

Attachment: patch_50594_cxx_2
Description: Text document


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