]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fix get-loop_hot_path with gcc 4.8.5
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Thu, 17 Jun 2021 15:10:15 +0000 (11:10 -0400)
committerTrevor Saunders <tbsaunde@tbsaunde.org>
Thu, 17 Jun 2021 15:12:30 +0000 (11:12 -0400)
gcc/ChangeLog:

* cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.

gcc/cfgloopanal.c

index fdd8d3f43feb5f1f695a1b96c01571f87dd5a5fe..2db46c810360bc865033c541b025b9a982b34b71 100644 (file)
@@ -504,7 +504,7 @@ auto_vec<basic_block>
 get_loop_hot_path (const class loop *loop)
 {
   basic_block bb = loop->header;
-  vec<basic_block> path = vNULL;
+  auto_vec<basic_block> path;
   bitmap visited = BITMAP_ALLOC (NULL);
 
   while (true)