Mozilla's xptcall
Joe Marcus Clarke
marcus at marcuscom.com
Thu Nov 20 12:18:25 PST 2003
On Thu, 2003-11-20 at 15:11, mi+mx at aldan.algebra.com wrote:
> On Thu, 2003-11-20 at 14:54, mi+mx at 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.
It's not the optimization level, but rather -march=pentium4 that causes
problems with Mozilla. This is a known issue.
>
> 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.
Everyone that has brought up compilation issues or crashers with Mozilla
has been pointed back to /etc/defaults/make.conf to red the section on
default CFLAGS. However, -O2 has been tested, and does work. There is
even an option to enable it in the Mozilla Makefiles. However, I do not
think this was ever tested on mozilla-vendor, so you may have something
there. In that case, this would need to be applied to OpenOffice as
they have the last remaining mozilla-vendor bits.
Joe
>
> -mi
>
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20031120/e2a6da09/attachment.bin
More information about the freebsd-gnome
mailing list