From: Yap Zhi Heng <[email protected]>

grs_langhook_pushdecl was being called after adding targetm.init_builtins() 
call to
gccrs's setup, which caused ICE on aarch64 build targets.

gcc/rust/ChangeLog:

        * rust-lang.cc (grs_langhook_pushdecl): Remove rust_unreachable().

Signed-off-by: Yap Zhi Heng <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/8c50dd1b28bc7856b83a51d9d1a985aa76ec184e

The commit has NOT been mentioned in any issue.

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4848

 gcc/rust/rust-lang.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc
index 52f6e5a5b..44b8daa11 100644
--- a/gcc/rust/rust-lang.cc
+++ b/gcc/rust/rust-lang.cc
@@ -255,7 +255,7 @@ grs_langhook_global_bindings_p (void)
 static tree
 grs_langhook_pushdecl (tree decl ATTRIBUTE_UNUSED)
 {
-  rust_unreachable ();
+  // rust_unreachable ();
   return NULL;
 }
 

base-commit: 19935a2586b3d7e00020c0a6567c3261a33f8f28
-- 
2.55.0

Reply via email to