Ai
1 Star 0 Fork 79

ticat_fp/euler_binutils

forked from src-openEuler/binutils
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
LoongArch-binutils-compatible-with-older-gcc.patch 667 Bytes
一键复制 编辑 原始数据 按行查看 历史
ywgrit 提交于 2024-12-17 20:03 +08:00 . LoongArch: keep compatible with older gcc
diff --git a/gas/config/tc-loongarch.c b/gas/config/tc-loongarch.c
index 7fa7fa0f..16f688d6 100644
--- a/gas/config/tc-loongarch.c
+++ b/gas/config/tc-loongarch.c
@@ -599,8 +599,21 @@ s_loongarch_option (int x ATTRIBUTE_UNUSED)
demand_empty_rest_of_line ();
}
+static void
+s_loongarch_align (int arg)
+{
+ const char *t = input_line_pointer;
+ while (!is_end_of_line[(unsigned char) *t] && *t != ',')
+ ++t;
+ if (*t == ',')
+ s_align_ptwo (arg);
+ else
+ s_align_ptwo (0);
+}
+
static const pseudo_typeS loongarch_pseudo_table[] =
{
+ { "align", s_loongarch_align, -4 },
{ "dword", cons, 8 },
{ "word", cons, 4 },
{ "half", cons, 2 },
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ticat-fp/euler_binutils.git
git@gitee.com:ticat-fp/euler_binutils.git
ticat-fp
euler_binutils
euler_binutils
master

搜索帮助