summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-21 20:32:08 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-21 20:32:08 +0000
commit921a78019b119781ec608e0bd06be3219a038aab (patch)
treeafebf736516b4598ceb466de20c583298d157962 /cross
parentbb8d095b7c2a6bcbfa8f321f287d942879ed4502 (diff)
downloadpkgsrc-921a78019b119781ec608e0bd06be3219a038aab.tar.gz
Fix build with GCC 4.
Diffstat (limited to 'cross')
-rw-r--r--cross/avr-gdb/distinfo3
-rw-r--r--cross/avr-gdb/patches/patch-ad34
2 files changed, 36 insertions, 1 deletions
diff --git a/cross/avr-gdb/distinfo b/cross/avr-gdb/distinfo
index 94be6acb672..93f85e7089e 100644
--- a/cross/avr-gdb/distinfo
+++ b/cross/avr-gdb/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2006/10/13 18:25:59 rillig Exp $
+$NetBSD: distinfo,v 1.9 2008/06/21 20:32:08 joerg Exp $
SHA1 (gdb-5.3.tar.gz) = 24a6c9da6e89b1b82b7508f27f94098d989ff662
RMD160 (gdb-5.3.tar.gz) = 3f88dc11115de08708c50c73b10acaf00ed25e96
@@ -6,3 +6,4 @@ Size (gdb-5.3.tar.gz) = 14707600 bytes
SHA1 (patch-aa) = 3b2c3c8bbacbf87d9756ef282e4a37c930fcb4af
SHA1 (patch-ab) = 005c0ca2aea16927504e102f85638a65fd610597
SHA1 (patch-ac) = 3ad9f172b6a860425b713401d8f2ca87c6b140fd
+SHA1 (patch-ad) = 63912ab42840a2c3e0402db97571d37b936ce0be
diff --git a/cross/avr-gdb/patches/patch-ad b/cross/avr-gdb/patches/patch-ad
new file mode 100644
index 00000000000..b98ea711515
--- /dev/null
+++ b/cross/avr-gdb/patches/patch-ad
@@ -0,0 +1,34 @@
+$NetBSD: patch-ad,v 1.1 2008/06/21 20:32:08 joerg Exp $
+
+--- include/obstack.h.orig 2001-03-14 02:27:43.000000000 +0000
++++ include/obstack.h
+@@ -417,14 +417,12 @@ __extension__ \
+ /* These assume that the obstack alignment is good enough for pointers or ints,
+ and that the data added so far to the current object
+ shares that much alignment. */
+-
+ # define obstack_ptr_grow(OBSTACK,datum) \
+ __extension__ \
+ ({ struct obstack *__o = (OBSTACK); \
+ if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
+ _obstack_newchunk (__o, sizeof (void *)); \
+- *((void **)__o->next_free)++ = ((void *)datum); \
+- (void) 0; })
++ obstack_ptr_grow_fast (__o, datum); })
+
+ # define obstack_int_grow(OBSTACK,datum) \
+ __extension__ \
+@@ -434,7 +432,12 @@ __extension__ \
+ *((int *)__o->next_free)++ = ((int)datum); \
+ (void) 0; })
+
+-# define obstack_ptr_grow_fast(h,aptr) (*((void **) (h)->next_free)++ = (void *)aptr)
++# define obstack_ptr_grow_fast(OBSTACK,aptr) \
++__extension__ \
++({ struct obstack *__o1 = (OBSTACK); \
++ *(const void **) __o1->next_free = (aptr); \
++ __o1->next_free += sizeof (const void *); \
++ (void) 0; })
+ # define obstack_int_grow_fast(h,aint) (*((int *) (h)->next_free)++ = (int) aint)
+
+ # define obstack_blank(OBSTACK,length) \