OSDN Git Service

2011-08-16 Liang Wang <lwang1@marvell.com>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Aug 2011 09:49:28 +0000 (09:49 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Aug 2011 09:49:28 +0000 (09:49 +0000)
* ggc.h (ggc_alloc_rtvec_sized): Change arguments of
ggc_alloc_zone_vec_rtvec_def.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177782 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ggc.h

index 825c75f..a2f8a23 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-16  Liang Wang  <lwang1@marvell.com>
+
+       * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
+       ggc_alloc_zone_vec_rtvec_def.
+
 2011-08-16  Richard Guenther  <rguenther@suse.de>
 
        * tree-vrp.c (extract_range_from_multiplicative_op_1): New
index 7f2144c..07f0dda 100644 (file)
--- a/gcc/ggc.h
+++ b/gcc/ggc.h
@@ -266,8 +266,9 @@ extern struct alloc_zone tree_zone;
 extern struct alloc_zone tree_id_zone;
 
 #define ggc_alloc_rtvec_sized(NELT)                                     \
-    (ggc_alloc_zone_vec_rtvec_def (sizeof (rtx),                        \
-                                   sizeof (struct rtvec_def) + ((NELT) - 1), \
+    (ggc_alloc_zone_vec_rtvec_def (1,                                   \
+                                   sizeof (struct rtvec_def)            \
+                                  + ((NELT) - 1) * sizeof (rtx),       \
                                    &rtl_zone))
 
 #if defined (GGC_ZONE) && !defined (GENERATOR_FILE)