Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
Sign in
Sign up
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
11
Star
1
Fork
16
src-openEuler
/
flang
Code
Issues
5
Pull Requests
1
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
52
Add patch for fix sizeof for data with Bind(C) bug
Merged
ehu1:master
src-openEuler:master
ehu1
create on 2023-09-11 16:02
Clone/Download
HTTPS
SSH
Copy
Email Patch
Diff file
编译出错的原因是在semfunc2.c:2394处进行的检测函数的形参和实参的类型时,发现类型不匹配从而 报错的,而类型不匹配的原因是,对sizeof和c_sizeof的处理,flang是两种处理方式,而本文实际上是对 一个bind(C)类型的数据进行sizeof。我修改测试用例的sizeof为c_sizeof后编译则不会出现问题。 解决方案在sizeof/c_sizeof进行处理时,对bind(C)类型的数据使用c_sizeof的逻辑进行处理,虽然此时 hints不为一个bind(C)类型,但是由于它的模板是addrinfo,使用了bind(C),这里我认为是可以将它识 别为bind(C)类型的。
How to merge Pull Request
git checkout master
git pull https://gitee.com/xieyihui1/flang.git master
git push origin master
Comments
12
Commits
1
Files
2
Checks
Code problems
0
Bulk operation
Expand
Collapse
Reviewer
Code Owner
Reviewer
eastb233
eastb233
Noah
jvmboy
kuen
kuenking111_admin
cf-zhao
cf-zhao
编译小伙
li-yancheng
周磊
alexanderbill
stubCode
stubCode
zhongyunde
zhongyunde
liyunfei
liyunfei33
wangqiang
wangqiang95
chenzheng1030
chenzheng1030
No Setting
Min number
0
Tester
eastb233
eastb233
Noah
jvmboy
kuen
kuenking111_admin
cf-zhao
cf-zhao
编译小伙
li-yancheng
周磊
alexanderbill
stubCode
stubCode
zhongyunde
zhongyunde
liyunfei
liyunfei33
wangqiang
wangqiang95
chenzheng1030
chenzheng1030
No Setting
Min number
0
Priority
Not specified
Serious
Main
Secondary
Unimportant
Label
openeuler-cla/yes
lgtm
approved
ci_successful
sig/Compiler
Link Issue
No link issue
Successfully merged pull requests will close issues
Milestone
No related milestones
Participators
(6)
1
https://gitee.com/src-openeuler/flang.git
git@gitee.com:src-openeuler/flang.git
src-openeuler
flang
flang
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register