From 761399aba092bcb1299bb4fccfd60f370ab4216e Mon Sep 17 00:00:00 2001 From: Marek Skalický Date: Mar 31 2016 06:48:57 +0000 Subject: Disable two optimizations which caused regressions with new gcc - Use fedora default -O2 instead of mozjs -O3 --- diff --git a/mozjs38.spec b/mozjs38.spec index ceb8433..7105c71 100644 --- a/mozjs38.spec +++ b/mozjs38.spec @@ -4,7 +4,7 @@ Summary: JavaScript interpreter and libraries Name: mozjs38 Version: %{major}.2.1 -Release: 7%{?dist} +Release: 8%{?dist} License: MPLv2.0 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+ and AFL and ASL 2.0 URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38 Source0: https://people.mozilla.org/~sstangl/mozjs-%{version}%{pre_release}.tar.bz2 @@ -67,7 +67,7 @@ sed -i 's|\(void\) \(DisableExtraThreads()\)|JS_PUBLIC_API\(\1\) \2|g' vm/Runti %build # Need -fpermissive due to some macros using nullptr as bool false -export CFLAGS="%{optflags} -fpermissive" +export CFLAGS="%{optflags} -fpermissive -fno-tree-vrp -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" export PYTHON=/usr/bin/python2 %configure \ @@ -77,7 +77,7 @@ export PYTHON=/usr/bin/python2 --enable-xterm-updates \ --enable-shared-js \ --enable-gcgenerational \ - --enable-optimize \ + --disable-optimize \ --with-system-zlib \ --enable-system-ffi \ --with-system-icu \ @@ -122,6 +122,10 @@ tests/jstests.py -d -s --no-progress ../../js/src/js/src/shell/js %{_includedir}/mozjs-%{major} %changelog +* Thu Mar 31 2016 Marek Skalicky - 38.2.1-8 +- Disable two optimizations which caused regressions with new gcc +- Use fedora default -O2 instead of mozjs -O3 + * Thu Feb 04 2016 Fedora Release Engineering - 38.2.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild