Message ID | 20230616160002.1854983-2-murphyp@linux.ibm.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1445464vqr; Fri, 16 Jun 2023 09:01:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6CV6/gKFG3ZZ0+oxb6rh6bWOy2xZ+E/0IPkEbK6vpoEGtVy8N+WZ4Twqx2hIpcAUxv4Pa0 X-Received: by 2002:a17:907:2cc4:b0:978:70e1:f02e with SMTP id hg4-20020a1709072cc400b0097870e1f02emr2181453ejc.22.1686931262241; Fri, 16 Jun 2023 09:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686931262; cv=none; d=google.com; s=arc-20160816; b=jBgqJqVfEhEgdYRZ3QI5mAtOx88aG6zKkd5TY9Slh8qWf5p7NZnOe+D3mYQNGtjqhi BPij499XBxpuh3Ml0xpTH0u+5jjlLne1Iib9h2JjBocx7XYCQMIrMdt8gnNvoBiaY0wO gSbc0kpij/wjecDraGsqagF+jZCfPerbHfNX9iV8HT8zEVE3XB4QUVKgrtYiw3NzZB9C xiVzjHJbrbrZh7ugJ/VfNRWFrUQni/IaobSrtPlFUdVmQ99phKBourPGkVUkwTFmkKv1 j7d3ulp9RBFxplowZAIvJxGCYw+07lxStbg+eWLClpeMC4Bp+Y1DnrPaX8VVLGIOPA/8 /uPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=BH/ARQtXhgqGq2DLpTToYPXta/Ku6a++uVIng6kbkxU=; b=G9g8mFG83VN/j9OgeTUxE6q4b52ZFjYnMc/IxB6HRMYHyDlqQGWrY+YKFLjJfWZYcM b9ILb5OPg1NcdZtQUYki1GOk8pgln3nFAk2jZirzrBeB4E3dzTHQDzn+M2YoCRvho7SR fROjurFE4HxavECxnBFIMrdhKUPD926jGcUZ24pEMtx5hqg3vasX2+GlRBdTl54na0+x BoWzPJoyP1bpmm6Re/HyPXLX/vSQ5s/ouoF++b7WE/9Yc/YqYBQok33gyM0frdZwMSXG dMSToXG2w1NW3977nI1a+LaBsQCfVuKjPPz+JCXAP9pBWql/1neWJ2GUkJaFmc+I3+UR b7OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="Zey/vWJD"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id kg22-20020a17090776f600b00977d781cacdsi11970139ejc.82.2023.06.16.09.01.01 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 09:01:02 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="Zey/vWJD"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2E5AF3857345 for <ouuuleilei@gmail.com>; Fri, 16 Jun 2023 16:00:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E5AF3857345 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686931249; bh=BH/ARQtXhgqGq2DLpTToYPXta/Ku6a++uVIng6kbkxU=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Zey/vWJDQEhtTl3DzoB52nfRxWND2z9DdawX3ObXq+FsjQBanb9qMntut/us2mEex YSmYLZns+IHoG4gG3ogdDpafyvTRFOuy6b1X/8NP3+2hv+BpTY/KxPWqHrRr9lZ+N8 9teRahM0ION3uCTi+0DFRZPkSQnzzqgzr1w40bIw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 991D33858C1F for <gcc-patches@gcc.gnu.org>; Fri, 16 Jun 2023 16:00:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 991D33858C1F Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35GFw37e008935 for <gcc-patches@gcc.gnu.org>; Fri, 16 Jun 2023 16:00:06 GMT Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3r8tudr0us-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Fri, 16 Jun 2023 16:00:05 +0000 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 35GF6gSS027186 for <gcc-patches@gcc.gnu.org>; Fri, 16 Jun 2023 16:00:05 GMT Received: from smtprelay04.wdc07v.mail.ibm.com ([9.208.129.114]) by ppma02dal.us.ibm.com (PPS) with ESMTPS id 3r4gt6jgy7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Fri, 16 Jun 2023 16:00:05 +0000 Received: from smtpav03.dal12v.mail.ibm.com (smtpav03.dal12v.mail.ibm.com [10.241.53.102]) by smtprelay04.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 35GG02AW44106096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <gcc-patches@gcc.gnu.org>; Fri, 16 Jun 2023 16:00:02 GMT Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 78E1158063 for <gcc-patches@gcc.gnu.org>; Fri, 16 Jun 2023 16:00:02 +0000 (GMT) Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 663B858070 for <gcc-patches@gcc.gnu.org>; Fri, 16 Jun 2023 16:00:02 +0000 (GMT) Received: from trout.aus.stglabs.ibm.com (unknown [9.40.194.100]) by smtpav03.dal12v.mail.ibm.com (Postfix) with ESMTP for <gcc-patches@gcc.gnu.org>; Fri, 16 Jun 2023 16:00:02 +0000 (GMT) To: gcc-patches@gcc.gnu.org Subject: [PATCH 2/2] rust: update usage of TARGET_AIX to TARGET_AIX_OS Date: Fri, 16 Jun 2023 11:00:02 -0500 Message-Id: <20230616160002.1854983-2-murphyp@linux.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230616160002.1854983-1-murphyp@linux.ibm.com> References: <20230616160002.1854983-1-murphyp@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: LoEB5vbBxT21GSn3WvWTiNMvSVpTZ62r X-Proofpoint-GUID: LoEB5vbBxT21GSn3WvWTiNMvSVpTZ62r X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-16_10,2023-06-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 malwarescore=0 clxscore=1015 adultscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 mlxlogscore=914 bulkscore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306160139 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: "Paul E. Murphy via Gcc-patches" <gcc-patches@gcc.gnu.org> Reply-To: "Paul E. Murphy" <murphyp@linux.ibm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768875635099261285?= X-GMAIL-MSGID: =?utf-8?q?1768875635099261285?= |
Series |
[1/2] go: update usage of TARGET_AIX to TARGET_AIX_OS
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Paul E Murphy
June 16, 2023, 4 p.m. UTC
This was noticed when fixing the gccgo usage of the macro, the rust usage is very similar. TARGET_AIX is defined as a non-zero value on linux/powerpc64le which may cause unexpected behavior. TARGET_AIX_OS should be used to toggle AIX specific behavior. gcc/rust/ChangeLog: * rust-object-export.cc [TARGET_AIX]: Rename and update usage to TARGET_AIX_OS. --- gcc/rust/rust-object-export.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Comments
Hi Paul! On 2023-06-16T11:00:02-0500, "Paul E. Murphy via Gcc-patches" <gcc-patches@gcc.gnu.org> wrote: > This was noticed when fixing the gccgo usage of the macro, the > rust usage is very similar. > > TARGET_AIX is defined as a non-zero value on linux/powerpc64le > which may cause unexpected behavior. TARGET_AIX_OS should be > used to toggle AIX specific behavior. > > gcc/rust/ChangeLog: > > * rust-object-export.cc [TARGET_AIX]: Rename and update > usage to TARGET_AIX_OS. I don't have rights to formally approve this GCC/Rust change, but I'll note that it follows "as obvious" (see <https://gcc.gnu.org/gitwrite.html#policies>, "Obvious fixes") to the corresponding GCC/Go change, which has been approved: <https://inbox.sourceware.org/CAKOQZ8wDWc7G5_jBNK1jvgChhiURceeAmZb5Bqrx_VZjeJP2Vw@mail.gmail.com>, and which is where this GCC/Rust code has been copied from, so I suggest you push both patches at once. Grüße Thomas > --- > gcc/rust/rust-object-export.cc | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/gcc/rust/rust-object-export.cc b/gcc/rust/rust-object-export.cc > index 1143c767784..f9a395f6964 100644 > --- a/gcc/rust/rust-object-export.cc > +++ b/gcc/rust/rust-object-export.cc > @@ -46,8 +46,8 @@ > #define RUST_EXPORT_SECTION_NAME ".rust_export" > #endif > > -#ifndef TARGET_AIX > -#define TARGET_AIX 0 > +#ifndef TARGET_AIX_OS > +#define TARGET_AIX_OS 0 > #endif > > /* Return whether or not GCC has reported any errors. */ > @@ -91,7 +91,7 @@ rust_write_export_data (const char *bytes, unsigned int size) > { > gcc_assert (targetm_common.have_named_sections); > sec = get_section (RUST_EXPORT_SECTION_NAME, > - TARGET_AIX ? SECTION_EXCLUDE : SECTION_DEBUG, NULL); > + TARGET_AIX_OS ? SECTION_EXCLUDE : SECTION_DEBUG, NULL); > } > > switch_to_section (sec); > -- > 2.31.1 ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
On 6/19/23 3:39 AM, Thomas Schwinge wrote: > Hi Paul! > > On 2023-06-16T11:00:02-0500, "Paul E. Murphy via Gcc-patches" <gcc-patches@gcc.gnu.org> wrote: >> This was noticed when fixing the gccgo usage of the macro, the >> rust usage is very similar. >> >> TARGET_AIX is defined as a non-zero value on linux/powerpc64le >> which may cause unexpected behavior. TARGET_AIX_OS should be >> used to toggle AIX specific behavior. >> >> gcc/rust/ChangeLog: >> >> * rust-object-export.cc [TARGET_AIX]: Rename and update >> usage to TARGET_AIX_OS. > > I don't have rights to formally approve this GCC/Rust change, but I'll > note that it follows "as obvious" (see > <https://gcc.gnu.org/gitwrite.html#policies>, "Obvious fixes") to the > corresponding GCC/Go change, which has been approved: > <https://inbox.sourceware.org/CAKOQZ8wDWc7G5_jBNK1jvgChhiURceeAmZb5Bqrx_VZjeJP2Vw@mail.gmail.com>, > and which is where this GCC/Rust code has been copied from, so I suggest > you push both patches at once. > > > Grüße > Thomas Hi Thomas, Thank you for reviewing. I do not have commit access, so I cannot push this myself. If this is OK, could one of the rust maintainers push this patch? Thanks, Paul
On 6/21/23 11:20 AM, Paul E Murphy via Gcc-patches wrote: > > > On 6/19/23 3:39 AM, Thomas Schwinge wrote: >> Hi Paul! >> >> On 2023-06-16T11:00:02-0500, "Paul E. Murphy via Gcc-patches" <gcc-patches@gcc.gnu.org> wrote: >>> This was noticed when fixing the gccgo usage of the macro, the >>> rust usage is very similar. >>> >>> TARGET_AIX is defined as a non-zero value on linux/powerpc64le >>> which may cause unexpected behavior. TARGET_AIX_OS should be >>> used to toggle AIX specific behavior. >>> >>> gcc/rust/ChangeLog: >>> >>> * rust-object-export.cc [TARGET_AIX]: Rename and update >>> usage to TARGET_AIX_OS. >> >> I don't have rights to formally approve this GCC/Rust change, but I'll >> note that it follows "as obvious" (see >> <https://gcc.gnu.org/gitwrite.html#policies>, "Obvious fixes") to the >> corresponding GCC/Go change, which has been approved: >> <https://inbox.sourceware.org/CAKOQZ8wDWc7G5_jBNK1jvgChhiURceeAmZb5Bqrx_VZjeJP2Vw@mail.gmail.com>, >> and which is where this GCC/Rust code has been copied from, so I suggest >> you push both patches at once. >> >> >> Grüße >> Thomas > > Hi Thomas, > > Thank you for reviewing. I do not have commit access, so I cannot push this myself. If this is OK, could one of the rust maintainers push this patch? > > Thanks, > Paul I pushed this to trunk for Paul. Peter
diff --git a/gcc/rust/rust-object-export.cc b/gcc/rust/rust-object-export.cc index 1143c767784..f9a395f6964 100644 --- a/gcc/rust/rust-object-export.cc +++ b/gcc/rust/rust-object-export.cc @@ -46,8 +46,8 @@ #define RUST_EXPORT_SECTION_NAME ".rust_export" #endif -#ifndef TARGET_AIX -#define TARGET_AIX 0 +#ifndef TARGET_AIX_OS +#define TARGET_AIX_OS 0 #endif /* Return whether or not GCC has reported any errors. */ @@ -91,7 +91,7 @@ rust_write_export_data (const char *bytes, unsigned int size) { gcc_assert (targetm_common.have_named_sections); sec = get_section (RUST_EXPORT_SECTION_NAME, - TARGET_AIX ? SECTION_EXCLUDE : SECTION_DEBUG, NULL); + TARGET_AIX_OS ? SECTION_EXCLUDE : SECTION_DEBUG, NULL); } switch_to_section (sec);