summaryrefslogtreecommitdiff
path: root/pkgs/simple-scalar/0003-fix-obstack.h-post-increment.patch
blob: 8e38a808fd19a5c6d43eaeef5be9505d479500b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From b074acb822459a42d2507ad5729e9e60bb1de572 Mon Sep 17 00:00:00 2001
From: Alejandro Soto <alejandro@34project.org>
Date: Wed, 26 Apr 2023 13:35:42 -0600
Subject: [PATCH 2/3] fix obstack.h post-increment

---
 obstack.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc-2.7.2.3/obstack.h b/gcc-2.7.2.3/obstack.h
index 28bcd44..3a517b5 100644
--- a/gcc-2.7.2.3/obstack.h
+++ b/gcc-2.7.2.3/obstack.h
@@ -338,7 +338,7 @@ __extension__								\
    if (__o->next_free + sizeof (void *) > __o->chunk_limit)		\
      _obstack_newchunk (__o, sizeof (void *));				\
    if (!__o->alloc_failed)						\
-     *((void **)__o->next_free)++ = ((void *)datum);			\
+     *((void **)__o->next_free++) = ((void *)datum);			\
    (void) 0; })
 
 #define obstack_int_grow(OBSTACK,datum)					\
-- 
2.38.4