From owner-freebsd-current Thu Mar 6 9:24:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B31E37B401 for ; Thu, 6 Mar 2003 09:24:44 -0800 (PST) Received: from grassmarket.ucs.ed.ac.uk (grassmarket.ucs.ed.ac.uk [129.215.166.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04DB943FA3 for ; Thu, 6 Mar 2003 09:24:42 -0800 (PST) (envelope-from bruce@cran.org.uk) Received: from fourtytwo.brucec.backnet (12266209.resnet.ed.ac.uk [10.6.0.100] (may be forged)) by grassmarket.ucs.ed.ac.uk (8.11.6/8.11.6) with ESMTP id h26HOTT12237; Thu, 6 Mar 2003 17:24:35 GMT Received: from fourtytwo.brucec.backnet (localhost.fourtytwo.brucec.backnet [127.0.0.1]) by fourtytwo.brucec.backnet (8.12.8/8.12.6) with ESMTP id h26HOT9X003238; Thu, 6 Mar 2003 17:24:29 GMT (envelope-from bruce@fourtytwo.brucec.backnet) Received: (from bruce@localhost) by fourtytwo.brucec.backnet (8.12.8/8.12.8/Submit) id h26HOTm6003237; Thu, 6 Mar 2003 17:24:29 GMT Date: Thu, 6 Mar 2003 17:24:28 +0000 From: Bruce Cran To: Khairil Yusof Cc: current@freebsd.org Subject: Re: -O2 broke ppp NAT Message-ID: <20030306172428.GA3146@fourtytwo.brucec.backnet> References: <20030305220020.GA647@gw.tex.bogus> <1046956926.26378.4.camel@daemon.home.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1046956926.26378.4.camel@daemon.home.net> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Mar 06, 2003 at 09:22:06PM +0800, Khairil Yusof wrote: > On Thu, 2003-03-06 at 06:00, Nuno Teixeira wrote: > > > For the first time I compile current-p3 -> current-p4 with > > -march=pentium2 -O2 -mmmx -pipe and aparently everything works ok > > except ppp -nat. NAT just don't work on my network. All machines are > > able to ping except ftp, http, etc. > > I can confirm this. nat fails to work with -O2 for usr.sbin/ppp. It > compiles cleanly though, but I don't know enough about gcc optimizations > to find out how O2 might break it. > 387 (FPU) code generation seems to be broken in gcc 3.2.1 when -O2 is used. I can compile applications with no problems when -mfpmath=sse is added so that the 387 unit won't be used, but without it, applications crash. Note that since SSE support is enabled by the kernel, it probably wouldn't be a good idea to compile the kernel with -mfpmath=sse. Bruce Cran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message