-
Notifications
You must be signed in to change notification settings - Fork 1
basic: update the Arch tuple for LoongArch #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems good
哦 commit message 那个 tuple 要用复数,tuples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-LGTM
src/basic/architecture.h
Outdated
#elif defined(__loongarch64) | ||
# pragma message "Please update the Arch tuple of loongarch64 after psABI is stable" | ||
#elif defined(__loongarch__) | ||
# if defined(__loongarch32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
查了 gcc 代码,发现这个是写错了,没有定义宏 __loongarch32
: https://github.com/loongson/gcc/blob/loongarch-12/gcc/config/loongarch/loongarch-c.cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这应该是他们的 bug 吧?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档也没有写这个
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这怎么说呢,这种内置宏的设计,应该符合人的直觉和常识才对。
现在有的前后都有双下划线,有的只有前面有双下划线,后面没有,如:__loongarch__
和 __loongarch64
。
还有,定义了 __loongarch64
,却没有定义 __loongarch32
。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
发起了一个讨论: loongson/LoongArch-Documentation#46
a1c6104
to
6078ad3
Compare
补丁不完整,导致测试没通过:https://github.com/systemd/systemd/runs/5686676827?check_suite_focus=true#step:4:5111 由于 32 位的 loongarch 不知道 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上游现在好像也只有 LA64,那这波先不加 LA32 是可以的
上游 PR 已合并:systemd#22864 |
按最新规范修改,请测试评审,谢谢。