commit:     f373b422ad975add8b59468f781d10b3b2106b3f
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 21 21:36:02 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Dec 21 23:40:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f373b422

dev-lang/spidermonkey: synchronize with www-client/firefox

Bug: https://bugs.gentoo.org/758446
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 dev-lang/spidermonkey/spidermonkey-78.6.0.ebuild | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dev-lang/spidermonkey/spidermonkey-78.6.0.ebuild 
b/dev-lang/spidermonkey/spidermonkey-78.6.0.ebuild
index 4fab87fc3ce..b9aea8f68d3 100644
--- a/dev-lang/spidermonkey/spidermonkey-78.6.0.ebuild
+++ b/dev-lang/spidermonkey/spidermonkey-78.6.0.ebuild
@@ -228,6 +228,7 @@ src_prepare() {
 src_configure() {
        # Show flags set at the beginning
        einfo "Current CFLAGS:    ${CFLAGS}"
+       einfo "Current CXXFLAGS:  ${CXXFLAGS}"
        einfo "Current LDFLAGS:   ${LDFLAGS}"
        einfo "Current RUSTFLAGS: ${RUSTFLAGS}"
 
@@ -315,8 +316,16 @@ src_configure() {
        # LTO flag was handled via configure
        filter-flags '-flto*'
 
+       if tc-is-gcc ; then
+               if ver_test $(gcc-fullversion) -ge 10 ; then
+                       einfo "Forcing -fno-tree-loop-vectorize to workaround 
GCC bug, see bug 758446 ..."
+                       append-cxxflags -fno-tree-loop-vectorize
+               fi
+       fi
+
        # Show flags we will use
        einfo "Build CFLAGS:    ${CFLAGS}"
+       einfo "Build CXXFLAGS:  ${CXXFLAGS}"
        einfo "Build LDFLAGS:   ${LDFLAGS}"
        einfo "Build RUSTFLAGS: ${RUSTFLAGS}"
 

Reply via email to