134 Star 2 Fork 57

src-openEuler/clang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0026-Driver-add-option-fGNU-compatibility-aliased-with-fg.patch 999 Bytes
一键复制 编辑 原始数据 按行查看 历史
eastb233 提交于 2024-11-21 15:38 . Add option -fGNU-compatibility
From cd2d6fe2cdcb0fa047c77993c23da1fb612970be Mon Sep 17 00:00:00 2001
From: jianghaibo <jianghaibo9@huawei.com>
Date: Wed, 6 Nov 2024 16:04:39 +0800
Subject: [PATCH] [Driver] add option -fGNU-compatibility aliased with
-fgcc-compatible
---
clang/include/clang/Driver/Options.td | 3 +++
1 file changed, 3 insertions(+)
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 530bb53ea9b5..2faa65763234 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -1814,6 +1814,9 @@ def fgcc_compatible : Flag<["-"], "fgcc-compatible">,
Flags<[CC1Option]>,
MarshallingInfoFlag<DiagnosticOpts<"GccCompatible">>,
HelpText<"Enable gcc compatibility for openEuler.">;
+def : Flag["-"], "fGNU-compatibility">,
+ Flags<[CC1Option]>, Alias<fgcc_compatible>,
+ HelpText<"Alias for -fgcc_compatible">;
def fno_gcc_compatible : Flag<["-"], "fno-gcc-compatible">, Flags<[CC1Option]>;
#endif
--
2.38.1.windows.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/clang.git
git@gitee.com:src-openeuler/clang.git
src-openeuler
clang
clang
master

搜索帮助