This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]