From: "Marp" Newsgroups: comp.os.msdos.djgpp Subject: Re: Compiling Libamp Date: Tue, 11 Jan 2000 12:28:41 -0500 Organization: MindSpring Enterprises Lines: 27 Message-ID: <85fp8c$t6e$1@nntp9.atl.mindspring.net> References: <85fbvg$j8m AT romeo DOT logica DOT co DOT uk> NNTP-Posting-Host: c7.b7.cf.33 X-Server-Date: 11 Jan 2000 17:28:44 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Chris Underwood 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.