Mail Archives: djgpp/2000/01/11/13:26:51
Chris Underwood <underwoodc AT logica DOT nospam DOT com> wrote in message
news:85fbvg$j8m AT romeo DOT logica DOT co DOT uk...
>
> pavenis AT lanet DOT lv wrote in message ...
> On 10 Jan 00, at 11:05, Chris Underwood wrote:
>
> > F:\Utilities\DjGPP\sw\libamp>make
> >
>
gcc -c -O6 -ffast-math -fomit-frame-pointer -m486 -DNO_BYTE_SWAPPING -DOS_MS
> > DOS
> > -DARCH_i586 audioalg.c
> > audioalg.c: In function `audioBufferWrite':
> > audioalg.c:373: Invalid `asm' statement:
> > audioalg.c:373: fixed or forbidden register 2 (cx) was spilled for class
> > CREG.
>
> http://gcc.gnu.org/faq.html#asmclobber
>
> The FAQ neatly explains what's wrong, but not how to fix it without
learning
> assembly. Is there a patched audioalg.c file for DOS, or some other fix?
You can delete the registers it complains about off the clobber list. I'm
not sure it's a proper fix, but it will get it to compile and work.
- Raw text -