From owner-freebsd-current@FreeBSD.ORG Sun May 20 12:56:35 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 36B7016A421 for ; Sun, 20 May 2007 12:56:35 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.freebsd.org (Postfix) with ESMTP id 8093913C45A for ; Sun, 20 May 2007 12:56:34 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1274061wxc for ; Sun, 20 May 2007 05:56:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=kv38fVlobs6Mq6BYl4JE5IrmUOrzLFDtgdYMvdHTTpGHi7LK7LdkTVa76hOKsr719GrOku6jqmTa83HLJ1qCSlUcgy4CqPkMd+MEkwU8Y1oLKuJig1uQx9exFzIwmRxw7m30lRcz5n4DhoTvWF90NSy4RNUqk+qar8/ss7rZlFE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=KbJkj7VyxlB+beW3O7mwRmnodUe3FPxrj8XKlj7JQaZeZ13/B/a/VHHL4w2cKeZpeGTLgNDLN8YkiNLAIrtn9H1srjRqwSggSeU7qUs2bIHt8gSWzJHLDC6A25/w3L3jO1bg5RHcHLI3omCtG2hJJiO8NcYzuMMJBVvwrHLEqz0= Received: by 10.70.31.14 with SMTP id e14mr5485724wxe.1179665793788; Sun, 20 May 2007 05:56:33 -0700 (PDT) Received: from kan.dnsalias.net ( [24.34.98.164]) by mx.google.com with ESMTP id 45sm8024445wri.2007.05.20.05.56.32; Sun, 20 May 2007 05:56:32 -0700 (PDT) Date: Sun, 20 May 2007 08:56:27 -0400 From: Alexander Kabaev To: Hans Petter Selasky Message-ID: <20070520085627.1b7de382@kan.dnsalias.net> In-Reply-To: <200705201013.39171.hselasky@c2i.net> References: <20070520022722.1f5a0cda@kan.dnsalias.net> <200705201013.39171.hselasky@c2i.net> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_P+JNfja0m..+BltCfE4AMio; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: Michiel Boland , Larry, freebsd-current@freebsd.org, Rosenman Subject: Re: HEADS UP: OpenSSL problems after GCC 4.2 upgrade X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2007 12:56:35 -0000 --Sig_P+JNfja0m..+BltCfE4AMio Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 20 May 2007 10:13:39 +0200 Hans Petter Selasky 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. >=20 > Why does it not break on compile/link time? >=20 > --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. --=20 Alexander Kabaev --Sig_P+JNfja0m..+BltCfE4AMio Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGUEV7Q6z1jMm+XZYRAoWmAKCsr4DW5ejTUY+mMXZr6rNHZm+eswCggxCn pLkQ/1OpR9tm/fZlVVLXSTk= =swa5 -----END PGP SIGNATURE----- --Sig_P+JNfja0m..+BltCfE4AMio--