From owner-cvs-all Mon Sep 23 12:43:47 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F25B837B401 for ; Mon, 23 Sep 2002 12:43:45 -0700 (PDT) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC14F43E75 for ; Mon, 23 Sep 2002 12:43:44 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 27625 invoked from network); 23 Sep 2002 19:43:57 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 23 Sep 2002 19:43:57 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g8NJhgBv082417; Mon, 23 Sep 2002 15:43:42 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020923192518.GA78132@dragon.nuxi.com> Date: Mon, 23 Sep 2002 15:43:44 -0400 (EDT) From: John Baldwin To: "David O'Brien" Subject: Re: cvs commit: src/contrib/gcc toplev.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, Mikhail Teterin , Mike Barcroft Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 23-Sep-2002 David O'Brien wrote: > On Mon, Sep 23, 2002 at 02:30:11PM -0400, Mike Barcroft wrote: >> Mikhail Teterin writes: >> > On Sunday 22 September 2002 03:26 am, David E. O'Brien wrote: >> > = obrien 2002/09/22 00:26:39 PDT >> > = >> > = Modified files: >> > = contrib/gcc toplev.c >> > = Log: >> > = Turn off the "-O2 flag TRIGGERS KNOWN OPTIMIZER BUGS" warning. >> > >> > What about x86 (and -current)? Is it safe to use -O2? >> >> Not yet. See PR 40209. > > Not being able to use -O2 is due to a code bug in FreeBSD's code. Not > due to GCC optimizer bugs. I feel it is safe to give -O2 a try on > people's own code now. Is it due to stuff in __asm restraints that diff's like these would fix: --- i386/i386/math_emulate.c 20 Jun 2002 07:23:08 -0000 1.41 +++ i386/i386/math_emulate.c 17 Jul 2002 02:53:57 -0000 @@ -760,8 +760,7 @@ if ((ti.sign = (ti.b < 0)) != 0) __asm__("notl %0 ; notl %1\n\t" "addl $1,%0 ; adcl $0,%1" - :"=r" (ti.a),"=r" (ti.b) - :"0" (ti.a),"1" (ti.b)); + :"+r" (ti.a),"+r" (ti.b)); int_to_real(&ti,tmp); } (etc.. I have a bunch of these) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message