From owner-freebsd-current@FreeBSD.ORG Sat May 26 23:32:50 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 283DF16A469 for ; Sat, 26 May 2007 23:32:50 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 0A01B13C45B for ; Sat, 26 May 2007 23:32:50 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.1/8.13.8) with ESMTP id l4QNVLZ8056067; Sat, 26 May 2007 16:31:21 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.1/8.13.8/Submit) id l4QNVGLc056066; Sat, 26 May 2007 16:31:16 -0700 (PDT) (envelope-from sgk) Date: Sat, 26 May 2007 16:31:16 -0700 From: Steve Kargl To: Wes Morgan Message-ID: <20070526233116.GA56054@troutmask.apl.washington.edu> References: <20070526193128.GB54875@troutmask.apl.washington.edu> <20070526214835.GS23313@hoeg.nl> <20070526224040.GA55701@troutmask.apl.washington.edu> <20070526225731.GA56181@xor.obsecurity.org> <20070526190023.C98508@volatile.chemikals.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070526190023.C98508@volatile.chemikals.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-current@freebsd.org, Ed Schouten , Kris Kennaway Subject: Re: HEADS-UP: gcc-4.2 import appears to miscompile libm. 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: Sat, 26 May 2007 23:32:50 -0000 On Sat, May 26, 2007 at 07:09:16PM -0400, Wes Morgan wrote: > > Working from -O towards -O2 based on the info pages, I can "reproduce" the > problem with "-O -fstrict-aliasing -fgcse"... However, -O2 with > -fno-strict-aliasing by itself seems to work around the issue. At first > glance it looks like a possible interaction between several optimizations. > Ths patch fixes the problem. --- s_frexpf.c.orig Sat May 26 16:26:50 2007 +++ s_frexpf.c Sat May 26 16:28:03 2007 @@ -39,6 +39,9 @@ } *eptr += (ix>>23)-126; hx = (hx&0x807fffff)|0x3f000000; +#if 0 *(int*)&x = hx; +#endif + SET_FLOAT_WORD(x,hx); return x; } -- Steve