diff mbox

[gccgo] Use a more consistent prefix for the syscalls package

Message ID mcrpqw8iaz5.fsf@google.com
State New
Headers show

Commit Message

Ian Lance Taylor Sept. 20, 2010, 5:25 p.m. UTC
This patch makes the gccgo library use a more consistent prefix for the
syscalls package, one that looks like the other prefixes.  Committed to
gccgo branch.

Ian
diff mbox

Patch

diff -r b54430812cf3 libgo/Makefile.am
--- a/libgo/Makefile.am	Sat Sep 11 23:30:03 2010 -0700
+++ b/libgo/Makefile.am	Mon Sep 20 10:23:17 2010 -0700
@@ -2180,7 +2180,7 @@ 
 	rm -f syscall.gox syscalls/libsyscall.a
 	test -d syscalls || mkdir -p syscalls
 	files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e's/[^ ]*\.c//g'`; \
-	$(LTGOCOMPILE) -c -fgo-prefix="libgo__" -o syscalls/syscall.o $$files
+	$(LTGOCOMPILE) -c -fgo-prefix="libgo_syscalls" -o syscalls/syscall.o $$files
 	$(LTCOMPILE) -c -o syscalls/errno.o $(srcdir)/syscalls/errno.c
 	$(AR) rc syscalls/libsyscall.a syscalls/syscall.o syscalls/errno.o
 syscalls/libsyscall.la: syscalls/libsyscall.a
diff -r b54430812cf3 libgo/Makefile.in
diff -r b54430812cf3 libgo/syscalls/errno.c
--- a/libgo/syscalls/errno.c	Sat Sep 11 23:30:03 2010 -0700
+++ b/libgo/syscalls/errno.c	Mon Sep 20 10:23:17 2010 -0700
@@ -9,8 +9,8 @@ 
 /* errno is typically a macro. These functions set 
    and get errno specific to the libc being used.  */
 
-int GetErrno() asm ("libgo__.syscall.GetErrno");
-void SetErrno(int) asm ("libgo__.syscall.SetErrno");
+int GetErrno() asm ("libgo_syscalls.syscall.GetErrno");
+void SetErrno(int) asm ("libgo_syscalls.syscall.SetErrno");
 
 int 
 GetErrno()