public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "slyfox at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/97750] ICE in during GIMPLE pass: wrestrict on commit e0af865ab9d9d5b6b3ac7fdde26cf9bbf635b6b4 Date: Wed, 16 Dec 2020 08:45:35 +0000 [thread overview] Message-ID: <bug-97750-4-7icmB3OeOo@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-97750-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97750 Sergei Trofimovich <slyfox at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |slyfox at gcc dot gnu.org --- Comment #3 from Sergei Trofimovich <slyfox at gcc dot gnu.org> --- In https://bugs.gentoo.org/760117 we got a similar report. I reproduced it locally and minimized to the following: // cat bug.c char CopyPlane_src; long CopyPlane_copy_pitch; char *CopyFromUswc_src; int CopyFromUswc_height; void CopyPlane(char *dst) { __builtin_memcpy(dst, &CopyPlane_src, CopyPlane_copy_pitch); } void CopyFromUswc(long src_pitch) { char *dst; for (; CopyFromUswc_height;) { unsigned unaligned = (long)CopyFromUswc_src; if (unaligned) CopyPlane(&dst[unaligned]); CopyFromUswc_src += src_pitch; } } Crashes as: $ LANG=C gcc-11.0.0 -O2 -c bug.c -Wall -Wextra during GIMPLE pass: wrestrict bug.c: In function 'CopyFromUswc': bug.c:8:6: internal compiler error: Segmentation fault 8 | void CopyFromUswc(long src_pitch) { | ^~~~~~~~~~~~ 0xb6956a crash_signal /usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/toplev.c:327 0x7fe03834db5f ??? /usr/src/debug/sys-libs/glibc-2.32-r5/glibc-2.32/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x156ef41 operator_cast::op1_range(irange&, tree_node*, irange const&, irange const&) const /usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/range-op.cc:1881 0x1485a12 gori_compute::compute_name_range_op(irange&, gimple*, irange const&, tree_node*) /usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/gimple-range-gori.cc:490 0x1488b33 gori_compute_cache::compute_operand_range(irange&, gimple*, irange const&, tree_node*) /usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/gimple-range-gori.cc:1281 ...
next prev parent reply other threads:[~2020-12-16 8:45 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-07 10:42 [Bug tree-optimization/97750] New: " hedmoo at yahoo dot com 2020-11-07 10:47 ` [Bug tree-optimization/97750] " hedmoo at yahoo dot com 2020-11-07 10:57 ` jakub at gcc dot gnu.org 2020-11-09 8:08 ` marxin at gcc dot gnu.org 2020-12-16 8:45 ` slyfox at gcc dot gnu.org [this message] 2020-12-16 8:58 ` slyfox at gcc dot gnu.org 2020-12-16 8:59 ` [Bug tree-optimization/97750] [11 Regression] ICE in during GIMPLE pass: wrestrict since r11-4135-ge864d395b4e862ce marxin at gcc dot gnu.org 2020-12-16 9:16 ` slyfox at gcc dot gnu.org 2020-12-17 0:05 ` amacleod at redhat dot com 2020-12-17 14:38 ` cvs-commit at gcc dot gnu.org 2020-12-17 14:39 ` amacleod at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-97750-4-7icmB3OeOo@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).