Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Mar 2003 17:24:28 +0000
From:      Bruce Cran <bruce@cran.org.uk>
To:        Khairil Yusof <kaeru@pd.jaring.my>
Cc:        current@freebsd.org
Subject:   Re: -O2 broke ppp NAT
Message-ID:  <20030306172428.GA3146@fourtytwo.brucec.backnet>
In-Reply-To: <1046956926.26378.4.camel@daemon.home.net>
References:  <20030305220020.GA647@gw.tex.bogus> <1046956926.26378.4.camel@daemon.home.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030306172428.GA3146>