update bits/setjmp.h for hppa/m68k/mips/s390/sh

Daniel Jacobowitz drow@false.org
Wed Nov 16 04:51:00 GMT 2005


On Wed, Nov 16, 2005 at 03:57:12AM +0000, Mike Frysinger wrote:
> simple patch to update bits/setjmp.h for hppa/m68k/mips/s390/sh .. add
> normal _BITS_SETJMP_H preprocessors around the whole file and standard
> #error check if included by any header other than setjmp.h or pthread.h
> -mike

What are the void* casts needed for?

And a question for Kaz...

>  /* Test if longjmp to JMPBUF would unwind the frame
>     containing a local variable at ADDRESS.  */
>  #define _JMPBUF_UNWINDS(jmpbuf, address) \
> -  ((void *) (address) < &(jmpbuf)[0].__regs[7])
> +  ((void *) (address) < (void *) &(jmpbuf)[0].__regs[7])

Is that & really correct?  I would have expected to compare against the
value, not the address of a member of the jmp_buf.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



More information about the Libc-alpha mailing list