svn commit: trunk/uClibc: include ldso/ldso/i386 libc/stdlib libc/ etc...
psm at uclibc.org
psm at uclibc.org
Mon Jan 23 19:25:13 UTC 2006
Author: psm
Date: 2006-01-23 11:25:12 -0800 (Mon, 23 Jan 2006)
New Revision: 13520
Log:
Make i386 build w/ -std=c99 (almost)
Modified:
trunk/uClibc/include/libc-symbols.h
trunk/uClibc/ldso/ldso/i386/dl-startup.h
trunk/uClibc/ldso/ldso/i386/dl-sysdep.h
trunk/uClibc/libc/stdlib/abort.c
trunk/uClibc/libc/sysdeps/linux/i386/__syscall_error.c
trunk/uClibc/libc/sysdeps/linux/i386/bits/syscalls.h
trunk/uClibc/libc/sysdeps/linux/i386/brk.c
trunk/uClibc/libc/sysdeps/linux/i386/sigaction.c
trunk/uClibc/libpthread/linuxthreads.old/internals.h
Changeset:
Modified: trunk/uClibc/include/libc-symbols.h
===================================================================
--- trunk/uClibc/include/libc-symbols.h 2006-01-23 19:23:23 UTC (rev 13519)
+++ trunk/uClibc/include/libc-symbols.h 2006-01-23 19:25:12 UTC (rev 13520)
@@ -245,7 +245,7 @@
/* We want the .gnu.warning.SYMBOL section to be unallocated. */
#define __make_section_unallocated(section_string) \
- asm (".section " section_string "\n\t.previous");
+ __asm__ (".section " section_string "\n\t.previous");
/* Tacking on "\n\t#" to the section name makes gcc put it's bogus
section attributes on what looks like a comment to the assembler. */
Modified: trunk/uClibc/ldso/ldso/i386/dl-startup.h
===================================================================
--- trunk/uClibc/ldso/ldso/i386/dl-startup.h 2006-01-23 19:23:23 UTC (rev 13519)
+++ trunk/uClibc/ldso/ldso/i386/dl-startup.h 2006-01-23 19:25:12 UTC (rev 13520)
@@ -3,7 +3,7 @@
* Architecture specific code used by dl-startup.c
* Copyright (C) 2000-2004 by Erik Andersen <andersen at codepoet.org>
*/
-asm(
+__asm__(
" .text\n"
" .align 16\n"
" .globl _start\n"
Modified: trunk/uClibc/ldso/ldso/i386/dl-sysdep.h
===================================================================
--- trunk/uClibc/ldso/ldso/i386/dl-sysdep.h 2006-01-23 19:23:23 UTC (rev 13519)
+++ trunk/uClibc/ldso/ldso/i386/dl-sysdep.h 2006-01-23 19:25:12 UTC (rev 13520)
@@ -47,7 +47,7 @@
static inline Elf32_Addr __attribute__ ((unused))
elf_machine_dynamic (void)
{
- register Elf32_Addr *got asm ("%ebx");
+ register Elf32_Addr *got __asm__ ("%ebx");
return *got;
}
@@ -61,7 +61,7 @@
via the GOT to make sure the compiler initialized %ebx in time. */
extern int _dl_errno;
Elf32_Addr addr;
- asm ("leal _dl_start at GOTOFF(%%ebx), %0\n"
+ __asm__ ("leal _dl_start at GOTOFF(%%ebx), %0\n"
"subl _dl_start at GOT(%%ebx), %0"
: "=r" (addr) : "m" (_dl_errno) : "cc");
return addr;
Modified: trunk/uClibc/libc/stdlib/abort.c
===================================================================
--- trunk/uClibc/libc/stdlib/abort.c 2006-01-23 19:23:23 UTC (rev 13519)
+++ trunk/uClibc/libc/stdlib/abort.c 2006-01-23 19:25:12 UTC (rev 13520)
@@ -37,7 +37,7 @@
/* Our last ditch effort to commit suicide */
#ifdef __UCLIBC_ABORT_INSTRUCTION__
-# define ABORT_INSTRUCTION asm(__UCLIBC_ABORT_INSTRUCTION__)
+# define ABORT_INSTRUCTION __asm__(__UCLIBC_ABORT_INSTRUCTION__)
#else
# define ABORT_INSTRUCTION
# warning "no abort instruction defined for your arch"
Modified: trunk/uClibc/libc/sysdeps/linux/i386/__syscall_error.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/i386/__syscall_error.c 2006-01-23 19:23:23 UTC (rev 13519)
+++ trunk/uClibc/libc/sysdeps/linux/i386/__syscall_error.c 2006-01-23 19:25:12 UTC (rev 13520)
@@ -27,9 +27,9 @@
int attribute_hidden __syscall_error(void)
{
- register int edx asm("%edx");
- asm("mov %eax, %edx");
- asm("negl %edx");
+ register int edx __asm__("%edx");
+ __asm__("mov %eax, %edx");
+ __asm__("negl %edx");
__set_errno(edx);
return -1;
}
Modified: trunk/uClibc/libc/sysdeps/linux/i386/bits/syscalls.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/i386/bits/syscalls.h 2006-01-23 19:23:23 UTC (rev 13519)
+++ trunk/uClibc/libc/sysdeps/linux/i386/bits/syscalls.h 2006-01-23 19:25:12 UTC (rev 13520)
@@ -20,7 +20,7 @@
/* We need some help from the assembler to generate optimal code. We
define some macros here which later will be used. */
-asm (".L__X'%ebx = 1\n\t"
+__asm__ (".L__X'%ebx = 1\n\t"
".L__X'%ecx = 2\n\t"
".L__X'%edx = 2\n\t"
".L__X'%eax = 3\n\t"
@@ -112,7 +112,7 @@
#define INLINE_SYSCALL(name, nr, args...) \
({ \
unsigned int resultvar; \
- asm volatile ( \
+ __asm__ __volatile__ ( \
LOADARGS_##nr \
"movl %1, %%eax\n\t" \
"int $0x80\n\t" \
Modified: trunk/uClibc/libc/sysdeps/linux/i386/brk.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/i386/brk.c 2006-01-23 19:23:23 UTC (rev 13519)
+++ trunk/uClibc/libc/sysdeps/linux/i386/brk.c 2006-01-23 19:25:12 UTC (rev 13520)
@@ -30,7 +30,7 @@
{
void *__unbounded newbrk, *__unbounded scratch;
- asm ("movl %%ebx, %1\n" /* Save %ebx in scratch register. */
+ __asm__ ("movl %%ebx, %1\n" /* Save %ebx in scratch register. */
"movl %3, %%ebx\n" /* Put ADDR in %ebx to be syscall arg. */
"int $0x80 # %2\n" /* Perform the system call. */
"movl %1, %%ebx\n" /* Restore %ebx from scratch register. */
Modified: trunk/uClibc/libc/sysdeps/linux/i386/sigaction.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/i386/sigaction.c 2006-01-23 19:23:23 UTC (rev 13519)
+++ trunk/uClibc/libc/sysdeps/linux/i386/sigaction.c 2006-01-23 19:25:12 UTC (rev 13520)
@@ -31,8 +31,8 @@
#if defined __NR_rt_sigaction
libc_hidden_proto(memcpy)
-extern void restore_rt (void) asm ("__restore_rt") attribute_hidden;
-extern void restore (void) asm ("__restore") attribute_hidden;
+extern void restore_rt (void) __asm__ ("__restore_rt") attribute_hidden;
+extern void restore (void) __asm__ ("__restore") attribute_hidden;
/* If ACT is not NULL, change the action for SIG to *ACT.
If OACT is not NULL, put the old action for SIG in *OACT. */
@@ -74,7 +74,7 @@
#else
-extern void restore (void) asm ("__restore") attribute_hidden;
+extern void restore (void) __asm__ ("__restore") attribute_hidden;
/* If ACT is not NULL, change the action for SIG to *ACT.
If OACT is not NULL, put the old action for SIG in *OACT. */
@@ -97,7 +97,7 @@
kact.sa_restorer = &restore;
}
- asm volatile ("pushl %%ebx\n"
+ __asm__ __volatile__ ("pushl %%ebx\n"
"movl %2, %%ebx\n"
"int $0x80\n"
"popl %%ebx"
@@ -141,7 +141,7 @@
#define RESTORE(name, syscall) RESTORE2 (name, syscall)
#define RESTORE2(name, syscall) \
-asm \
+__asm__ \
( \
".text\n" \
" .align 16\n" \
@@ -158,7 +158,7 @@
/* For the boring old signals. */
# undef RESTORE2
# define RESTORE2(name, syscall) \
-asm \
+__asm__ \
( \
".text\n" \
" .align 8\n" \
Modified: trunk/uClibc/libpthread/linuxthreads.old/internals.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/internals.h 2006-01-23 19:23:23 UTC (rev 13519)
+++ trunk/uClibc/libpthread/linuxthreads.old/internals.h 2006-01-23 19:25:12 UTC (rev 13520)
@@ -366,7 +366,7 @@
all outstanding operations which modify memory. Some architectures
distinguish between full, read and write barriers. */
#ifndef MEMORY_BARRIER
-#define MEMORY_BARRIER() asm ("" : : : "memory")
+#define MEMORY_BARRIER() __asm__ ("" : : : "memory")
#endif
#ifndef READ_MEMORY_BARRIER
#define READ_MEMORY_BARRIER() MEMORY_BARRIER()
More information about the uClibc-cvs
mailing list