aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-12-04 14:50:59 +0100
committerRichard Biener <rguenther@suse.de>2023-12-04 15:33:58 +0100
commit0c2ea80a4ffbddc0bc29f5badaf2ae43e59483b2 (patch)
tree3eea2dce78a72ebb27d6791572b485a8f6db7b82 /gcc/cp/constexpr.cc
parent82576a6e77e0a284975dda87efe4b2d5bc5b9b1c (diff)
downloadgcc-0c2ea80a4ffbddc0bc29f5badaf2ae43e59483b2.zip
gcc-0c2ea80a4ffbddc0bc29f5badaf2ae43e59483b2.tar.gz
gcc-0c2ea80a4ffbddc0bc29f5badaf2ae43e59483b2.tar.bz2
middle-end/112785 - guard against last_clique overflow
The PR shows that we'll ICE eventually when last_clique wraps. The following avoids this by refusing to hand out new cliques after exhausting them. We then use zero (no clique) as conservative fallback. PR middle-end/112785 * function.h (get_new_clique): New inline function handling last_clique overflow. * cfgrtl.cc (duplicate_insn_chain): Use it. * tree-cfg.cc (gimple_duplicate_bb): Likewise. * tree-inline.cc (remap_dependence_clique): Likewise.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions