aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-10-03 19:42:10 +0200
committerAldy Hernandez <aldyh@redhat.com>2021-10-04 13:20:25 +0200
commitfa3ccf8bfe9940b439d6cc2c38ee8da134b0ff2d (patch)
tree64209be6dbd9c65047a4786e9a938558d30e3528 /gcc/expr.c
parentad4a3c047f67d628b607bb6cf4791005affd1d83 (diff)
downloadgcc-fa3ccf8bfe9940b439d6cc2c38ee8da134b0ff2d.zip
gcc-fa3ccf8bfe9940b439d6cc2c38ee8da134b0ff2d.tar.gz
gcc-fa3ccf8bfe9940b439d6cc2c38ee8da134b0ff2d.tar.bz2
Remove static marker for range in alloca pass.
The m_ranges[] field in int_range<N> are trees, so they live in GC space. Since invalid_range is static, it must be marked with GTY magic. However, calculating invalid_range is not particularly slow, or on a critical path, so we can just put it in local scope and recalculate every time. Tested on x86-64 Linux. gcc/ChangeLog: PR tree-optimization/102560 * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static marker for invalid_range. gcc/testsuite/ChangeLog: * g++.dg/Walloca2.C: New test.
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions