Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
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
23
Star
30
Fork
165
src-openEuler
/
gcc
Closed
Code
Issues
30
Pull Requests
12
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
[22.03-LTS-SP3]-O2 -ftree-vectorize -flto -funroll-all-loops -ftree-fold-phiopt -ftrapv运行结果不一致
Done
#IA52SK
Bug
纪晓慧
Opened this issue
2024-06-13 10:38
**【标题描述】-O2 -ftree-vectorize -flto -funroll-all-loops -ftree-fold-phiopt -ftrapv运行结果不一致** **一、缺陷信息** **【环境信息】** 软件信息 - OS版本及分支信息:openEuler-22.03-LTS-SP3 - 内核信息:5.10.0-182.0.0.95.oe2203sp3.aarch64 - 发现问题的组件版本信息: ``` gcc -v 使用内建 specs。 COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-linux-gnu/10.3.1/lto-wrapper 目标:aarch64-linux-gnu 配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,fortran,objc,obj-c++,lto --enable-plugin --enable-initfini-array --disable-libgcj --without-cloog --enable-gnu-indirect-function --build=aarch64-linux-gnu --with-stage1-ldflags=' -Wl,-z,relro,-z,now' --with-boot-ldflags=' -Wl,-z,relro,-z,now' --disable-bootstrap --without-isl --with-multilib-list=lp64 --enable-bolt 线程模型:posix Supported LTO compression algorithms: zlib gcc 版本 10.3.1 (GCC) ``` **【问题复现步骤】** ``` /usr/bin/gcc -w -g -O2 -ftree-vectorize -flto -funroll-all-loops -ftree-fold-phiopt -ftrapv csmith_20240611_162243_60.c -o csmith_20240611_162243_60;./csmith_20240611_162243_60 /usr/bin/gcc -w -g -O2 -ftree-vectorize -flto -funroll-all-loops -ftrapv csmith_20240611_162243_60.c -o csmith_20240611_162243_60;./csmith_20240611_162243_60 ``` **【实际结果】** 运行结果不一致   不带-ftree-fold-phiopt选项和开源gcc运行结果一致 
**【标题描述】-O2 -ftree-vectorize -flto -funroll-all-loops -ftree-fold-phiopt -ftrapv运行结果不一致** **一、缺陷信息** **【环境信息】** 软件信息 - OS版本及分支信息:openEuler-22.03-LTS-SP3 - 内核信息:5.10.0-182.0.0.95.oe2203sp3.aarch64 - 发现问题的组件版本信息: ``` gcc -v 使用内建 specs。 COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-linux-gnu/10.3.1/lto-wrapper 目标:aarch64-linux-gnu 配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,fortran,objc,obj-c++,lto --enable-plugin --enable-initfini-array --disable-libgcj --without-cloog --enable-gnu-indirect-function --build=aarch64-linux-gnu --with-stage1-ldflags=' -Wl,-z,relro,-z,now' --with-boot-ldflags=' -Wl,-z,relro,-z,now' --disable-bootstrap --without-isl --with-multilib-list=lp64 --enable-bolt 线程模型:posix Supported LTO compression algorithms: zlib gcc 版本 10.3.1 (GCC) ``` **【问题复现步骤】** ``` /usr/bin/gcc -w -g -O2 -ftree-vectorize -flto -funroll-all-loops -ftree-fold-phiopt -ftrapv csmith_20240611_162243_60.c -o csmith_20240611_162243_60;./csmith_20240611_162243_60 /usr/bin/gcc -w -g -O2 -ftree-vectorize -flto -funroll-all-loops -ftrapv csmith_20240611_162243_60.c -o csmith_20240611_162243_60;./csmith_20240611_162243_60 ``` **【实际结果】** 运行结果不一致   不带-ftree-fold-phiopt选项和开源gcc运行结果一致 
Attachments
csmith_20240611_162243_60.c
(166.41 KB)
Download
纪晓慧
2024-06-13 10:45
Comments (
3
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
MC.5
wumingchuan
Assignee
Collaborator
+Assign
+Mention
Labels
sig/Compiler
Not set
Projects
Unprojected
Unprojected
Milestones
openEuler-22.03-LTS-SP3
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
1
https://gitee.com/src-openeuler/gcc.git
git@gitee.com:src-openeuler/gcc.git
src-openeuler
gcc
gcc
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
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