[AD] [ alleg-Patches-2146565 ] 4.2.2 fails to compile with recent versions of binutils |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: noreply@xxxxxxxxxx
- Subject: [AD] [ alleg-Patches-2146565 ] 4.2.2 fails to compile with recent versions of binutils
- From: "SourceForge.net" <noreply@xxxxxxxxxx>
- Date: Sat, 04 Oct 2008 15:48:10 +0000
Patches item #2146565, was opened at 2008-10-04 15:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=2146565&group_id=5665
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bernhard Rosenkraenzer (bero)
Assigned to: Nobody/Anonymous (nobody)
Summary: 4.2.2 fails to compile with recent versions of binutils
Initial Comment:
The problem is caused by the use of the asm statement
fnstsw %eax
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.
The correct fix is to work on the 16 bit version of the register instead:
fnstsw %ax
I'm attaching a patch that fixes this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=2146565&group_id=5665