]> git.ipfire.org Git - thirdparty/gcc.git/commit
nr2.0: Do not resolve modules this run if they are unloaded
authorArthur Cohen <arthur.cohen@embecosm.com>
Fri, 4 Apr 2025 12:18:33 +0000 (14:18 +0200)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 14 Apr 2025 07:40:11 +0000 (07:40 +0000)
commitfd6257bc2894124c328757ff08221580f6ea105b
tree80084f123c60d7af1ff8c7b3c7f17dcb62579cf0
parentb9fdd60c28472f8163f7952bee2473e1d8e6981e
nr2.0: Do not resolve modules this run if they are unloaded

Instead, mark the visitor as dirty and wait for the next round of the fixed point to take care of
them. This avoids issues with module items being loaded while not being stripped yet.

gcc/rust/ChangeLog:

* resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::visit): Return if module
is unloaded.
gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc