Re: HEADS UP: OpenSSL problems after GCC 4.2 upgrade

From: Alexander Kabaev <kabaev_at_gmail.com>
Date: Sun, 20 May 2007 08:56:27 -0400
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

Received on Sun May 20 2007 - 10:56:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:10 UTC