Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-46498: Add new triplets for loongarch64 #2

Open
wants to merge 1 commit into
base: la64/main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,20 @@ cat >> conftest.c <<EOF
hppa-linux-gnu
# elif defined(__ia64__)
ia64-linux-gnu
# elif defined(__loongarch__)
Copy link

@yetist yetist Jan 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不如干脆把 loongarch32 也写上,或者把最外层的 __loongarch__ 去掉?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loongarch32 的宏定义在规范文档里没写,所以暂时没加

Copy link

@yetist yetist Jan 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__loongarch_xxx_float 这 3 个应该不分 32、64 吧?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__loongarch_xxx_float 这 3 个应该不分 32、64 吧?

看文档,这仨只表达浮点 ABI,整数 ABI 是 __loongarchXX 表达的,这样写应该没问题

# if defined(__loongarch64)
# if defined(__loongarch_soft_float)
loongarch64-linux-gnusf
# elif defined(__loongarch_single_float)
loongarch64-linux-gnuf32
# elif defined(__loongarch_double_float)
loongarch64-linux-gnuf64
# else
# error unknown platform triplet
# endif
# else
# error unknown platform triplet
# endif
# elif defined(__m68k__) && !defined(__mcoldfire__)
m68k-linux-gnu
# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
Expand Down