merge newlib patches into tree
authorKornilios Kourtis <kkourt@inf.ethz.ch>
Fri, 6 Jan 2012 11:55:35 +0000 (12:55 +0100)
committerKornilios Kourtis <kkourt@inf.ethz.ch>
Fri, 6 Jan 2012 11:55:35 +0000 (12:55 +0100)
commitbcb79579d14c2f52570a26a227913c66afd7caab
treea5a4eb95139795c9454da5231b58a6314fa7b855
parentaf9320770c130611d383f1c9249798b59dda837e
parent08d274aa0d42ea8df886bfbdcc360d010c0b7552
merge newlib patches into tree

Status:
 - freec (old libc) compiles and boots on qemu for x86_{32,64}
 - newlib compiles on x86_64, but does not boot on qemu
 - newlib does not compile on x86_32 due to integer type issues

Changes for the merge:
 - resolved conflicts
 - Patches set -std=gnu99. Changed that to -U__STRICT_ANSI__, which seems
   adequate to keep newlib happy. Keeping -std=c99 might make it easier
   to use other compilers
 - There were changes in the patches to printf format strings, changing
   things like "%zu" to "%lu". Since this does not work for 32-bit archs,
   I 've reverted these changes and defined _WANT_IO_C99_FORMATS for
   newlib, which fixes the original problem.

--HG--
rename : include/string.h => include/freec/string.h
rename : lib/c/src/malloc.c => lib/freec/src/malloc.c
rename : lib/c/src/memcpy.c => lib/freec/src/memcpy.c
rename : lib/c/src/vsnprintf.c => lib/freec/src/vsnprintf.c
rename : lib/c/src/xprintf.c => lib/freec/src/xprintf.c
53 files changed:
hake/ArchDefaults.hs
hake/Beehive.hs
hake/Config.hs.template
hake/RuleDefs.hs
if/bcache.if
if/ether.if
include/barrelfish/dispatch.h
include/barrelfish_kpi/types.h
include/freec/string.h
include/lwip/arch.h
include/vfs/vfs.h
kernel/arch/scc/rck.c
kernel/arch/x86/ipi_notify.c
kernel/arch/x86_64/irq.c
kernel/dispatch.c
kernel/syscall.c
lib/barrelfish/debug.c
lib/barrelfish/init.c
lib/contmng/contmng.c
lib/ethersrv/Hakefile
lib/freec/src/malloc.c
lib/freec/src/memcpy.c
lib/freec/src/vsnprintf.c
lib/freec/src/xprintf.c
lib/lwip/Hakefile
lib/posixcompat/inheritance.c
lib/posixcompat/sbrk.c
lib/posixcompat/select.c
lib/posixcompat/sockets.c
lib/procon/procon.c
lib/vfs/cache.c
lib/vfs/fopen.c
lib/vfs/vfs_nfs.c
usr/bcached/main.c
usr/bcached/service.c
usr/chips/filter.c
usr/drivers/e1000/e1000n.c
usr/drivers/eMAC/eMAC_hwinit.c
usr/drivers/rtl8029/rtl8029.c
usr/fish/Hakefile
usr/fish/fish.c
usr/mem_serv_dist/mem_serv.c
usr/monitor/monitor.h
usr/monitor/monitor_rpc_server.c
usr/monitor/resource_ctrl.c
usr/net-test/Hakefile
usr/net-test/net-test.c
usr/netd/idc_barrelfish.c
usr/rcce/bt/Hakefile
usr/rcce/lu/Hakefile
usr/skb/Hakefile
usr/testdesc/Hakefile
usr/webserver/http_cache.c