gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
[gcc.git] / gcc / gengenrtl.c
index 54dccf1d0dff2ba3560f44e46ed9294575fb9f6a..596c5e236861c6871d6dd75f585100544f60f776 100644 (file)
@@ -362,7 +362,7 @@ gencode ()
   puts ("#define obstack_alloc_rtx(n)                                  \\");
   puts ("    ((rtx) obstack_alloc (rtl_obstack,                                \\");
   puts ("                        sizeof (struct rtx_def)               \\");
-  puts ("                        + ((n) - 2) * sizeof (rtunion)))\n");
+  puts ("                        + ((n) - 1) * sizeof (rtunion)))\n");
 
   for (fmt = formats; *fmt != 0; fmt++)
     gendef (*fmt);