Mail Archives: djgpp/2000/03/27/13:18:57
David Cleaver <davidis AT ou DOT edu> wrote:
[...]
> Ok, my problem is that I'm compiling source code that isn't mine and that
> apparently has a ton of 'asm' in it. So, of course, I'm getting the error:
> farptrx.h:13: Invalid 'asm' statement:
> farptrx.h:13: fixed or forbidden register 2 (cx) was spilled for class CREG.
> Now, my first question is: Can I somehow get it to compile this without it
> complaining about the clobbered registers (or whatever the terminology is)?
Not without changing the source, or going back to gcc-2.8.1.
Given that you seem not to understand inline assembly, yet, I don't
think you're up to the task of making the necessary changes yourself.
Leave that to the experts who wrote the code, in the first place:
> Should I tell the writers of the code what has happened and hope
> that they can change it?
Definitely. If they do want to keep their source up-to-date, they have
to make those changes. Point them to the GCC FAQ, and they'll probably
see what has to be done.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -