From: Graeme Russ Date: Sun, 23 Aug 2009 12:59:46 +1000 Subject: [U-Boot] [PATCH 02/17] Change inline asm global symbols to local In-Reply-To: <1250996401-13642-2-git-send-email-graeme.russ@gmail.com> References: <1250996401-13642-1-git-send-email-graeme.russ@gmail.com> <1250996401-13642-2-git-send-email-graeme.russ@gmail.com> Message-ID: <1250996401-13642-3-git-send-email-graeme.russ@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de gcc 4.3.2 optimiser creates multiple copies of inline asm (who knows why) Remove use of global names for labels to prevent 'symbol already defined' errors Signed-off-by: Graeme Russ --- board/eNET/eNET.c | 4 ++-- cpu/i386/sc520/sc520.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c index 57dd635..27dabaa 100644 --- a/board/eNET/eNET.c +++ b/board/eNET/eNET.c @@ -51,9 +51,9 @@ void init_sc520_enet (void) /* wait at least one millisecond */ asm("movl $0x2000,%%ecx\n" - "wait_loop: pushl %%ecx\n" + "0: pushl %%ecx\n" "popl %%ecx\n" - "loop wait_loop\n": : : "ecx"); + "loop 0b\n": : : "ecx"); /* turn on the SDRAM write buffer */ write_mmcr_byte(SC520_DBCTL, 0x11); diff --git a/cpu/i386/sc520/sc520.c b/cpu/i386/sc520/sc520.c index ae3b500..1d79210 100644 --- a/cpu/i386/sc520/sc520.c +++ b/cpu/i386/sc520/sc520.c @@ -109,9 +109,9 @@ void init_sc520(void) /* wait at least one millisecond */ asm("movl $0x2000,%%ecx\n" - "wait_loop: pushl %%ecx\n" + "0: pushl %%ecx\n" "popl %%ecx\n" - "loop wait_loop\n": : : "ecx"); + "loop 0b\n": : : "ecx"); /* turn on the SDRAM write buffer */ write_mmcr_byte(SC520_DBCTL, 0x11); -- 1.6.0.2.GIT