[PATCH] Fix comment documenting make_vector_stat

Patrick Palka patrick@parcs.ath.cx
Sat Jun 13 18:05:00 GMT 2015


It actually returns a VECTOR_CST not a TREE_VEC.

Committed as obvious.

gcc/ChangeLog:

	* tree.c (make_vector_stat): Fix comment to state that the
	function returns a VECTOR_CST.
---
 gcc/tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/tree.c b/gcc/tree.c
index be01d0e..6c194a6 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -1652,7 +1652,7 @@ cst_and_fits_in_hwi (const_tree x)
   return TREE_INT_CST_NUNITS (x) == 1;
 }
 
-/* Build a newly constructed TREE_VEC node of length LEN.  */
+/* Build a newly constructed VECTOR_CST node of length LEN.  */
 
 tree
 make_vector_stat (unsigned len MEM_STAT_DECL)
-- 
2.4.3.413.ga5fe668



More information about the Gcc-patches mailing list