From owner-freebsd-gecko@freebsd.org Tue Jun 26 00:07:41 2018 Return-Path: Delivered-To: freebsd-gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F5391026162 for ; Tue, 26 Jun 2018 00:07:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A77D7739B0 for ; Tue, 26 Jun 2018 00:07:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 680691026161; Tue, 26 Jun 2018 00:07:40 +0000 (UTC) Delivered-To: gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 457971026160 for ; Tue, 26 Jun 2018 00:07:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D69E9739AE for ; Tue, 26 Jun 2018 00:07:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0D84D17F1B for ; Tue, 26 Jun 2018 00:07:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w5Q07cDI087875 for ; Tue, 26 Jun 2018 00:07:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w5Q07cR8087866 for gecko@FreeBSD.org; Tue, 26 Jun 2018 00:07:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: gecko@FreeBSD.org Subject: [Bug 229326] [patch] Mk/bsd.gecko.mk remove forced -O3 optimization Date: Tue, 26 Jun 2018 00:07:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: flagtypes.name Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2018 00:07:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229326 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |maintainer-feedback+ --- Comment #2 from Jan Beich --- -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 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 /builds/worker/workspace/build/src/gcc/bin/g++ 6.4.0 -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 --=20 You are receiving this mail because: You are the assignee for the bug.=