HEADS UP: OpenSSL problems after GCC 4.2 upgrade
Alexander Kabaev
kabaev at gmail.com
Sun May 20 12:56:35 UTC 2007
On Sun, 20 May 2007 10:13:39 +0200
Hans Petter Selasky <hselasky at c2i.net> wrote:
> On Sunday 20 May 2007 08:27, Alexander Kabaev wrote:
> > Hi all,
> >
> > there were several reports of OpenSSL being broken when compiled
> > with GCC 4.2. It turns out OpenSSL uses function casting feature
> > that was aggressively de-supported by GCC 4.2 and GCC goes as far
> > as inserting invalid instructions ON PURPOSE to discourage the
> > practice.
>
> Why does it not break on compile/link time?
>
> --HPS
That is extremely good question. GCC issues warning that the code will
abort if execution ever reaches this point, but compiles the file
anyway. I see no logical explanation for this behaviour. Interested
parties can take this to GCC mailing lists.
--
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070520/50c123e6/signature.pgp
More information about the freebsd-current
mailing list