aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust
diff options
context:
space:
mode:
authorJørgen Kvalsvik <j@lambda.is>2024-04-08 09:28:27 +0200
committerJørgen Kvalsvik <j@lambda.is>2024-04-09 09:56:44 +0200
commit2daeb89d6f025d6daf7e560575863b3280120be8 (patch)
tree8e63589cab2e5ba583c8ce9b97da6165251885f9 /gcc/rust
parent21c9fd9688d9de9562b3cb491e4ab50ce09e663a (diff)
downloadgcc-2daeb89d6f025d6daf7e560575863b3280120be8.zip
gcc-2daeb89d6f025d6daf7e560575863b3280120be8.tar.gz
gcc-2daeb89d6f025d6daf7e560575863b3280120be8.tar.bz2
Add tree-inlined gconds to caller cond->expr map
Properly add the condition -> expression mapping of inlined gconds from the caller into the callee map. This is a fix for PR114599 that works beyond fixing the segfault, as the previous fixed copied references to the source gconds, not the deep copied ones that end up in the calle body. The new tests checks this, both in the case of a calle without conditions (which triggered the segfault), and a test that shows that conditions are properly mapped, and not mixed. PR middle-end/114599 gcc/ChangeLog: * tree-inline.cc (copy_bb): Copy cond_uids into callee. (prepend_lexical_block): Remove outdated comment. (add_local_variables): Remove bad cond_uids copy. gcc/testsuite/ChangeLog: * gcc.misc-tests/gcov-19.c: New test.
Diffstat (limited to 'gcc/rust')
0 files changed, 0 insertions, 0 deletions