emacs-diffs
[Top][All Lists]
Advanced

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

scratch/comp-static-data c7d44a658c 1/3: comp.c: Don't emit float block


From: Vibhav Pant
Subject: scratch/comp-static-data c7d44a658c 1/3: comp.c: Don't emit float block variables as constants.
Date: Sun, 20 Nov 2022 09:24:43 -0500 (EST)

branch: scratch/comp-static-data
commit c7d44a658cbaaeb7a45b88d62e08fc35c354d368
Author: Vibhav Pant <vibhavp@gmail.com>
Commit: Vibhav Pant <vibhavp@gmail.com>

    comp.c: Don't emit float block variables as constants.
    
    This is currently required to work around a potential bug in libgccjit
    where the library will not recognize constant variables storing
    structs to have the same type as their initializer rvalue.
---
 src/comp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/comp.c b/src/comp.c
index b5668d1a4e..0a5b589fb9 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -2585,8 +2585,7 @@ push_float_block (void)
   gcc_jit_lvalue *var
     = gcc_jit_context_new_global (comp.ctxt, NULL,
                                  GCC_JIT_GLOBAL_INTERNAL,
-                                 gcc_jit_type_get_const (
-                                   comp.float_block_aligned_type),
+                                 comp.float_block_aligned_type,
                                  name);
   Lisp_Object entry
     = CALLN (Fvector, make_mint_ptr (var), make_fixnum (-1),



reply via email to

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