From d88d35ffed6c1073a0695ba1e980cb8ea7f09c3a Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Mon, 2 Sep 2019 12:13:33 +0200 Subject: [PATCH] let emit_literal_string_func emit a dbg friendly friendly --- src/comp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/comp.c b/src/comp.c index a08077ee41d..3b2f8e4e74d 100644 --- a/src/comp.c +++ b/src/comp.c @@ -1567,6 +1567,9 @@ emit_literal_string_func (const char *str_name, const char *str) str_name, 0, NULL, 0); DECL_BLOCK (block, f); + gcc_jit_block_add_comment (block, + NULL, + str); gcc_jit_lvalue *arr = gcc_jit_context_new_global (comp.ctxt, NULL, -- 2.39.5