This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH ggc] fix ggc_alloc_rtvec_resized


Laurynas Biveinis <laurynas.biveinis@gmail.com> writes:

> The patch to adjust the definition is obvious/pre-approved if anyone's
> inclined, or I'll just note in my TODO to fix this the next time I
> commit something.

Since I had it already readily tested on x86_64-linux, I've checked this
in.

Andreas.

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.

diff --git a/gcc/ggc.h b/gcc/ggc.h
index 07f0dda..30eca66 100644
--- a/gcc/ggc.h
+++ b/gcc/ggc.h
@@ -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)
 
-- 
1.7.6


-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]