public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1599] fix get-loop_hot_path with gcc 4.8.5
@ 2021-06-17 15:12 Trevor Saunders
  0 siblings, 0 replies; only message in thread
From: Trevor Saunders @ 2021-06-17 15:12 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:caeb8892a556a4a634641c7613fec957359dbd49

commit r12-1599-gcaeb8892a556a4a634641c7613fec957359dbd49
Author: Trevor Saunders <tbsaunde@tbsaunde.org>
Date:   Thu Jun 17 11:10:15 2021 -0400

    fix get-loop_hot_path with gcc 4.8.5
    
    gcc/ChangeLog:
    
            * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.

Diff:
---
 gcc/cfgloopanal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cfgloopanal.c b/gcc/cfgloopanal.c
index fdd8d3f43fe..2db46c81036 100644
--- a/gcc/cfgloopanal.c
+++ b/gcc/cfgloopanal.c
@@ -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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-17 15:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17 15:12 [gcc r12-1599] fix get-loop_hot_path with gcc 4.8.5 Trevor Saunders

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).