public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows @ 2022-07-27 23:12 unlvsur at live dot com 2022-07-27 23:15 ` [Bug other/106459] " unlvsur at live dot com ` (8 more replies) 0 siblings, 9 replies; 10+ messages in thread From: unlvsur at live dot com @ 2022-07-27 23:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 Bug ID: 106459 Summary: Compiler crashing for loongarch64-linux-gnu on windows Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- Created attachment 53367 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53367&action=edit preprocessor file D:\hg\fast_io\.sha512>loongarch64-linux-gnu-g++ -S sha512.cc -Ofast -std=c++23 -I../include In file included from ../include/fast_io_crypto/hash/sha512.h:183, from ../include/fast_io_crypto/hash/impl.h:6, from ../include/fast_io_crypto.h:25, from sha512.cc:1: ../include/fast_io_crypto/hash/sha512_scalar.h: In function 'void fast_io::details::sha512::sha512_runtime_routine(uint_least64_t*, const std::byte*, const std::byte*)': ../include/fast_io_crypto/hash/sha512_scalar.h:99:1: error: unrecognizable insn: 99 | } | ^ (insn 30 29 31 4 (set (reg:DI 1071) (ior:DI (zero_extend:DI (subreg:SI (reg:DI 1071) 0)) (const_int 2867079648641024 [0xa2f9800000000]))) "../include/fast_io_crypto/hash/sha512.h":90:5 -1 (nil)) during RTL pass: vregs ../include/fast_io_crypto/hash/sha512_scalar.h:99:1: internal compiler error: in extract_insn, at recog.cc:2791 libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source (by using -freport-bug). See <https://gcc.gnu.org/bugs/> for instructions. D:\hg\fast_io\.sha512>loongarch64-linux-gnu-g++ -S sha512.cc -Ofast -std=c++23 -I../include -freport-bug In file included from ../include/fast_io_crypto/hash/sha512.h:183, from ../include/fast_io_crypto/hash/impl.h:6, from ../include/fast_io_crypto.h:25, from sha512.cc:1: ../include/fast_io_crypto/hash/sha512_scalar.h: In function 'void fast_io::details::sha512::sha512_runtime_routine(uint_least64_t*, const std::byte*, const std::byte*)': ../include/fast_io_crypto/hash/sha512_scalar.h:99:1: error: unrecognizable insn: 99 | } | ^ (insn 30 29 31 4 (set (reg:DI 1071) (ior:DI (zero_extend:DI (subreg:SI (reg:DI 1071) 0)) (const_int 2867079648641024 [0xa2f9800000000]))) "../include/fast_io_crypto/hash/sha512.h":90:5 -1 (nil)) during RTL pass: vregs ../include/fast_io_crypto/hash/sha512_scalar.h:99:1: internal compiler error: in extract_insn, at recog.cc:2791 libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source. See <https://gcc.gnu.org/bugs/> for instructions. loongarch64-linux-gnu-g++: fatal error: cannot execute 'd:/x86_64-windows-gnu/loongarch64-linux-gnu/bin/../libexec/gcc/loongarch64-linux-gnu/13.0.0/cc1plus.exe': open temporary output file compilation terminated. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug other/106459] Compiler crashing for loongarch64-linux-gnu on windows 2022-07-27 23:12 [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows unlvsur at live dot com @ 2022-07-27 23:15 ` unlvsur at live dot com 2022-07-27 23:17 ` [Bug c++/106459] " unlvsur at live dot com ` (7 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: unlvsur at live dot com @ 2022-07-27 23:15 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 --- Comment #1 from cqwrteur <unlvsur at live dot com> --- It does not crash on linux host but crash on windows host. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/106459] Compiler crashing for loongarch64-linux-gnu on windows 2022-07-27 23:12 [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows unlvsur at live dot com 2022-07-27 23:15 ` [Bug other/106459] " unlvsur at live dot com @ 2022-07-27 23:17 ` unlvsur at live dot com 2022-07-27 23:23 ` [Bug target/106459] " pinskia at gcc dot gnu.org ` (6 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: unlvsur at live dot com @ 2022-07-27 23:17 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 cqwrteur <unlvsur at live dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|other |c++ --- Comment #2 from cqwrteur <unlvsur at live dot com> --- I think it is the bug in the front end for windows that fails to create temporary files. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows 2022-07-27 23:12 [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows unlvsur at live dot com 2022-07-27 23:15 ` [Bug other/106459] " unlvsur at live dot com 2022-07-27 23:17 ` [Bug c++/106459] " unlvsur at live dot com @ 2022-07-27 23:23 ` pinskia at gcc dot gnu.org 2022-07-27 23:40 ` pinskia at gcc dot gnu.org ` (5 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-07-27 23:23 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |target --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is most likely a loongarch64 backend issue where it uses long instead of host wide int for testing the value of a const_int. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows 2022-07-27 23:12 [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows unlvsur at live dot com ` (2 preceding siblings ...) 2022-07-27 23:23 ` [Bug target/106459] " pinskia at gcc dot gnu.org @ 2022-07-27 23:40 ` pinskia at gcc dot gnu.org 2022-07-27 23:42 ` pinskia at gcc dot gnu.org ` (4 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-07-27 23:40 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect it is this macro which is causing the issue: /* True if VALUE can be loaded into a register using LU12I. */ #define LU12I_OPERAND(VALUE) \ (((VALUE) | ((1UL << 31) - IMM_REACH)) == ((1UL << 31) - IMM_REACH) \ || ((VALUE) | ((1UL << 31) - IMM_REACH)) + IMM_REACH == 0) It should either use ULL or use HOST_WIDE_INT_1U instead of 1UL. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows 2022-07-27 23:12 [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows unlvsur at live dot com ` (3 preceding siblings ...) 2022-07-27 23:40 ` pinskia at gcc dot gnu.org @ 2022-07-27 23:42 ` pinskia at gcc dot gnu.org 2022-08-24 7:50 ` paul.hua.gm at gmail dot com ` (3 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-07-27 23:42 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- It might also be: #define IMM16_OPERAND(VALUE) \ ((unsigned HOST_WIDE_INT) (VALUE) + 0x8000 < 0x10000) ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows 2022-07-27 23:12 [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows unlvsur at live dot com ` (4 preceding siblings ...) 2022-07-27 23:42 ` pinskia at gcc dot gnu.org @ 2022-08-24 7:50 ` paul.hua.gm at gmail dot com 2022-08-25 1:19 ` cvs-commit at gcc dot gnu.org ` (2 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: paul.hua.gm at gmail dot com @ 2022-08-24 7:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 Paul Hua <paul.hua.gm at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paul.hua.gm at gmail dot com --- Comment #6 from Paul Hua <paul.hua.gm at gmail dot com> --- Fix patch. https://gcc.gnu.org/pipermail/gcc-patches/2022-August/600185.html ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows 2022-07-27 23:12 [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows unlvsur at live dot com ` (5 preceding siblings ...) 2022-08-24 7:50 ` paul.hua.gm at gmail dot com @ 2022-08-25 1:19 ` cvs-commit at gcc dot gnu.org 2022-08-25 1:42 ` cvs-commit at gcc dot gnu.org 2023-01-08 7:48 ` pinskia at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2022-08-25 1:19 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 --- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Chenghua Xu <paulhua@gcc.gnu.org>: https://gcc.gnu.org/g:b169b67d7dafe2b786f87c31d6b2efc603fd880c commit r13-2195-gb169b67d7dafe2b786f87c31d6b2efc603fd880c Author: Chenghua Xu <xuchenghua@loongson.cn> Date: Wed Aug 24 15:34:07 2022 +0800 LoongArch: Fix pr106459 by use HWIT instead of 1UL. gcc/ChangeLog: PR target/106459 * config/loongarch/loongarch.cc (loongarch_build_integer): Use HOST_WIDE_INT. * config/loongarch/loongarch.h (IMM_REACH): Likewise. (HWIT_1U): New Defined. (LU12I_OPERAND): Use HOST_WIDE_INT. (LU32I_OPERAND): Likewise. (LU52I_OPERAND): Likewise. (HWIT_UC_0xFFF): Likwise. gcc/testsuite/ChangeLog: * gcc.target/loongarch/pr106459.c: New test. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows 2022-07-27 23:12 [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows unlvsur at live dot com ` (6 preceding siblings ...) 2022-08-25 1:19 ` cvs-commit at gcc dot gnu.org @ 2022-08-25 1:42 ` cvs-commit at gcc dot gnu.org 2023-01-08 7:48 ` pinskia at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2022-08-25 1:42 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 --- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Chenghua Xu <paulhua@gcc.gnu.org>: https://gcc.gnu.org/g:ce753c2792363f1b4cfe2ac56b2da562b34151f3 commit r12-8713-gce753c2792363f1b4cfe2ac56b2da562b34151f3 Author: Chenghua Xu <xuchenghua@loongson.cn> Date: Wed Aug 24 15:34:07 2022 +0800 LoongArch: Fix pr106459 by use HWIT instead of 1UL. gcc/ChangeLog: PR target/106459 * config/loongarch/loongarch.cc (loongarch_build_integer): Use HOST_WIDE_INT. * config/loongarch/loongarch.h (IMM_REACH): Likewise. (HWIT_1U): New Defined. (LU12I_OPERAND): Use HOST_WIDE_INT. (LU32I_OPERAND): Likewise. (LU52I_OPERAND): Likewise. (HWIT_UC_0xFFF): Likwise. gcc/testsuite/ChangeLog: * gcc.target/loongarch/pr106459.c: New test. (cherry picked from commit b169b67d7dafe2b786f87c31d6b2efc603fd880c) ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows 2022-07-27 23:12 [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows unlvsur at live dot com ` (7 preceding siblings ...) 2022-08-25 1:42 ` cvs-commit at gcc dot gnu.org @ 2023-01-08 7:48 ` pinskia at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-01-08 7:48 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Target Milestone|--- |12.4 Status|UNCONFIRMED |RESOLVED --- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-01-08 7:48 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-07-27 23:12 [Bug other/106459] New: Compiler crashing for loongarch64-linux-gnu on windows unlvsur at live dot com 2022-07-27 23:15 ` [Bug other/106459] " unlvsur at live dot com 2022-07-27 23:17 ` [Bug c++/106459] " unlvsur at live dot com 2022-07-27 23:23 ` [Bug target/106459] " pinskia at gcc dot gnu.org 2022-07-27 23:40 ` pinskia at gcc dot gnu.org 2022-07-27 23:42 ` pinskia at gcc dot gnu.org 2022-08-24 7:50 ` paul.hua.gm at gmail dot com 2022-08-25 1:19 ` cvs-commit at gcc dot gnu.org 2022-08-25 1:42 ` cvs-commit at gcc dot gnu.org 2023-01-08 7:48 ` pinskia 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).