Bug 1521391 - Use the old code path with gcc to fix a build issue with gcc-8 r=bas
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 21 Jan 2019 17:45:28 +0000
changeset 454710 67b3cbf805e1820721d162dd497aef10ed9eabea
parent 454709 2717febc588c1e7145af3a68cb0f932fa0cb6f81
child 454711 2307fb1cfa80a5d4cf05c404917344510a982194
push id35411
push usercsabou@mozilla.com
push dateTue, 22 Jan 2019 03:53:40 +0000
treeherdermozilla-central@ada22b635f8d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas
bugs1521391
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1521391 - Use the old code path with gcc to fix a build issue with gcc-8 r=bas Differential Revision: https://phabricator.services.mozilla.com/D17083
gfx/2d/PathHelpers.h
--- a/gfx/2d/PathHelpers.h
+++ b/gfx/2d/PathHelpers.h
@@ -25,17 +25,17 @@ struct PathOp {
     OP_BEZIERTO,
     OP_QUADRATICBEZIERTO,
     OP_ARC,
     OP_CLOSE
   };
 
   OpType mType;
   Point mP1;
-#if !defined(__GNUC__) || __GNUC__ >= 7
+#if (!defined(__GNUC__) || __GNUC__ >= 7) && defined(__clang__)
   union {
     struct {
       Point mP2;
       Point mP3;
     };
     struct {
       float mRadius;
       float mStartAngle;