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: 65731 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 32999385843E for ; Tue, 28 Feb 2023 10:24:56 +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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 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));