From patchwork Tue Feb 28 10:24:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xin Liu X-Patchwork-Id: 62393 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2931659wrd; Tue, 28 Feb 2023 02:25:07 -0800 (PST) X-Google-Smtp-Source: AK7set+FKfCwZV7xgeWp+/zDNc3WppVqk7fHVmo7hUNMBpWQ1Yhk8GM99VwhKJOIGQeONFm7MFEt X-Received: by 2002:a17:906:190b:b0:8f2:da10:c69e with SMTP id a11-20020a170906190b00b008f2da10c69emr2257117eje.52.1677579907665; Tue, 28 Feb 2023 02:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677579907; cv=none; d=google.com; s=arc-20160816; b=UVUOR0CnURH7GAgoCVEKeix0ZDlal/yrbJnQGWYZmqj+2Chpp4Fw4oohBPN+XQQTMY 9HsIAc38/SDMJYYTcZcBJY90sOfRsLUVm/Jdr23xbpHr0PCL0ME2oyffdwE8BjMP8a3g RhyBKLI64PEicKrSNyI0ANcIAADxownzrysnt3mESaakrJzXXADYrIjf+M7qobDUKKAz KEpEj5NchSz/zrwj03xmQqwRa6mWzUCCSNTqVJ1PQS72ikyv9DOXz2OAxnLnvb2RVOaY HqU1d/gYmSXVGfkVzKlHocHkldEt3pd8bS4wjImIGLAs0+noV3XLZrxvgssgU3w3IKA4 sfww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding:from :date:to:message-id:subject:cc:mime-version:dkim-signature :dmarc-filter:delivered-to; bh=58gt+uRCtf1jBIbElRC1NAhckpAv/OA0zs86C90FLRM=; b=giny2+GML66ZMNIlsds/0Ek+Af0mnr68+ERhPbaC16VgwdiS/HxLp4vj7OSLriTLhk 4iuHuSElqdCEmnrAadF/7K16sy7nY0zpxB5c26oyClhmwzKYuLOHmElvEyHptbiC4mjH Nxyt5F8/tqI1yzv6LD5sW5yjhC8HWkGbnQYkEGAvQ3d/G/nEvBPCqV8OXbnl5ZaRtY2L BcAz0tR7BsUkGO5+u21pvFJicIm/vtM/hO175bBSmDyYhIFkag1u8jHYc/jkUAX9tBNt atrpbboZDgSV4dakdjdZfSUOwwcmdt0qJg4t/Om+NRLMA1VAb/Me9ge3tlTWECg/adDa u4WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@oss-cipunited-com.20200927.dkim.feishu.cn header.s=s1 header.b=DLheceR3; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id qt27-20020a170906ecfb00b008b17891459bsi2827664ejb.438.2023.02.28.02.25.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 02:25:07 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@oss-cipunited-com.20200927.dkim.feishu.cn header.s=s1 header.b=DLheceR3; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 138B638582BC for ; Tue, 28 Feb 2023 10:25:04 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from t03.bc.larksuite.com (t03.bc.larksuite.com [209.127.231.34]) by sourceware.org (Postfix) with UTF8SMTPS id 5CF2E3858D33 for ; Tue, 28 Feb 2023 10:24:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5CF2E3858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=oss.cipunited.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oss.cipunited.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=s1; d=oss-cipunited-com.20200927.dkim.feishu.cn; t=1677579871; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=4idI34SB+fudQWS3LotBz/uMyO/yahNSjFTvltfTS7c=; b=DLheceR3P9uvc08oXEuMorG+F5/DRo0OnQ0CgtOfA0aDNdILh+bq2oXdroTG5yJ+LgSRsz ZH0tzvyzDzicet1FdSFDRrfha6eYRRzhkE6leTKfhhT4hy2oMx92v1/W6ozBeIOMA8qo3E g7BMOkB9Ps6p90j6mqLHIkqYR8EQt6+OdmZV9vSkFHvNoRo/zb5yNpeG+7wJ/5tg3gbxX6 zv3KKK7Nbw4lyA4j7obD/TYc7TxMljcJ8otkLXfRVVxkwmBpG3OpQ7lIOmn8maBwV21Pgh Jgf5479VDoSiLkyzYt0lyuIbQpKF0/wf4UzbC83sGrkwal9e+pslwtHaJh22OQ== Mime-Version: 1.0 X-Mailer: git-send-email 2.30.2 Cc: "Robert Suchanek" , "Xin Liu" Subject: [PATCH] MIPS: Bugfix for fix Dejagnu issues with RTL checking enabled. Message-Id: <20230228101941.170726-1-xin.liu@oss.cipunited.com> X-Lms-Return-Path: To: Date: Tue, 28 Feb 2023 18:24:21 +0800 From: "Xin Liu" X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, HTML_MESSAGE, SPF_HELO_NONE, SPF_PASS, 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-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759070029709818688?= X-GMAIL-MSGID: =?utf-8?q?1759070029709818688?= From: Robert Suchanek gcc/ChangeLog: * config/mips/mips.cc (mips_set_text_contents_type): Modified parameter * config/mips/mips-protos.h (mips_set_text_contents_type): Likewise Signed-off-by: Xin Liu --- gcc/config/mips/mips-protos.h | 2 +- gcc/config/mips/mips.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/mips/mips-protos.h b/gcc/config/mips/mips-protos.h index 75432677da2..fae71fe776c 100644 --- a/gcc/config/mips/mips-protos.h +++ b/gcc/config/mips/mips-protos.h @@ -272,7 +272,7 @@ extern void mips_declare_object (FILE *, const char *, const char *, extern void mips_declare_object_name (FILE *, const char *, tree); extern void mips_finish_declare_object (FILE *, tree, int, int); extern void mips_set_text_contents_type (FILE *, const char *, - unsigned long, bool); + unsigned HOST_WIDE_INT, bool); extern bool mips_small_data_pattern_p (rtx); extern rtx mips_rewrite_small_data (rtx); diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index fb903a2a630..2d87d4f3627 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc @@ -11090,7 +11090,7 @@ mips_finish_declare_object (FILE *stream, tree decl, int top_level, int at_end) void mips_set_text_contents_type (FILE *file ATTRIBUTE_UNUSED, const char *prefix ATTRIBUTE_UNUSED, - unsigned long num ATTRIBUTE_UNUSED, + unsigned HOST_WIDE_INT num ATTRIBUTE_UNUSED, bool function_p ATTRIBUTE_UNUSED) { #ifdef ASM_OUTPUT_TYPE_DIRECTIVE @@ -11099,7 +11099,7 @@ mips_set_text_contents_type (FILE *file ATTRIBUTE_UNUSED, char *sname; rtx symbol; - sprintf (buf, "%lu", num); + sprintf (buf, HOST_WIDE_INT_PRINT_UNSIGNED, num); symbol = XEXP (DECL_RTL (current_function_decl), 0); fnname = targetm.strip_name_encoding (XSTR (symbol, 0)); sname = ACONCAT ((prefix, fnname, "_", buf, NULL));