gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
authorH.J. Lu <hjl@gnu.org>
Mon, 12 Jun 2000 22:45:46 +0000 (22:45 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 12 Jun 2000 22:45:46 +0000 (22:45 +0000)
2000-06-12  H.J. Lu  <hjl@gnu.org>

* gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.

From-SVN: r34504

gcc/ChangeLog
gcc/gengenrtl.c

index c83f2d861fef96bd1377a55f4e61f0bea9624923..08c7e4e9bc0a18950436cafe8ffbaeb096ad00bf 100644 (file)
@@ -1,3 +1,7 @@
+2000-06-12  H.J. Lu  <hjl@gnu.org>
+
+       * gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
+
 2000-06-12  David Edelsohn  <edelsohn@gnu.org>
 
        * aix41.h (SUBTARGET_SWITCHES): Delete threads.
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);