Re: Prepare gcc for 64-bit obstacks

2014-09-25 Thread Jeff Law
On 08/04/14 05:04, Alan Modra wrote: Two small changes to gcc code to support newer obstacks: 1) gcc currently calls _obstack_begin, which requires some ugly casts on alloc and free functions, and the casts will change when/if 64-bit obstacks are available. It's cleaner to use the convenience f

Re: Prepare gcc for 64-bit obstacks

2014-08-04 Thread Tom Tromey
> "Alan" == Alan Modra writes: Alan> Bootstrapped and regression tested x86_64-linux and powerpc-linux, Alan> with both the new obstack.{h,c} and the old versions. OK to apply? Alan> gcc/java/ Alan> * mangle.c (finish_mangling): Cast result of obstack_base to (char *). Alan> * typeck.c

Prepare gcc for 64-bit obstacks

2014-08-04 Thread Alan Modra
Two small changes to gcc code to support newer obstacks: 1) gcc currently calls _obstack_begin, which requires some ugly casts on alloc and free functions, and the casts will change when/if 64-bit obstacks are available. It's cleaner to use the convenience functions provided in obstack.h. 2) Cur