Subject: Re: gcc inline asm help?
To: Jeff Rizzo <riz@tastylime.net>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: port-i386
Date: 04/13/2005 13:51:38
On Wed, 2005-04-13 at 09:18 -0700, Jeff Rizzo wrote:
> Hi-
>
> I'm trying to fix the sysutils/toshutils package for someone without
> the benefit of actually having a Toshiba laptop to test things on, and
> the issue seems to be in some inline assembly code which is treated
> differently in gcc 3.X from gcc 2.95; this pkg has been broken
> for quite a while. :)
>
> Anyone have a hint how I should, perhaps, patch this? The error in question
> is:
>
> sci.c: In function `SciSupportCheck':
> sci.c:91: error: impossible constraint in `asm'
> *** Error code 1
I am by no means a GCC or ASM expert, but when I was looking at this, I
remember splitting up the asm into multiple lines, and the part actually
causing the problem was
> :"=m" (ah) : : "memory" );
Not sure how to fix it, but it might at least give you somewhere to
start.
Cheers,
Jared