summaryrefslogtreecommitdiff
path: root/lang/ezm3/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ezm3/patches/patch-ac')
-rw-r--r--lang/ezm3/patches/patch-ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/ezm3/patches/patch-ac b/lang/ezm3/patches/patch-ac
new file mode 100644
index 00000000000..8be2d1c35ea
--- /dev/null
+++ b/lang/ezm3/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 2007/02/26 19:50:27 veego Exp $
+
+Patch from http://mail-index.netbsd.org/tech-toolchain/2005/09/22/0004.html
+
+--- language/modula3/m3compiler/m3cc/gcc/gcc/read-rtl.c.orig 2003-01-11 21:58:40.000000000 +0100
++++ language/modula3/m3compiler/m3cc/gcc/gcc/read-rtl.c 2007-01-06 17:08:03.000000000 +0100
+@@ -657,9 +657,13 @@
+ obstack_init (&vector_stack);
+ while ((c = read_skip_spaces (infile)) && c != ']')
+ {
++ rtx tmp;
+ ungetc (c, infile);
+ list_counter++;
+- obstack_ptr_grow (&vector_stack, (PTR) read_rtx (infile));
++
++ tmp = read_rtx (infile);
++ obstack_grow (&vector_stack, &tmp, sizeof(rtx));
++ /* obstack_ptr_grow (&vector_stack, (PTR) read_rtx (infile)); */
+ }
+ if (list_counter > 0)
+ {