libtool-patches
[Top][All Lists]
Advanced

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

Re: pointer conversion errors


From: Gary V. Vaughan
Subject: Re: pointer conversion errors
Date: Tue, 01 Nov 2005 11:39:06 +0000
User-agent: Mozilla Thunderbird 1.0 (X11/20050305)

Ralf Wildenhues wrote:
I'm not sure whether I need to ask for approval for this patch..

Anyway, I'll apply this to branch-1-5 and HEAD unless someone disagrees.
Without it, IBM compilers barf over this in picky mode.  I believe it
even be necessary as per C standard.

POSIX allows for function pointers to be a different size to void pointers,
so it is not safe to cast from one to another and back again.

Technically the code is already broken in this respect, so perhaps we don't
lose anything by applying this patch.  I'm okay with it as long as it is
tested on common archs (pref. including x86_64, sparc, Tru64 and HPUX) first,
as they are the most likely to exhibit problems.

Maybe it is worth asking Bruno Haible or Paul Eggert for an opinion?

Cheers,
        Gary.
--
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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