bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c-stack and Irix - libsigsegv


From: Eric Blake
Subject: Re: c-stack and Irix - libsigsegv
Date: Sun, 21 Sep 2008 15:26:20 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Tom G. Christensen on 9/21/2008 2:30 PM:
> cc-3316 cc: ERROR File = handler-unix.c, Line = 490
>   The expression must be a pointer to a complete object type.
> 
>       ss.ss_sp = extra_stack + extra_stack_size - sizeof (void *);
>                  ^

Yep - gcc allows addition of void*, but many other compilers require an
explicit cast to char * before you can do pointer math (since C89 leaves
pointer math on void* undefined).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjWu/wACgkQ84KuGfSFAYAFDgCeN1t78GrH19Iq5iAKa7qhuDVY
GpIAmwZ/7El3xwNh0OvYGgzhbG+GgeF+
=W1/L
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]