aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2023-04-17 17:05:38 +0200
committerAldy Hernandez <aldyh@redhat.com>2023-04-17 20:47:20 +0200
commite11533e2f3dd91eef663f08f8326eefb72680cdf (patch)
tree5bd1a2db87cb2f6123924f8eacf8f0084f59b21c /gcc
parentc16848ed8f30be952ac0167fd464ae794fa5ac67 (diff)
downloadgcc-e11533e2f3dd91eef663f08f8326eefb72680cdf.zip
gcc-e11533e2f3dd91eef663f08f8326eefb72680cdf.tar.gz
gcc-e11533e2f3dd91eef663f08f8326eefb72680cdf.tar.bz2
Do not export global ranges from -Walloca pass.
A warning pass should not be exporting global ranges it finds along the way, because that will alter the behavior of future passes. The reason the present behavior was there was because of some long ago forgotten regression in another pass. This regression is no longer there, and if there's ever any fallout from cleaning this up, we can address it in the pass that is missing some information. gcc/ChangeLog: * gimple-ssa-warn-alloca.cc (pass_walloca::execute): Do not export global ranges.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gimple-ssa-warn-alloca.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/gimple-ssa-warn-alloca.cc b/gcc/gimple-ssa-warn-alloca.cc
index 5b220a5..4374f57 100644
--- a/gcc/gimple-ssa-warn-alloca.cc
+++ b/gcc/gimple-ssa-warn-alloca.cc
@@ -256,7 +256,7 @@ in_loop_p (gimple *stmt)
unsigned int
pass_walloca::execute (function *fun)
{
- gimple_ranger *ranger = enable_ranger (fun);
+ enable_ranger (fun);
basic_block bb;
FOR_EACH_BB_FN (bb, fun)
{
@@ -379,7 +379,6 @@ pass_walloca::execute (function *fun)
}
}
}
- ranger->export_global_ranges ();
disable_ranger (fun);
return 0;
}