From b782dca4430077468f0f47297a6fb8b9c72ddfd3 Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Sun, 3 Jul 2016 16:57:02 +0100
Subject: [PATCH] qtwebkit: CentOS5 Fix fucomip compat with gas 2.17.50

---
 Source/JavaScriptCore/offlineasm/x86.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git qtwebkit/Source/JavaScriptCore/offlineasm/x86.rb qtwebkit/Source/JavaScriptCore/offlineasm/x86.rb
index ac433f3..206554d 100644
--- qtwebkit/Source/JavaScriptCore/offlineasm/x86.rb
+++ qtwebkit/Source/JavaScriptCore/offlineasm/x86.rb
@@ -691,14 +691,14 @@ class Instruction
                 $asm.puts "fucomi #{operands[1].x87Operand(0)}"
             else
                 $asm.puts "fld #{operands[0].x87Operand(0)}"
-                $asm.puts "fucomip #{operands[1].x87Operand(1)}"
+                $asm.puts "fucomip #{operands[1].x87Operand(1)}, %st"
             end
         when :reverse
             if (operands[1].x87DefaultStackPosition == 0)
                 $asm.puts "fucomi #{operands[0].x87Operand(0)}"
             else
                 $asm.puts "fld #{operands[1].x87Operand(0)}"
-                $asm.puts "fucomip #{operands[0].x87Operand(1)}"
+                $asm.puts "fucomip #{operands[0].x87Operand(1)}, %st"
             end
         else
             raise mode.inspect
@@ -961,7 +961,7 @@ class Instruction
                 $asm.puts "testl #{operands[1].x86Operand(:int)}, #{operands[1].x86Operand(:int)}"
                 $asm.puts "je #{operands[2].asmLabel}"
                 $asm.puts "fildl -4(#{sp.x86Operand(:ptr)})"
-                $asm.puts "fucomip #{operands[0].x87Operand(1)}"
+                $asm.puts "fucomip #{operands[0].x87Operand(1)}, %st"
                 $asm.puts "jp #{operands[2].asmLabel}"
                 $asm.puts "jne #{operands[2].asmLabel}"
             else
-- 
2.9.0

