* [committed] Restore bootstrap by removing unused variable in tree-ssa-loop-ivcanon.cc
@ 2023-07-17 12:24 Martin Jambor
0 siblings, 0 replies; only message in thread
From: Martin Jambor @ 2023-07-17 12:24 UTC (permalink / raw)
To: GCC Patches; +Cc: Jan Hubicka
Hi,
This restores bootstrap by removing the variable causing:
/home/mjambor/gcc/trunk/src/gcc/tree-ssa-loop-ivcanon.cc: In function ‘bool try_peel_loop(loop*, edge, tree, bool, long int)’:
/home/mjambor/gcc/trunk/src/gcc/tree-ssa-loop-ivcanon.cc:1170:17: error: variable ‘entry_count’ set but not used [-Werror=unused-but-set-variable]
1170 | profile_count entry_count = profile_count::zero ();
| ^~~~~~~~~~~
cc1plus: all warnings being treated as errors
ACKed by Honza in a chat, passed a bootstrap on x86_64-linux, committed.
Thanks,
Martin
gcc/ChangeLog:
2023-07-17 Martin Jambor <mjambor@suse.cz>
* tree-ssa-loop-ivcanon.cc (try_peel_loop): Remove unused variable
entry_count.
---
gcc/tree-ssa-loop-ivcanon.cc | 1 -
1 file changed, 1 deletion(-)
diff --git a/gcc/tree-ssa-loop-ivcanon.cc b/gcc/tree-ssa-loop-ivcanon.cc
index bdb738af7a8..a895e8e65be 100644
--- a/gcc/tree-ssa-loop-ivcanon.cc
+++ b/gcc/tree-ssa-loop-ivcanon.cc
@@ -1167,7 +1167,6 @@ try_peel_loop (class loop *loop,
loop->num, (int) npeel);
}
adjust_loop_info_after_peeling (loop, npeel, true);
- profile_count entry_count = profile_count::zero ();
bitmap_set_bit (peeled_loops, loop->num);
return true;
--
2.41.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-17 12:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-17 12:24 [committed] Restore bootstrap by removing unused variable in tree-ssa-loop-ivcanon.cc Martin Jambor
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).