GCC 4.x fixes for Hurd #1
Alfred M. Szmidt
ams@gnu.org
Fri Aug 5 21:14:00 GMT 2005
We need to strip out the weak_alias definitions from the generated MiG
code since gcc 4.x doesn't like that.
i686-pc-gnu0.3-gcc /home/update/ams/slask/libc/obj/mach/vm_map.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -Wno-parentheses -mpreferred-stack-boundary=2 -I../include -I. -I/home/update/ams/slask/libc/obj/mach -I.. -I../libio -I../hurd -I/home/update/ams/slask/libc/obj/hurd/ -I../mach -I/home/update/ams/slask/libc/obj/mach/ -I/home/update/ams/slask/libc/obj -I../sysdeps/i386/elf -I../sysdeps/mach/hurd/i386 -I../sysdeps/mach/hurd -I../sysdeps/gnu -I../sysdeps/unix/bsd/bsd4.4 -I../sysdeps/unix/mman -I../sysdeps/mach/i386 -I../sysdeps/mach -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/unix/bsd -I../sysdeps/unix/common -I../sysdeps/unix/inet -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -D_LIBC_REENTRAN
T -include ../include/libc-symbols.h -o /home/update/ams/slask/libc/obj/mach/vm_map.o -MD -MP -MF /home/update/ams/slask/libc/obj/mach/vm_map.o.dt -MT /home/update/ams/slask/libc/obj/mach/vm_map.o
/home/update/ams/slask/libc/obj/mach/vm_map.c:68: error: 'vm_map_rpc' aliased to external symbol '__vm_map_rpc'
2005-08-05 Alfred M. Szmidt <ams@gnu.org>
* mach/shortcut.awk: Skip `weak_alias' definitions in input
file when producing output.
--- mach/shortcut.awk
+++ mach/shortcut.awk
@@ -5,6 +5,10 @@
inproto=0; proto=""; arglist="";
}
+/^weak_alias \(/ {
+ next;
+}
+
$1 == "LINTLIBRARY" { print "#include <mach.h>"; next }
# Copy the first line of the definition, but
More information about the Libc-alpha
mailing list