diff options
author | Andreas Schwab <schwab@redhat.com> | 2011-08-16 14:14:26 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2011-08-16 14:14:26 +0000 |
commit | 870d0521923927bc95a32e3b92d1ba042686b407 (patch) | |
tree | 90f6c1d9cbdfb242ba7f8a9164b2594c007afe70 | |
parent | 370f4759839b573d45ed86050d51564dcac629b7 (diff) | |
download | gcc-870d0521923927bc95a32e3b92d1ba042686b407.zip gcc-870d0521923927bc95a32e3b92d1ba042686b407.tar.gz gcc-870d0521923927bc95a32e3b92d1ba042686b407.tar.bz2 |
ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def instead of ggc_alloc_zone_vec_rtvec_def.
* ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
instead of ggc_alloc_zone_vec_rtvec_def.
From-SVN: r177785
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ggc.h | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7b672d1..371a388 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-16 Andreas Schwab <schwab@redhat.com> + + * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def + instead of ggc_alloc_zone_vec_rtvec_def. + 2011-08-16 Richard Guenther <rguenther@suse.de> * tree.h (ptrofftype_p): New helper function. @@ -1,7 +1,7 @@ /* Garbage collection for the GNU compiler. Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, - 2008, 2009, 2010 Free Software Foundation, Inc. + 2008, 2009, 2010, 2011 Free Software Foundation, Inc. This file is part of GCC. @@ -266,10 +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 (1, \ - sizeof (struct rtvec_def) \ - + ((NELT) - 1) * sizeof (rtx), \ - &rtl_zone)) + ggc_alloc_zone_rtvec_def (sizeof (struct rtvec_def) \ + + ((NELT) - 1) * sizeof (rtx), \ + &rtl_zone) #if defined (GGC_ZONE) && !defined (GENERATOR_FILE) |