pkgsrc/lang/ezm3/patches/patch-ac
veego f34bbbbc3f Add a patch to build it with gcc4 and reset the 'external' maintainer after
no reaction from him (this time I waited 11 days, where I still have no
reply from my last change which was over an 1 year ago).
2007-02-26 19:50:26 +00:00

21 lines
779 B
Text

$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)
{