From 1d8abd74c4ae9b28035b549345f9f736cdb98c10 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 24 Apr 2008 09:24:59 +0000 Subject: - fixup asm. No object-code changes --- ldso/ldso/bfin/dl-inlines.h | 2 +- ldso/ldso/bfin/dl-syscalls.h | 2 +- ldso/ldso/bfin/dl-sysdep.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ldso/ldso/bfin') diff --git a/ldso/ldso/bfin/dl-inlines.h b/ldso/ldso/bfin/dl-inlines.h index 18f366873..76ce32dea 100644 --- a/ldso/ldso/bfin/dl-inlines.h +++ b/ldso/ldso/bfin/dl-inlines.h @@ -422,7 +422,7 @@ _dl_lookup_address (void const *address) struct funcdesc_value const *fd; /* Make sure we don't make assumptions about its alignment. */ - asm ("" : "+r" (address)); + __asm__ ("" : "+r" (address)); if ((Elf32_Addr)address & 7) /* It's not a function descriptor. */ diff --git a/ldso/ldso/bfin/dl-syscalls.h b/ldso/ldso/bfin/dl-syscalls.h index af0b425d3..f9ba79b7c 100644 --- a/ldso/ldso/bfin/dl-syscalls.h +++ b/ldso/ldso/bfin/dl-syscalls.h @@ -67,7 +67,7 @@ _dl_mmap(__ptr_t addr, size_t len, int prot, int flags, int fd, __off_t offset) if (! _dl_mmap_base) { void *stack; - asm ("mov sp, %0" : "=r" (stack)); + __asm__ ("mov sp, %0" : "=r" (stack)); _dl_mmap_base = (void *)(((long)stack + 2 * PAGE_SIZE) & -PAGE_SIZE); retry: if (((void **)_dl_mmap_base)[0] == _dl_mmap_base diff --git a/ldso/ldso/bfin/dl-sysdep.h b/ldso/ldso/bfin/dl-sysdep.h index 38ed51300..8c3a16663 100644 --- a/ldso/ldso/bfin/dl-sysdep.h +++ b/ldso/ldso/bfin/dl-sysdep.h @@ -80,7 +80,7 @@ struct funcdesc_ht; do { \ static const char __attribute__((section(".text"))) __s[] = (S); \ const char *__p, *__scratch; \ - asm ("call 1f;\n1:\n\t" \ + __asm__ ("call 1f;\n1:\n\t" \ "%1 = RETS;\n\t" \ "%0 = [%3 + 1b@GOT17M4];\n\t" \ "%1 = %1 - %0;\n\t" \ @@ -89,7 +89,7 @@ struct funcdesc_ht; : "d" (__s), "a" (dl_boot_got_pointer) : "RETS"); \ SEND_STDERR (__p); \ { int __t; \ - for (__t = 0; __t < 0x1000000; __t++) asm volatile (""); } \ + for (__t = 0; __t < 0x1000000; __t++) __asm__ __volatile__ (""); } \ } while (0) #define DL_LOADADDR_TYPE struct elf32_fdpic_loadaddr @@ -101,7 +101,7 @@ struct funcdesc_ht; ((void(*)(void)) _dl_funcdesc_for ((void*)(ADDR), (LOADADDR).got_value)) #define _dl_stabilize_funcdesc(val) \ - ({ asm ("" : "+m" (*(val))); (val); }) + ({ __asm__ ("" : "+m" (*(val))); (val); }) #define DL_CALL_FUNC_AT_ADDR(ADDR, LOADADDR, SIGNATURE, ...) \ ({ struct funcdesc_value fd = { (void*)(ADDR), (LOADADDR).got_value }; \ -- cgit v1.2.3