Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
Panda
TinyCC
提交
91a95682
提交
91a95682
编辑于
7月 07, 2021
作者:
Christian Jullien
浏览文件
[macOS] Add VT_LDOUBLE special case for Rosetta to handle --cpu=x86_64.
上级
592cf7fb
变更
1
Hide whitespace changes
Inline
Side-by-side
tccgen.c
浏览文件 @
91a95682
...
...
@@ -8093,6 +8093,11 @@ static void init_putv(init_params *p, CType *type, unsigned long c)
else if (sizeof(double) == LDOUBLE_SIZE)
memcpy(ptr, &vtop->c.ld, LDOUBLE_SIZE);
#ifndef TCC_CROSS_TEST
#if defined(TCC_TARGET_MACHO) && defined(TCC_TARGET_X86_64)
/* Special case for Rosetta to handle --cpu=x86_64 on macOS */
else if (sizeof(double) == sizeof(long double))
memcpy(ptr, &vtop->c.ld, sizeof(double));
#endif
else
tcc_error("can't cross compile long double constants");
#endif
...
...
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录