1 Star 0 Fork 128

花花世界/gcc

forked from src-openEuler/gcc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
LoongArch-Modify-the-output-message-string-of-the-wa.patch 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
ticat_fp 提交于 2024-03-26 09:26 . LoongArch: update from gcc upstream
From 83d6cfbbdc41766af9d7941d00204cc0f26ff40c Mon Sep 17 00:00:00 2001
From: Lulu Cheng <chenglulu@loongson.cn>
Date: Tue, 26 Jul 2022 21:03:52 +0800
Subject: [PATCH 005/124] LoongArch: Modify the output message string of the
warning.
Fix bug for "error: spurious trailing punctuation sequence '.' in format [-Werror=format-diag]".
gcc/ChangeLog:
* config/loongarch/loongarch-opts.cc: Modify the output message string
of the warning.
Signed-off-by: Peng Fan <fanpeng@loongson.cn>
Signed-off-by: ticat_fp <fanpeng@loongson.cn>
---
gcc/config/loongarch/loongarch-opts.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/loongarch/loongarch-opts.cc b/gcc/config/loongarch/loongarch-opts.cc
index fc477bfd4..3f70943de 100644
--- a/gcc/config/loongarch/loongarch-opts.cc
+++ b/gcc/config/loongarch/loongarch-opts.cc
@@ -378,8 +378,8 @@ fallback:
t.cmodel = constrained.cmodel ? opt_cmodel : CMODEL_NORMAL;
if (t.cmodel != CMODEL_NORMAL)
{
- warning (0, "%qs is not supported, now cmodel is set to 'normal'.",
- loongarch_cmodel_strings[t.cmodel]);
+ warning (0, "%qs is not supported, now cmodel is set to %qs",
+ loongarch_cmodel_strings[t.cmodel], "normal");
t.cmodel = CMODEL_NORMAL;
}
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/suwei1202/gcc.git
git@gitee.com:suwei1202/gcc.git
suwei1202
gcc
gcc
master

搜索帮助