Subject: Mozilla optimization level, again
To: None <taya@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 08/13/2002 08:21:17
Is it really necessary to build mozilla with "-01" on most ports, and
with "-O0" on m68k? I think not. Usually, if there's a problem with
optimization levels on one file, we'll reduce it for that one file,
not for the whole program, and mozilla is slow enough, that every
little bit counts.

I've built it with gcc-2.95.3 with "-02 -k6" and "-O2 -march=i686" and
ran it with no problems.

Therefore, if there's no objection, I'll commit the following:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/mozilla/Makefile,v
retrieving revision 1.96
diff -c -r1.96 Makefile
*** Makefile	2002/08/02 05:40:48	1.96
--- Makefile	2002/08/13 13:11:01
***************
*** 69,79 ****

  PTHREAD_OPTS+=	native optional

! .if ${MACHINE_ARCH} == "m68k"
! DBG=
! .else
! CONFIGURE_ARGS+= --enable-optimize
! .endif

  XPTCFILES+=	xptcinvoke_asm_sparc64_netbsd.s xptcstubs_asm_sparc64_netbsd.s
  XPTCFILES+=	xptcinvoke_sparc64_netbsd.cpp xptcstubs_sparc64_netbsd.cpp
--- 69,76 ----

  PTHREAD_OPTS+=	native optional

! COPTS?=		-O2
! CONFIGURE_ARGS+= --enable-optimize="${COPTS}"

  XPTCFILES+=	xptcinvoke_asm_sparc64_netbsd.s xptcstubs_asm_sparc64_netbsd.s
  XPTCFILES+=	xptcinvoke_sparc64_netbsd.cpp xptcstubs_sparc64_netbsd.cpp


Frederick