From patchwork Thu May 9 17:42:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1933547 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=feZuYm4s; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VZzvL353Jz20fZ for ; Fri, 10 May 2024 03:45:50 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9CD45386F421 for ; Thu, 9 May 2024 17:45:48 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 4BBFA384AB52 for ; Thu, 9 May 2024 17:42:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4BBFA384AB52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4BBFA384AB52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715276575; cv=none; b=iGlDj0TPwRamLOjnT7XwOdv1cigV40nEwxXiM72uBpMip44hJmEOpdNrHlkDPPJB/s52zgXTNi6iwEk55EVcz+r5SHM320KCLdmrZzszwRedeSpvMWg/NrvhCK/0Oi+JHVkY0k+PnJhEkheLghEqD/QIHfPIbUBcUDsaCnqMnz4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715276575; c=relaxed/simple; bh=/8xV8H7kPJ2b3arz8m1kh0mQ/355ot1/sbEYPVzjzVU=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=CEok6OMGAV1l6fpjezn+Zkkn+DbNbAZ2fuCfBwMHdC9pBm42HdBgZ5WzQ/b+WeqB531wlHX0GGERyIHlY1n2ZJZpUhC1qmL4u7OIN2gQT8kFpCtWH+zmEUrBA3f5ONdOo9A89psZ/rpihxA8Bvzsr5agoxF7I2OF1ERzEIbAg10= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715276571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GUz4NtUY3eXZ6rGBHVm/U4p4YoDOjNm0NXmyKvvS1Ww=; b=feZuYm4sTFq+n7EnTK6PHkf9VHTYbcUZs4+RRl9HzY1JIO1U4XFJIY2tYwsfmJqhre5p+8 z055mqsR8MkiybmLOJEJ62snpKJkXrECDB5qT0+tNvSXxJ8sxUzeltHjFBBRez/8sBrzbS U1tCDJ9xbWQd66cV8gIvWEU5AD0ClXo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-568-sn1j1VwzN1WVGRo_Xt_hFA-1; Thu, 09 May 2024 13:42:50 -0400 X-MC-Unique: sn1j1VwzN1WVGRo_Xt_hFA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F342A8030A6; Thu, 9 May 2024 17:42:49 +0000 (UTC) Received: from t14s.localdomain.com (unknown [10.22.18.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id C3165746820; Thu, 9 May 2024 17:42:49 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: Vibhav Pant , David Malcolm Subject: [PATCH 09/21] jit: dump string literal initializers correctly Date: Thu, 9 May 2024 13:42:24 -0400 Message-Id: <20240509174236.2278921-10-dmalcolm@redhat.com> In-Reply-To: <20240509174236.2278921-1-dmalcolm@redhat.com> References: <20240509174236.2278921-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org From: Vibhav Pant Signed-off-by: David Malcolm gcc/jit/ChangeLog: * jit-recording.cc (recording::global::write_to_dump): Fix dump of string literal initializers. (cherry picked from commit r14-4923-gac66744d94226a) Signed-off-by: David Malcolm --- gcc/jit/jit-recording.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/jit/jit-recording.cc b/gcc/jit/jit-recording.cc index df0368ff8f7..cf734cf7ef5 100644 --- a/gcc/jit/jit-recording.cc +++ b/gcc/jit/jit-recording.cc @@ -4919,7 +4919,7 @@ recording::global::write_to_dump (dump &d) else if (m_rvalue_init) { d.write (" = "); - d.write (m_rvalue_init->get_debug_string ()); + d.write ("%s", m_rvalue_init->get_debug_string ()); d.write (";\n"); }