public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/110264] New: internal compiler error: src/gcc/toplev.cc:314 @ 2023-06-15 7:39 malat at debian dot org 2023-06-15 7:41 ` [Bug c++/110264] " malat at debian dot org ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: malat at debian dot org @ 2023-06-15 7:39 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 Bug ID: 110264 Summary: internal compiler error: src/gcc/toplev.cc:314 Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: malat at debian dot org Target Milestone: --- Created attachment 55324 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55324&action=edit preprocessed source I cannot compile highway on riscv/rv64gcv1p0 with gcc-13. Compilation fails with: % /usr/bin/g++-13 -freport-bug -DHWY_SHARED_DEFINE -I"/home/malat/highway-1.0.5~git20230612.46fb57d" -g -O2 -ffile-prefix-map=/home/malat/highway-1.0.5~git20230612.46fb57d=. -fstack-protector-strong -Wformat -Werror=format-security -DHWY_BROKEN_EMU128=0 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -fmath-errno -fno-exceptions -march=rv64gcv1p0 -Werror -DHWY_IS_TEST=1 -DGTEST_HAS_PTHREAD=1 -MD -MT CMakeFiles/find_test.dir/hwy/contrib/algo/find_test.cc.o -MF CMakeFiles/find_test.dir/hwy/contrib/algo/find_test.cc.o.d -o CMakeFiles/find_test.dir/hwy/contrib/algo/find_test.cc.o -c '/home/malat/highway-1.0.5~git20230612.46fb57d/hwy/contrib/algo/find_test.cc' during RTL pass: vsetvl /home/malat/highway-1.0.5~git20230612.46fb57d/hwy/contrib/algo/find_test.cc: In function 'void hwy::N_RVV::ForeachCountAndMisalign<Test>::operator()(T, D) const [with T = float; D = hwy::N_RVV::Simd<float, 2048, -2>; Test = hwy::N_RVV::TestFindIf]': /home/malat/highway-1.0.5~git20230612.46fb57d/hwy/contrib/algo/find_test.cc:96:3: internal compiler error: Segmentation fault 96 | } | ^ 0x85d651 crash_signal ../../src/gcc/toplev.cc:314 0xb4c608 riscv_vector::vector_insn_info::get_avl_reg_rtx() const ../../src/gcc/config/riscv/riscv-vsetvl.h:393 0xb4c608 insert_vsetvl ../../src/gcc/config/riscv/riscv-vsetvl.cc:735 0xb4f93f pass_vsetvl::commit_vsetvls() ../../src/gcc/config/riscv/riscv-vsetvl.cc:3816 0xb4feed pass_vsetvl::pre_vsetvl() ../../src/gcc/config/riscv/riscv-vsetvl.cc:3915 0xb5ae83 pass_vsetvl::lazy_vsetvl() ../../src/gcc/config/riscv/riscv-vsetvl.cc:4218 0xb5b091 pass_vsetvl::execute(function*) ../../src/gcc/config/riscv/riscv-vsetvl.cc:4253 0xb5b091 pass_vsetvl::execute(function*) ../../src/gcc/config/riscv/riscv-vsetvl.cc:4234 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions. Preprocessed source stored into /tmp/ccBEZCN1.out file, please attach this to your bugreport. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/110264] internal compiler error: src/gcc/toplev.cc:314 2023-06-15 7:39 [Bug c++/110264] New: internal compiler error: src/gcc/toplev.cc:314 malat at debian dot org @ 2023-06-15 7:41 ` malat at debian dot org 2023-06-16 3:53 ` [Bug target/110264] internal compiler error: riscv_vector::vector_insn_info::get_avl_reg_rtx juzhe.zhong at rivai dot ai ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: malat at debian dot org @ 2023-06-15 7:41 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 --- Comment #1 from Mathieu Malaterre <malat at debian dot org> --- This is not a duplicate of PR/109535 since I can compile the previously mentionned TU transform_test.cc just fine. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/110264] internal compiler error: riscv_vector::vector_insn_info::get_avl_reg_rtx 2023-06-15 7:39 [Bug c++/110264] New: internal compiler error: src/gcc/toplev.cc:314 malat at debian dot org 2023-06-15 7:41 ` [Bug c++/110264] " malat at debian dot org @ 2023-06-16 3:53 ` juzhe.zhong at rivai dot ai 2023-06-16 8:12 ` juzhe.zhong at rivai dot ai ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: juzhe.zhong at rivai dot ai @ 2023-06-16 3:53 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 JuzheZhong <juzhe.zhong at rivai dot ai> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeffreyalaw at gmail dot com --- Comment #2 from JuzheZhong <juzhe.zhong at rivai dot ai> --- Thanks for reporting this. I am trying to reduce the testcase. Hopefully will fix it today. But we need kito or Jeff to backport it into GCC-13. Thanks. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/110264] internal compiler error: riscv_vector::vector_insn_info::get_avl_reg_rtx 2023-06-15 7:39 [Bug c++/110264] New: internal compiler error: src/gcc/toplev.cc:314 malat at debian dot org 2023-06-15 7:41 ` [Bug c++/110264] " malat at debian dot org 2023-06-16 3:53 ` [Bug target/110264] internal compiler error: riscv_vector::vector_insn_info::get_avl_reg_rtx juzhe.zhong at rivai dot ai @ 2023-06-16 8:12 ` juzhe.zhong at rivai dot ai 2023-06-16 23:29 ` cvs-commit at gcc dot gnu.org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: juzhe.zhong at rivai dot ai @ 2023-06-16 8:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 --- Comment #3 from JuzheZhong <juzhe.zhong at rivai dot ai> --- I fixed this issue: https://gcc.gnu.org/pipermail/gcc-patches/2023-June/621953.html Hope it will be landed into trunk and backport to GCC-13 soon. Thanks. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/110264] internal compiler error: riscv_vector::vector_insn_info::get_avl_reg_rtx 2023-06-15 7:39 [Bug c++/110264] New: internal compiler error: src/gcc/toplev.cc:314 malat at debian dot org ` (2 preceding siblings ...) 2023-06-16 8:12 ` juzhe.zhong at rivai dot ai @ 2023-06-16 23:29 ` cvs-commit at gcc dot gnu.org 2023-06-17 22:10 ` law at gcc dot gnu.org ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2023-06-16 23:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 --- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Pan Li <panli@gcc.gnu.org>: https://gcc.gnu.org/g:dd6e1cbac8682106c5167c105f2807014288b852 commit r14-1898-gdd6e1cbac8682106c5167c105f2807014288b852 Author: Juzhe-Zhong <juzhe.zhong@rivai.ai> Date: Fri Jun 16 16:02:31 2023 +0800 RISC-V: Fix VL operand bug in VSETVL PASS[PR110264] This patch fixes this issue happens on both GCC-13 and GCC-14. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 The testcase is too big and I failed to reduce it so I didn't append test into this patch. This patch should not only land into GCC-14 but also should backport to GCC-13. PR target/110264 gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (insert_vsetvl): Fix bug. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/110264] internal compiler error: riscv_vector::vector_insn_info::get_avl_reg_rtx 2023-06-15 7:39 [Bug c++/110264] New: internal compiler error: src/gcc/toplev.cc:314 malat at debian dot org ` (3 preceding siblings ...) 2023-06-16 23:29 ` cvs-commit at gcc dot gnu.org @ 2023-06-17 22:10 ` law at gcc dot gnu.org 2023-06-27 2:56 ` cvs-commit at gcc dot gnu.org 2023-06-27 3:50 ` kito at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: law at gcc dot gnu.org @ 2023-06-17 22:10 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 Jeffrey A. Law <law at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-06-17 Ever confirmed|0 |1 CC| |law at gcc dot gnu.org --- Comment #5 from Jeffrey A. Law <law at gcc dot gnu.org> --- Note that Pan can cherry pick it into gcc-13. Typically folks wait a week or so after the patch is on the trunk to see if there's any fallout. Given that I don't expect gcc-13.2 until late summer, we've certainly got time. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/110264] internal compiler error: riscv_vector::vector_insn_info::get_avl_reg_rtx 2023-06-15 7:39 [Bug c++/110264] New: internal compiler error: src/gcc/toplev.cc:314 malat at debian dot org ` (4 preceding siblings ...) 2023-06-17 22:10 ` law at gcc dot gnu.org @ 2023-06-27 2:56 ` cvs-commit at gcc dot gnu.org 2023-06-27 3:50 ` kito at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2023-06-27 2:56 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 --- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Pan Li <panli@gcc.gnu.org>: https://gcc.gnu.org/g:2f3eedccaff8b6c65869ed50a7733138740325ff commit r13-7482-g2f3eedccaff8b6c65869ed50a7733138740325ff Author: Juzhe-Zhong <juzhe.zhong@rivai.ai> Date: Fri Jun 16 16:02:31 2023 +0800 RISC-V: Fix VL operand bug in VSETVL PASS[PR110264] This patch fixes this issue happens on both GCC-13 and GCC-14. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 The testcase is too big and I failed to reduce it so I didn't append test into this patch. This patch should not only land into GCC-14 but also should backport to GCC-13. PR target/110264 gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (insert_vsetvl): Fix bug. (cherry picked from commit dd6e1cbac8682106c5167c105f2807014288b852) ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/110264] internal compiler error: riscv_vector::vector_insn_info::get_avl_reg_rtx 2023-06-15 7:39 [Bug c++/110264] New: internal compiler error: src/gcc/toplev.cc:314 malat at debian dot org ` (5 preceding siblings ...) 2023-06-27 2:56 ` cvs-commit at gcc dot gnu.org @ 2023-06-27 3:50 ` kito at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: kito at gcc dot gnu.org @ 2023-06-27 3:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110264 Kito Cheng <kito at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #7 from Kito Cheng <kito at gcc dot gnu.org> --- Fixed on trunk and backported to GCC 13 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-06-27 3:50 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-06-15 7:39 [Bug c++/110264] New: internal compiler error: src/gcc/toplev.cc:314 malat at debian dot org 2023-06-15 7:41 ` [Bug c++/110264] " malat at debian dot org 2023-06-16 3:53 ` [Bug target/110264] internal compiler error: riscv_vector::vector_insn_info::get_avl_reg_rtx juzhe.zhong at rivai dot ai 2023-06-16 8:12 ` juzhe.zhong at rivai dot ai 2023-06-16 23:29 ` cvs-commit at gcc dot gnu.org 2023-06-17 22:10 ` law at gcc dot gnu.org 2023-06-27 2:56 ` cvs-commit at gcc dot gnu.org 2023-06-27 3:50 ` kito at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).