Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2018 00:07:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   [Bug 229326] [patch] Mk/bsd.gecko.mk remove forced -O3 optimization
Message-ID:  <bug-229326-21738-X0KgUJZXho@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-229326-21738@https.bugs.freebsd.org/bugzilla/>
References:  <bug-229326-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229326

Jan Beich <jbeich@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |maintainer-feedback+

--- Comment #2 from Jan Beich <jbeich@FreeBSD.org> ---
-O3 is enabled by default because Mozilla uses it on macOS which is like
FreeBSD a Clang platform. FreeBSD Port allows to override -O3 via CFLAGS in
make.conf as only the last -O<n> matters.

(In reply to Kenneth Salerno from comment #0)
> laptop with inadequate RAM

Firefox is supposed to take advantage of mozjemalloc to keep memory usage l=
ow.
Unfortunately, it hasn't been ported to FreeBSD despite originating from th=
ere.
If Stylo performance isn't very important try the following workaround:

  # jemalloc4 tunning before
https://bugzilla.mozilla.org/show_bug.cgi?id=3D1363992
  $ MALLOC_CONF=3D"narenas:1,tcache:false" firefox ...

> Fedora Linux ... GCC7

Distro builds may use different flags. Try looking at Mozilla build logs fr=
om
"opt" jobs in https://treeherder.mozilla.org/#/jobs?repo=3Dmozilla-release

Another option is to extract a binary:

$ fetch
https://download.cdn.mozilla.net/pub/firefox/releases/61.0/linux-x86_64/en-=
US/firefox-61.0.tar.bz2
$ tar xkf firefox-61.0.tar.bz2
$ (cd firefox; tar xUf omni.ja)
$ (cd firefox/browser; tar xUf omni.ja)
$ fgrep -B2 -- -O3 firefox/chrome/toolkit/content/global/buildconfig.html
      <td>/builds/worker/workspace/build/src/gcc/bin/g++</td>
      <td>6.4.0</td>
      <td>-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -Wall -Wempty-body
-Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare
-Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof
-Wduplicated-cond -Wno-error=3Dmaybe-uninitialized
-Wno-error=3Ddeprecated-declarations -Wno-error=3Darray-bounds
-Wno-error=3Dcoverage-mismatch -Wno-error=3Dfree-nonheap-object -Wformat
-D_GLIBCXX_USE_CXX11_ABI=3D0 -fno-sized-deallocation -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=3D2 -fno-exceptions -fno-strict-aliasing -fno-rtti
-ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread
-pipe -g -O3 -fomit-frame-pointer</td>

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229326-21738-X0KgUJZXho>