【标题描述】
【22.03 LTS-SP1】【arm】【Angha】-O3 -fwhole-program -flto-partition=one -fipa-struct-reorg=6编译ICE: during IPA pass: struct_reorg:internal compiler error: Segmentation fault
【环境信息】
软件信息:
1)os版本:openEuler 21.09
2)内核信息:Linux localhost.localdomain 5.10.0-5.10.0.24.oe1.aarch64
3)工具链版本:
COLLECT_GCC=./bin/gcc
COLLECT_LTO_WRAPPER=/home/hccjenkins/hccversion/hcc_arm64le_native/bin/../libexec/gcc/aarch64-linux-gnu/10.3.1/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../gcc/configure --prefix=/home/lyc/2022/gitee_lyc_gcc/install --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++,objc,obj-c++,fortran,lto --enable-plugin --enable-initfini-array --disable-libgcj --without-isl --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 --with-multilib-list=lp64 --enable-bolt
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.3.1 (GCC)
【问题复现步骤】
gcc extr_ftl.c_ftl_discardsect.c -O3 -mcpu=tsv110 -fwhole-program -flto-partition=one -fipa-struct-reorg=6 -c -w -o extr_ftl.c_ftl_discardsect.c.o
【预期结果】
可编译成功
【实际结果】
Hi jixiaohuiyou, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Compiler, and any of the maintainers: @Noah , @Peilin Guo , @eastb233 , @kuen , @笨鸟不飞就是鸡 , @Haijian.Zhang , @编译小伙 , @huangxiaoquan , @cf-zhao , @周磊 , @stubCode
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
-O3 -fwhole-program -flto-partition=one -fipa-struct-reorg=5编译成功
用例extr_ftl.c_ftl_discardsect.txt回归结果:通过
用例extr_omf.c_get_omf_data_info.txt回归结果:通过
用例extr_m5602_core.c_m5602_init_controls.txt回归结果:通过
登录 后才可以发表评论