[qt] try -fno-devirtualize workaround fc21+ (#1091482, gcc #60965)

Rex Dieter rdieter at fedoraproject.org
Mon May 5 20:13:57 UTC 2014


commit b67fe78b003841854ccee4adfea02a0439b7695d
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Mon May 5 15:14:18 2014 -0500

    try -fno-devirtualize workaround fc21+ (#1091482, gcc #60965)

 qt.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/qt.spec b/qt.spec
index cd41667..33404c4 100644
--- a/qt.spec
+++ b/qt.spec
@@ -25,7 +25,7 @@ Summary: Qt toolkit
 Name:    qt
 Epoch:   1
 Version: 4.8.6
-Release: 5%{?dist}
+Release: 6%{?dist}
 
 # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
 License: (LGPLv2 with exceptions or GPLv3 with exceptions) and ASL 2.0 and BSD and FTL and MIT
@@ -533,6 +533,12 @@ rm -fv mkspecs/linux-g++*/qmake.conf.multilib-optflags
 # drop -fexceptions from $RPM_OPT_FLAGS
 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`
 
+# add -fno-devirtualize in attempt to workaround
+# https://bugzilla.redhat.com/1091482 , http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60965
+%if 0%{?fedora} > 20
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-devirtualize"
+%endif
+
 %define platform linux-g++
 
 # some 64bit platforms assume -64 suffix, https://bugzilla.redhat.com/569542
@@ -1221,6 +1227,9 @@ fi
 
 
 %changelog
+* Mon May 05 2014 Rex Dieter <rdieter at fedoraproject.org> 4.8.6-6
+- try -fno-devirtualize workaround fc21+ (#1091482, gcc #60965)
+
 * Mon May 05 2014 Rex Dieter <rdieter at fedoraproject.org> - 4.8.6-5
 - drop f21 gcc-4.9 workarounds (they didn't work)
 - omit qt-cupsEnumDests.patch, again, pending more testing (#980952)


More information about the scm-commits mailing list