WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] stubdom: Backport fix for SIZE_MAX from n

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] stubdom: Backport fix for SIZE_MAX from newlib 1.17.0
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Aug 2009 07:50:25 -0700
Delivery-date: Wed, 26 Aug 2009 07:50:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1251213962 -3600
# Node ID 49bfec374bafbbb09c8e7dad6d96474eb6f6c6a4
# Parent  8faef78ea759d9bea56bea4da9c2ec8d40869bb3
stubdom: Backport fix for SIZE_MAX from newlib 1.17.0

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 stubdom/Makefile                                     |    1 +
 stubdom/newlib-stdint-size_max-fix-from-1.17.0.patch |   10 ++++++++++
 2 files changed, 11 insertions(+)

diff -r 8faef78ea759 -r 49bfec374baf stubdom/Makefile
--- a/stubdom/Makefile  Tue Aug 25 15:36:37 2009 +0100
+++ b/stubdom/Makefile  Tue Aug 25 16:26:02 2009 +0100
@@ -101,6 +101,7 @@ newlib-$(NEWLIB_VERSION): newlib-$(NEWLI
        tar xzf $<
        patch -d $@ -p0 < newlib.patch
        patch -d $@ -p0 < newlib-chk.patch
+       patch -d $@ -p1 < newlib-stdint-size_max-fix-from-1.17.0.patch
        touch $@
 
 NEWLIB_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libc.a
diff -r 8faef78ea759 -r 49bfec374baf 
stubdom/newlib-stdint-size_max-fix-from-1.17.0.patch
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/stubdom/newlib-stdint-size_max-fix-from-1.17.0.patch      Tue Aug 25 
16:26:02 2009 +0100
@@ -0,0 +1,16 @@
+--- newlib-1.16.0/newlib/libc/include/stdint.h.orig    2006-08-17 
00:39:43.000000000 +0300
++++ newlib-1.16.0/newlib/libc/include/stdint.h 2009-08-25 17:33:23.000000000 
+0300
+@@ -348,8 +348,11 @@
+ #endif
+ 
+ /* This must match size_t in stddef.h, currently long unsigned int */
+-#define SIZE_MIN (-__STDINT_EXP(LONG_MAX) - 1L)
+-#define SIZE_MAX __STDINT_EXP(LONG_MAX)
++#ifdef __SIZE_MAX__
++#define SIZE_MAX __SIZE_MAX__
++#else
++#define SIZE_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1)
++#endif
+ 
+ /* This must match sig_atomic_t in <signal.h> (currently int) */
+ #define SIG_ATOMIC_MIN (-__STDINT_EXP(INT_MAX) - 1)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] stubdom: Backport fix for SIZE_MAX from newlib 1.17.0, Xen patchbot-unstable <=