21 Star 27 Fork 151

src-openEuler/gcc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0289-tree-ssa-loop-crc.cc-TARGET_CRC32-may-be-not-defined.patch 910 Bytes
一键复制 编辑 原始数据 按行查看 历史
huangzifeng 提交于 2024-11-21 11:35 +08:00 . Sync patches from branch openEuler-24.09
From 63f99f46e851aecc070496a0e688a0d118c820a4 Mon Sep 17 00:00:00 2001
From: YunQiang Su <yunqiang@isrc.iscas.ac.cn>
Date: Mon, 2 Sep 2024 17:57:52 +0800
Subject: [PATCH] tree-ssa-loop-crc.cc: TARGET_CRC32 may be not defined
TARGET_CRC32 may be not defined on some architectures, RISC-V is one example.
---
gcc/tree-ssa-loop-crc.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/tree-ssa-loop-crc.cc b/gcc/tree-ssa-loop-crc.cc
index b9c2f71ca..7eee9446d 100644
--- a/gcc/tree-ssa-loop-crc.cc
+++ b/gcc/tree-ssa-loop-crc.cc
@@ -1227,6 +1227,9 @@ convert_to_new_loop (class loop *loop)
static unsigned int
tree_ssa_loop_crc ()
{
+#ifndef TARGET_CRC32
+ return 0;
+#else
if (TARGET_CRC32 == false)
{
warning (OPT____,"The loop-crc optimization is not working." \
@@ -1269,6 +1272,7 @@ tree_ssa_loop_crc ()
}
}
return todo;
+#endif
}
/* Loop crc. */
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/gcc.git
git@gitee.com:src-openeuler/gcc.git
src-openeuler
gcc
gcc
master

搜索帮助