[COMMITTED 52/83] gccrs: Remove rust_unreachable from grs_langhook_pushdecl

arthur.cohen@opensrcsec.com arthur.cohen@opensrcsec.com
Wed Sep 16 12:30:11 GMT 2026


From: Yap Zhi Heng <yapzhhg@gmail.com>

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 <yapzhhg@gmail.com>
---
 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 52f6e5a5b12..44b8daa110d 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;
 }
 
-- 
2.50.1



More information about the Gcc-rust mailing list