代码拉取完成,页面将自动刷新
From bc468838ffa1991e50cb4b82b45154d44302417b Mon Sep 17 00:00:00 2001
From: zhenyu--zhao_admin <zhaozhenyu17@huawei.com>
Date: Tue, 3 Dec 2024 22:39:36 +0800
Subject: [PATCH 5/5] Bugfix: set default value when tune_native is NULL.
---
gcc/gcc.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index 0032735db..90f6dfe85 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -5800,6 +5800,10 @@ do_self_spec (const char *spec)
do_spec_1 (" ", 0, NULL);
const char* tune_native = eval_spec_function ("local_cpu_detect", "cpu", "");
+ if (tune_native == NULL)
+ {
+ tune_native = "native";
+ }
setenv ("GCC_AI4C_TUNE_INFO", tune_native, 1);
/* Mark %<S switches processed by do_self_spec to be ignored permanently.
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。