guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 01/02: Fix compilation with C23


From: Andy Wingo
Subject: [Guile-commits] 01/02: Fix compilation with C23
Date: Tue, 13 Aug 2024 07:44:34 -0400 (EDT)

wingo pushed a commit to branch main
in repository guile.

commit c2e7d834c26dca39e0a2dc6784fc47814969817a
Author: Andy Wingo <wingo@pobox.com>
AuthorDate: Tue Jun 25 09:30:21 2024 +0200

    Fix compilation with C23
    
    * libguile/jit.c (is_unreachable): Rename from "unreachable", which is
    apparently a new reserved word in C23.
---
 libguile/jit.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libguile/jit.c b/libguile/jit.c
index 6f3a650b8..a20a8e7f7 100644
--- a/libguile/jit.c
+++ b/libguile/jit.c
@@ -1,4 +1,4 @@
-/* Copyright 2018-2021, 2023
+/* Copyright 2018-2021, 2023-2024
      Free Software Foundation, Inc.
 
    This file is part of Guile.
@@ -370,7 +370,7 @@ set_register_state (scm_jit_state *j, uint32_t state)
 }
 
 static uint32_t
-unreachable (scm_jit_state *j)
+is_unreachable (scm_jit_state *j)
 {
   return j->register_state & UNREACHABLE;
 }
@@ -382,7 +382,7 @@ has_register_state (scm_jit_state *j, uint32_t state)
 }
 
 #define ASSERT_HAS_REGISTER_STATE(state) \
-  ASSERT (unreachable (j) || has_register_state (j, state));
+  ASSERT (is_unreachable (j) || has_register_state (j, state));
 
 static void
 record_gpr_clobber (scm_jit_state *j, jit_gpr_t r)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]