Some small C++ cleanup PATCHes
Jason Merrill
jason@redhat.com
Tue Oct 26 17:05:00 GMT 2010
A few minor things I ran across while working on something else:
1) stabilize_expr didn't know about xvalues. I think this has no
practical impact, given the current users of stabilize_expr--when it is
called by stabilize_call, any reference arguments to the call have
REFERENCE_TYPE rather than the dereferenced type--but I thought that it
might be good to fix it for potential future users.
2) build_over_call was unnecessarily duplicating the logic for getting
the 'this' argument that was previously used to set up argarray.
3) finish_function doesn't need special handling for function_depth > 1
anymore; the comment talks about cxx_pop_function_context wanting to use
current_function_decl, but that function no longer exists.
Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stabilize-xval.patch
Type: text/x-patch
Size: 1198 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101026/211c602a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: argarray.patch
Type: text/x-patch
Size: 1041 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101026/211c602a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fn-depth.patch
Type: text/x-patch
Size: 1260 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101026/211c602a/attachment-0002.bin>
More information about the Gcc-patches
mailing list