blob: 8be2d1c35ead8f780f86928d26cee6332f613c13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)
{
|