<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Fixing the &quot;fnstsw&quot; compile bug without using --disable-asm</title>
		<link>http://www.allegro.cc/forums/view/597882</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 04 Oct 2008 23:10:33 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi,<br />I&#39;ve seen various posts about the &quot;fnstsw&quot; compile bug - always with a reply stating --disable-asm or --enable-asm=no fixes it.</p><p>While that does fix it, it also disables some optimizations -- there is a better fix.</p><p>The problem is caused by the use of the asm statement</p><p>      fnstsw %eax</p><p>That used to work with old versions of binutils, current binutils versions (correctly) reject it as invalid because it uses a 16 bit operation on a 32 bit register.</p><p>The correct fix is to work on the 16 bit version of the register instead:</p><p>     fnstsw %ax</p><p>I&#39;m attaching a patch that fixes this.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bernhard Rosenkraenzer)</author>
		<pubDate>Sat, 04 Oct 2008 20:27:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Its normal to disable asm because the C code is just as fast these days.</p><p>If no other Allegro dev pushes this through and no one else disagrees then I&#39;ll apply it for you.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kazzmir)</author>
		<pubDate>Sat, 04 Oct 2008 22:13:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>No reason to not apply it.<br />It does mean that we should output 4.4 at least, maybe 4.2.3 (with just minor fixes like this) as well.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Evert)</author>
		<pubDate>Sat, 04 Oct 2008 23:10:33 +0000</pubDate>
	</item>
</rss>
