New obstack_next_free is not an lvalue
authorAlan Modra <amodra@gmail.com>
Mon, 9 Nov 2015 04:17:53 +0000 (14:47 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Mon, 9 Nov 2015 04:17:53 +0000 (14:47 +1030)
commitc240b3e0de184a2bbb4f78e86126bee4748ab147
tree40d04b5ff75eb1362564309965f342bdd9391702
parentd4c8d5ede1f35643163942af46bcb51d3c03c8d7
New obstack_next_free is not an lvalue

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.

From-SVN: r229984
gcc/ChangeLog
gcc/gensupport.c
gcc/objc/ChangeLog
gcc/objc/objc-encoding.c