https://gcc.gnu.org/g:171c78338e14be092263edd243bb78b77a01ab76

commit r17-4329-g171c78338e14be092263edd243bb78b77a01ab76
Author: Yap Zhi Heng <[email protected]>
Date:   Sat Sep 5 13:31:13 2026 +0800

    gccrs: Remove rust_unreachable from grs_langhook_pushdecl
    
    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]>

Diff:
---
 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 52f6e5a5b12a..44b8daa110d6 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;
 }

Reply via email to