Date: Wed, 30 Dec 1998 10:52:23 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Christian Hofrichter cc: djgpp AT delorie DOT com Subject: Re: Can't unroll loops when using "-O" Optimation and having defined labels with asm In-Reply-To: <36894BAB.61D18F84@gmx.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Tue, 29 Dec 1998, Christian Hofrichter wrote: > I have defined labels in my asm-code within a loop, but cannot use the > "unrool-loops switch" in combination with the "O"-Optimation. > Everytime I try this, I get the following error: > "Fatal Error: Symbol XXX already defined" (Where XXX is my > label) Use local labels, like this (NOT tested!): unsigned short x; for (x=0;x<8;x++) { asm("jmp 1f\n\t" "1:\n\t"); } The `f' letter stands for FORWARD; use `1b' if you need to jump back.