summaryrefslogtreecommitdiff
path: root/pkgs/simple-scalar/0003-fix-obstack.h-post-increment.patch
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-04-26 15:14:46 -0600
committerAlejandro Soto <alejandro@34project.org>2023-04-26 15:14:46 -0600
commit1441dd2bb718dde6e89de87a41aed390785a7d56 (patch)
tree3020d1bb6a9460969003f9a65b78cb9745a84473 /pkgs/simple-scalar/0003-fix-obstack.h-post-increment.patch
parente99f4ecb659d5a00c43965e506f50ec5d71b0c02 (diff)
pkgs: add simple-scalar
Diffstat (limited to 'pkgs/simple-scalar/0003-fix-obstack.h-post-increment.patch')
-rw-r--r--pkgs/simple-scalar/0003-fix-obstack.h-post-increment.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/simple-scalar/0003-fix-obstack.h-post-increment.patch b/pkgs/simple-scalar/0003-fix-obstack.h-post-increment.patch
new file mode 100644
index 0000000..8e38a80
--- /dev/null
+++ b/pkgs/simple-scalar/0003-fix-obstack.h-post-increment.patch
@@ -0,0 +1,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
+