This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/7] New obstack_next_free is not an lvalue
- From: Jeff Law <law at redhat dot com>
- To: Alan Modra <amodra at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 8 Nov 2015 16:19:28 -0700
- Subject: Re: [PATCH 1/7] New obstack_next_free is not an lvalue
- Authentication-results: sourceware.org; auth=none
- References: <20151107080729 dot GB17177 at bubble dot grove dot modra dot org>
On 11/07/2015 01:07 AM, Alan Modra wrote:
New obstack.h casts obstack_next_free to (void *), resulting in it
being a non-lvalue, and warnings on pointer arithmetic.
gcc/
* gensupport.c (add_mnemonic_string): Make len param a size_t.
(gen_mnemonic_setattr): Make "size" var a size_t. Use
obstack_blank_fast to shrink obstack. Cast obstack_next_free
return value.
gcc/objc/
* objc-encoding.c (encode_aggregate_within): Cast obstack_next_free
return value.
Richard S. already approved gensupport. I'll go ahead and approve the
objc-encoding changes.
Please install.
Thanks,
jeff