This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: update bits/setjmp.h for hppa/m68k/mips/s390/sh
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 15 Nov 2005 23:51:18 -0500
- Subject: Re: update bits/setjmp.h for hppa/m68k/mips/s390/sh
- References: <20051116035711.GC3277@toucan.gentoo.org>
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