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: PR /3187] C++ space optimization: declone delete destructor


+/* DELETE_DTOR is a delete destructor whose body will be build.

s/build/built


+ call_delete = build_op_delete_call(DELETE_EXPR, current_class_ptr,

Space before (.


I don't think we need to mess with decl_map for the deleting destructor, either.

Doing this in maybe_clone_body seems a bit dodgy, since we aren't really cloning anymore, but I guess it's fine.

Re inlining comments, introducing a local alias seems wrong; either the function is replaceable or it isn't. In any case, I'm not concerned about the overhead of an extra call in the deleting destructor, which is going to be dominated by free().

Jason


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