From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 F414038582AC for ; Wed, 24 Jan 2024 15:09:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F414038582AC 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 F414038582AC 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=1706109000; cv=none; b=LbmkzR2fB1oC09pwVPU2EZQhCUZPqOMYc6oLkI9g3etmJFWLRj0UnAKNGc5joTutzF3OvCsyHGVj/ySmgGM60LuTIicDCX1BW7eifZuEP3kgqB1YGCbP9mA7UDZYemmmIfIRyChQWb0IfmvSHPt5lkrPfJWaai1Dt5jAXPc9Mh8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706109000; c=relaxed/simple; bh=p2OgADsUFYf0M7REQDS9d1cbkrh+B28PoQTDqc2eadY=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=IQC5osytf/fudQT9/IGPErJVYFmVdMekp/ZR3hFXHWZWWGXihGql4MrzBSF9Ca2UY/o5MbEX+MKSRvSb+Mwg0iJ7zqQ8MNCi7vkcINK8bZCyA4owYETEsxthDbsDGHURCU5ub9boD4a6RE9WGk051+Qe9AjVyPHdEobWdKkHwd0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706108991; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p2OgADsUFYf0M7REQDS9d1cbkrh+B28PoQTDqc2eadY=; b=L61yitiRE0OlYFlHS8825ESM6jpOg1+PtoYLxgExy4XsEY5oKNzldgxFqx30QrVfo9LrRM zNeBHIBB1Wog03p4NvsmkjCxnMhONV4OZFDfGMlQZ3yYCH/K1VTgmAK5b4S20qJwkywJ+J XK3Da+45Wj3jJDGQr2j8TQs9jK27z7A= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-402-XqvjXjxrMFyyWNHksIFQVg-1; Wed, 24 Jan 2024 10:09:50 -0500 X-MC-Unique: XqvjXjxrMFyyWNHksIFQVg-1 Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-783163c7c38so678052985a.2 for ; Wed, 24 Jan 2024 07:09:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706108990; x=1706713790; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=p2OgADsUFYf0M7REQDS9d1cbkrh+B28PoQTDqc2eadY=; b=WqUUyPejsEtmq90utXk1N2m5QV7ril19rEJadhctA3QzadrPilpaEx3zMMLN1i3SaK ehZVZxlSwevrqhsValXzt9AZ2DuBYSbYtpNfUG9/CIryJxM5WNSEgbDqzvkqMXiNyCaC QPytlm7UOXi93L71Zo0lNUz6HQgPCk6h0JhedfPpTve2H9wVU+mry79RLQc/6ZPwu+BL tIHZ68A/JgwAPXJVoJ/nDOuV6kpgOdI6wkWKgXVXJlN2yMBFlYTBh5vY4dGZVhuZ9bCw KHtmD17pvNcXF8Lg3dyEFK7wNBcx2ZKwYEhRRtrydFuzO+Uk/oyfMHWtza2QpHeUbaNE mobg== X-Gm-Message-State: AOJu0YwbrQTv+I9gd0RB/Djzg0E6ErkelJlmLJDd+fFOUYbiUSUJPrF8 wVe8QogbkThODL9i5vz0VXxm1UBaMdZqN5reUvTzolHmqiWCH1Dtbk5cG7Qa/l2+Qq4tfxhZS+a //SeZ2hYR0RIny/is5ONLyuTIYGg2wdAGLILG1avT6KL+ X-Received: by 2002:a05:620a:240c:b0:781:eb20:d230 with SMTP id d12-20020a05620a240c00b00781eb20d230mr8231794qkn.45.1706108990055; Wed, 24 Jan 2024 07:09:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHh1imEIKRZGWAUhOLByzo1l5zMhbtxMjUyQcMDFl1fNBE7Uueb1yGdt7K7/D4I4kRmhOFJhQ== X-Received: by 2002:a05:620a:240c:b0:781:eb20:d230 with SMTP id d12-20020a05620a240c00b00781eb20d230mr8231782qkn.45.1706108989811; Wed, 24 Jan 2024 07:09:49 -0800 (PST) Received: from t14s.localdomain (c-76-28-97-5.hsd1.ma.comcast.net. [76.28.97.5]) by smtp.gmail.com with ESMTPSA id u6-20020a05620a022600b007831cca1e84sm4092217qkm.10.2024.01.24.07.09.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 07:09:49 -0800 (PST) Message-ID: <0f2e509a56e2d01adbe6dca3b3868f5e8d82fc9c.camel@redhat.com> Subject: Re: [PATCH] libgccjit: Add gcc_jit_global_set_readonly From: David Malcolm To: Antoni Boucher , "gcc-patches@gcc.gnu.org" , "jit@gcc.gnu.org" Date: Wed, 24 Jan 2024 10:09:44 -0500 In-Reply-To: <20a1db244d8234683b61c7d124999ba45462af90.camel@zoho.com> References: <20a1db244d8234683b61c7d124999ba45462af90.camel@zoho.com> User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 2024-01-19 at 16:57 -0500, Antoni Boucher wrote: > Hi. > This patch adds a new API gcc_jit_global_set_readonly: it's > equivalent > to having a const global variable, but it is useful in the case of > complex compilers where it is not convenient to use const. > Thanks for the review. Hi Antoni; thanks for the patch. Can you give an example of where/why this might be used? Presumably this is motivated by a use case you had inside the rustc backend? Thanks Dave