public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "zhendong.su at inf dot ethz.ch" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/103314] ICE on valid code at -O1 and above on x86_64-linux-gnu: Segmentation fault Date: Thu, 18 Nov 2021 12:40:20 +0000 [thread overview] Message-ID: <bug-103314-4-1KX482FZbl@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103314-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103314 --- Comment #1 from Zhendong Su <zhendong.su at inf dot ethz.ch> --- BT below: #0 0x00000000011ee287 in wi::fits_to_tree_p<poly_int<1u, generic_wide_int<wide_int_ref_storage<false, true> > > > (x=..., type=0x7ffff65f15e8) at ../../gcc-trunk/gcc/tree.h:6263 #1 0x00000000011ddf6f in force_fit_type (type=type@entry=0x7ffff65f15e8, cst=..., overflowable=1, overflowed=<optimized out>) at ../../gcc-trunk/gcc/tree.c:1558 #2 0x0000000000a98fba in fold_convert_const_int_from_int (arg1=0x7ffff6720450, type=0x7ffff65f15e8) at ../../gcc-trunk/gcc/fold-const.c:2002 #3 fold_convert_const (code=code@entry=NOP_EXPR, type=type@entry=0x7ffff65f15e8, arg1=arg1@entry=0x7ffff6720450) at ../../gcc-trunk/gcc/fold-const.c:2284 #4 0x0000000000ab9885 in const_unop (code=code@entry=NOP_EXPR, type=type@entry=0x7ffff65f15e8, arg0=arg0@entry=0x7ffff6720450) at ../../gcc-trunk/gcc/fold-const.c:1741 #5 0x0000000000aadd2d in fold_unary_loc (loc=loc@entry=2147483650, code=code@entry=NOP_EXPR, type=type@entry=0x7ffff65f15e8, op0=op0@entry=0x7ffff6720450) at ../../gcc-trunk/gcc/fold-const.c:9245 #6 0x0000000000ab00ea in fold_build1_loc (loc=loc@entry=2147483650, code=code@entry=NOP_EXPR, type=0x7ffff65f15e8, op0=0x7ffff6720450) at ../../gcc-trunk/gcc/fold-const.c:13728 #7 0x0000000001572dcf in generic_simplify_359 (loc=loc@entry=2147483650, type=type@entry=0x7ffff65f1690, captures=0x7ffffbfff7a0, bitop=bitop@entry=BIT_XOR_EXPR, _p1=0x7ffff6720450, _p0=0x7ffff61a33a0) at generic-match.c:18945 #8 0x000000000161f20e in generic_simplify_BIT_XOR_EXPR (loc=2147483650, type=type@entry=0x7ffff65f1690, _p0=_p0@entry=0x7ffff61a33a0, _p1=_p1@entry=0x7ffff6720450, code=BIT_XOR_EXPR) at generic-match.c:42342 #9 0x000000000166995e in generic_simplify (loc=loc@entry=2147483650, code=code@entry=BIT_XOR_EXPR, type=type@entry=0x7ffff65f1690, _p0=_p0@entry=0x7ffff61a33a0, _p1=_p1@entry=0x7ffff6720450) at generic-match.c:84379 #10 0x0000000000aa2946 in fold_binary_loc (loc=loc@entry=2147483650, code=code@entry=BIT_XOR_EXPR, type=type@entry=0x7ffff65f1690, op0=op0@entry=0x7ffff61a33a0, op1=op1@entry=0x7ffff6720450) at ../../gcc-trunk/gcc/fold-const.c:10822 #11 0x0000000000aabd3b in fold_build2_loc (loc=2147483650, code=BIT_XOR_EXPR, type=0x7ffff65f1690, op0=0x7ffff61a33a0, op1=0x7ffff6720450) at ../../gcc-trunk/gcc/fold-const.c:13774 #12 0x0000000000aa34cc in fold_binary_loc (loc=loc@entry=2147483650, code=code@entry=BIT_XOR_EXPR, type=type@entry=0x7ffff65f1690, op0=op0@entry=0x7ffff7ff6cf0, op1=op1@entry=0x7ffff61a3380) at ../../gcc-trunk/gcc/fold-const.c:11365 #13 0x0000000000aabd3b in fold_build2_loc (loc=2147483650, code=BIT_XOR_EXPR, type=0x7ffff65f1690, op0=0x7ffff7ff6cf0, op1=0x7ffff61a3380) at ../../gcc-trunk/gcc/fold-const.c:13774 #14 0x0000000000aa35a9 in fold_binary_loc (loc=loc@entry=2147483650, code=code@entry=BIT_XOR_EXPR, type=type@entry=0x7ffff65f1690, op0=op0@entry=0x7ffff7ff6cf0, op1=op1@entry=0x7ffff61a3340) at ../../gcc-trunk/gcc/fold-const.c:11397 #15 0x0000000000aabd3b in fold_build2_loc (loc=2147483650, code=BIT_XOR_EXPR, type=0x7ffff65f1690, op0=0x7ffff7ff6cf0, op1=0x7ffff61a3340) at ../../gcc-trunk/gcc/fold-const.c:13774 #16 0x0000000000aa35a9 in fold_binary_loc (loc=loc@entry=2147483650, code=code@entry=BIT_XOR_EXPR, type=type@entry=0x7ffff65f1690, op0=op0@entry=0x7ffff7ff6cf0, op1=op1@entry=0x7ffff61a3300) at ../../gcc-trunk/gcc/fold-const.c:11397 #17 0x0000000000aabd3b in fold_build2_loc (loc=2147483650, code=BIT_XOR_EXPR, type=0x7ffff65f1690, op0=0x7ffff7ff6cf0, op1=0x7ffff61a3300) at ../../gcc-trunk/gcc/fold-const.c:13774 #18 0x0000000000aa35a9 in fold_binary_loc (loc=loc@entry=2147483650, code=code@entry=BIT_XOR_EXPR, type=type@entry=0x7ffff65f1690, op0=op0@entry=0x7ffff7ff6cf0, op1=op1@entry=0x7ffff61a32c0) at ../../gcc-trunk/gcc/fold-const.c:11397 #19 0x0000000000aabd3b in fold_build2_loc (loc=2147483650, code=BIT_XOR_EXPR, type=0x7ffff65f1690, op0=0x7ffff7ff6cf0, op1=0x7ffff61a32c0) at ../../gcc-trunk/gcc/fold-const.c:13774 #20 0x0000000000aa35a9 in fold_binary_loc (loc=loc@entry=2147483650, code=code@entry=BIT_XOR_EXPR, type=type@entry=0x7ffff65f1690, op0=op0@entry=0x7ffff7ff6cf0, op1=op1@entry=0x7ffff61a3280) at ../../gcc-trunk/gcc/fold-const.c:11397 #21 0x0000000000aabd3b in fold_build2_loc (loc=2147483650, code=BIT_XOR_EXPR, type=0x7ffff65f1690, op0=0x7ffff7ff6cf0, op1=0x7ffff61a3280) at ../../gcc-trunk/gcc/fold-const.c:13774 #22 0x0000000000aa35a9 in fold_binary_loc (loc=loc@entry=2147483650, code=code@entry=BIT_XOR_EXPR, type=type@entry=0x7ffff65f1690, op0=op0@entry=0x7ffff7ff6cf0, op1=op1@entry=0x7ffff61a3240) at ../../gcc-trunk/gcc/fold-const.c:11397
next prev parent reply other threads:[~2021-11-18 12:40 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-18 12:39 [Bug c/103314] New: " zhendong.su at inf dot ethz.ch 2021-11-18 12:40 ` zhendong.su at inf dot ethz.ch [this message] 2021-11-18 12:46 ` [Bug middle-end/103314] [12 regression] " pinskia at gcc dot gnu.org 2021-11-18 12:47 ` [Bug middle-end/103314] [12 regression] ICE on valid code at -O1 and above on x86_64-linux-gnu: Segmentation fault since r12-5358 jakub at gcc dot gnu.org 2021-11-18 12:52 ` jakub at gcc dot gnu.org 2021-11-19 1:19 ` pinskia at gcc dot gnu.org 2021-11-19 1:36 ` pinskia at gcc dot gnu.org 2021-11-19 6:33 ` pinskia at gcc dot gnu.org 2021-11-19 12:07 ` cvs-commit at gcc dot gnu.org 2021-11-19 12:08 ` pinskia at gcc dot gnu.org 2021-11-30 11:54 ` pinskia at gcc dot gnu.org
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-103314-4-1KX482FZbl@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).