From owner-freebsd-gnome@FreeBSD.ORG Thu Nov 20 12:11:22 2003 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7231416A4CE for ; Thu, 20 Nov 2003 12:11:22 -0800 (PST) Received: from corbulon.video-collage.com (corbulon.video-collage.com [64.35.99.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5010343FAF for ; Thu, 20 Nov 2003 12:11:21 -0800 (PST) (envelope-from mi+mx@aldan.algebra.com) Received: from 250-217.customer.cloud9.net (195-11.customer.cloud9.net [168.100.195.11])hAKKBFne032300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 20 Nov 2003 15:11:17 -0500 (EST) (envelope-from mi+mx@aldan.algebra.com) Received: from localhost (mteterin@localhost [127.0.0.1]) hAKKB9aJ047572; Thu, 20 Nov 2003 15:11:10 -0500 (EST) (envelope-from mi+mx@aldan.algebra.com) From: mi+mx@aldan.algebra.com Organization: Virtual Estates, Inc. To: Joe Marcus Clarke Date: Thu, 20 Nov 2003 15:11:08 -0500 User-Agent: KMail/1.5.3 References: <200311201454.56022@misha-mx.virtual-estates.net> <1069358484.783.51.camel@gyros> In-Reply-To: <1069358484.783.51.camel@gyros> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311201511.08686@misha-mx.virtual-estates.net> X-Scanned-By: MIMEDefang 2.21 (www . roaringpenguin . com / mimedefang) cc: FreeBSD GNOME Users Subject: Re: Mozilla's xptcall X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Nov 2003 20:11:22 -0000 On Thu, 2003-11-20 at 14:54, mi+mx@aldan.algebra.com wrote: => Hello! => => In order to build mozilla (and hence, OpenOffice) I needed the => attached patch. It seems, that the xptcall files are very fragile => to the compiler optimization, so the patch is needed to replace => whatever the configured through the make.conf with the vanilla => ``-O''. Curiously, the file being patched already contains similar => hacks for other platforms. Yours, =mozilla and mozilla-devel build fine with -O2. regxpcom usually crashes for me unless built with -O. But I'm using -march=pentium4 and -fomit-frame-pointer. This time I went with a very elaborate: -march=pentium4 -O \ -fomit-frame-pointer -fbuiltin -fstrength-reduce \ -fthread-jumps -funroll-loops -fcse-follow-jumps \ -fcse-skip-blocks -frerun-cse-after-loop \ -fexpensive-optimizations -fschedule-insns -fschedule-insns2 Most (all?) of the rest of the code is either C or C++ and it is reasonable to expect the compiler to do the right thing. The directory in question, however, contains mostly assembly code, which is being mis-compiled with more agressive optimization options. -mi