diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-07-17 20:45:42 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-07-17 20:45:42 +0100 |
commit | 9c7a580aa13707a18c53bc772c3d9301dd9bfb2c (patch) | |
tree | 0fb6789a85aa49e4044679b8a6b10d26e953dc25 /gcc/rust/resolve | |
parent | fd2bd659e44e5b7fea92bc34a4864f057f387490 (diff) | |
download | gcc-9c7a580aa13707a18c53bc772c3d9301dd9bfb2c.zip gcc-9c7a580aa13707a18c53bc772c3d9301dd9bfb2c.tar.gz gcc-9c7a580aa13707a18c53bc772c3d9301dd9bfb2c.tar.bz2 |
Fix ICE on duplicate compilation of ExternBlock items
When we declare an extern block after where it is used the query
compilation system in the backend code-gen pass will resolve this and
compile as required. But when the iteration of the crate as part of the
pipeline we end up compiling this function again. The check we used to stop
this was copy paste from the other function items but in this case the
check for function_completed is not valid as this is a prototype for an
extern item so we dont add this to the translation unit as an fndecl which
meant we hit the ICE where we compile and add it again.
Fixes #1323
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions