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]>
---
 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

Reply via email to