Rex Dieter 87bb4a
diff -up qt-everywhere-opensource-src-4.8.7/configure.gcc6 qt-everywhere-opensource-src-4.8.7/configure
Rex Dieter 87bb4a
--- qt-everywhere-opensource-src-4.8.7/configure.gcc6	2016-04-15 07:04:19.430268222 -0500
Rex Dieter 87bb4a
+++ qt-everywhere-opensource-src-4.8.7/configure	2016-04-15 07:05:22.157568689 -0500
Rex Dieter 87bb4a
@@ -7744,7 +7744,7 @@ case "$XPLATFORM" in
Rex Dieter 87bb4a
     *-g++*)
Rex Dieter 87bb4a
 	# Check gcc's version
Rex Dieter 87bb4a
 	case "$(${QMAKE_CONF_COMPILER} -dumpversion)" in
Rex Dieter 87bb4a
-	    5*|4*|3.4*)
Rex Dieter 87bb4a
+	    8*|7*|6*|5*|4*|3.4*)
Rex Dieter 87bb4a
 		;;
Rex Dieter 87bb4a
             3.3*)
Rex Dieter 87bb4a
                 canBuildWebKit="no"
Rex Dieter 87bb4a
@@ -8060,7 +8060,7 @@ g++*)
Rex Dieter 87bb4a
     3.*)
Rex Dieter 87bb4a
         COMPILER_VERSION="3.*"
Rex Dieter 87bb4a
         ;;
Rex Dieter 87bb4a
-    5*|4.*)
Rex Dieter 87bb4a
+    8*|7*|6*|5*|4.*)
Rex Dieter 87bb4a
         COMPILER_VERSION="4"
Rex Dieter 87bb4a
         ;;
Rex Dieter 87bb4a
     *)
Rex Dieter 87bb4a
diff -up qt-everywhere-opensource-src-4.8.7/src/xmlpatterns/api/qcoloroutput_p.h.gcc6 qt-everywhere-opensource-src-4.8.7/src/xmlpatterns/api/qcoloroutput_p.h
Rex Dieter 87bb4a
--- qt-everywhere-opensource-src-4.8.7/src/xmlpatterns/api/qcoloroutput_p.h.gcc6	2015-05-07 09:14:48.000000000 -0500
Rex Dieter 87bb4a
+++ qt-everywhere-opensource-src-4.8.7/src/xmlpatterns/api/qcoloroutput_p.h	2016-04-15 07:04:19.431268227 -0500
a846b6
@@ -70,8 +70,8 @@ namespace QPatternist
a846b6
             ForegroundShift = 10,
a846b6
             BackgroundShift = 20,
a846b6
             SpecialShift    = 20,
a846b6
-            ForegroundMask  = ((1 << ForegroundShift) - 1) << ForegroundShift,
a846b6
-            BackgroundMask  = ((1 << BackgroundShift) - 1) << BackgroundShift
a846b6
+            ForegroundMask  = 0x1f << ForegroundShift,
a846b6
+            BackgroundMask  = 0x7 << BackgroundShift
a846b6
         };
a846b6
 
a846b6
     public: