public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)
@ 2021-05-27 1:20 cnsun at uwaterloo dot ca
2021-05-27 14:15 ` [Bug target/100784] " marxin at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: cnsun at uwaterloo dot ca @ 2021-05-27 1:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100784
Bug ID: 100784
Summary: ICE: Segmentation fault,
contains_struct_check(tree_node*,
tree_node_structure_enum, char const*, int, char
const*)
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: cnsun at uwaterloo dot ca
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210526 (experimental) [master revision
:21638bbbf:1fd76b24306ed4df4cf9e797d900699ed59ce7f7] (GCC)
$ cat mutant.c
typedef double v2df __attribute__((__vector_size__(16)));
f() {
v2df x;
v2df y;
__builtin_ia32_shufpd(x, y, 1);
}
$ gcc-trunk mutant.c
mutant.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
2 | f() {
| ^
during GIMPLE pass: lower
mutant.c: In function ‘f’:
mutant.c:2:1: internal compiler error: Segmentation fault
0xf01803 crash_signal
/tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/toplev.c:327
0xf3cf82 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
/tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/tree.h:3479
0xf3cf82 verify_gimple_assign_ternary
/tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/tree-cfg.c:4180
0xf3fb37 verify_gimple_in_seq_2
/tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/tree-cfg.c:5121
0xf42485 verify_gimple_in_seq(gimple*)
/tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/tree-cfg.c:5160
0xe12660 execute_function_todo
/tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/passes.c:2044
0xe1331e execute_todo
/tmp/tmp.tVhv2eaPzV-gcc-builder/gcc/gcc/passes.c:2096
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/100784] ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)
2021-05-27 1:20 [Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) cnsun at uwaterloo dot ca
@ 2021-05-27 14:15 ` marxin at gcc dot gnu.org
2021-05-27 14:38 ` glisse at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-05-27 14:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100784
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |glisse at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-05-27
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r10-521-g4d508751f4214910.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/100784] ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)
2021-05-27 1:20 [Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) cnsun at uwaterloo dot ca
2021-05-27 14:15 ` [Bug target/100784] " marxin at gcc dot gnu.org
@ 2021-05-27 14:38 ` glisse at gcc dot gnu.org
2021-05-28 10:33 ` [Bug target/100784] [10/11/12 Regression] " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: glisse at gcc dot gnu.org @ 2021-05-27 14:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100784
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
Do we need to punt if there is no lhs?
(with optimization the call should be removed as pure)
I probably won't have time to try it for a while.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/100784] [10/11/12 Regression] ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)
2021-05-27 1:20 [Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) cnsun at uwaterloo dot ca
2021-05-27 14:15 ` [Bug target/100784] " marxin at gcc dot gnu.org
2021-05-27 14:38 ` glisse at gcc dot gnu.org
@ 2021-05-28 10:33 ` rguenth at gcc dot gnu.org
2022-01-20 13:34 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-28 10:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100784
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE: Segmentation fault, |[10/11/12 Regression] ICE:
|contains_struct_check(tree_ |Segmentation fault,
|node*, |contains_struct_check(tree_
|tree_node_structure_enum, |node*,
|char const*, int, char |tree_node_structure_enum,
|const*) |char const*, int, char
| |const*)
Target Milestone|--- |10.4
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Like the other case the calls should be replaced by GIMPLE_NOP in the x86
folder
when there's no LHS.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/100784] [10/11/12 Regression] ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)
2021-05-27 1:20 [Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) cnsun at uwaterloo dot ca
` (2 preceding siblings ...)
2021-05-28 10:33 ` [Bug target/100784] [10/11/12 Regression] " rguenth at gcc dot gnu.org
@ 2022-01-20 13:34 ` rguenth at gcc dot gnu.org
2022-01-20 14:19 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-20 13:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100784
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Testing a patch.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/100784] [10/11/12 Regression] ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)
2021-05-27 1:20 [Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) cnsun at uwaterloo dot ca
` (3 preceding siblings ...)
2022-01-20 13:34 ` rguenth at gcc dot gnu.org
@ 2022-01-20 14:19 ` cvs-commit at gcc dot gnu.org
2022-02-17 9:06 ` [Bug target/100784] [10/11 " cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-20 14:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100784
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:d63d9c3dd160dce24f0209f193b8e7388b19f712
commit r12-6771-gd63d9c3dd160dce24f0209f193b8e7388b19f712
Author: Richard Biener <rguenther@suse.de>
Date: Thu Jan 20 14:34:33 2022 +0100
target/100784 - avoid ICE with folding __builtin_ia32_shufpd
This avoids ICEing when there is no LHS on the call by following
what foldings of other builtins do in , namely not folding.
2022-01-20 Richard Biener <rguenther@suse.de>
PR target/100784
* config/i386/i386.cc (ix86_gimple_fold_builtin): Check for
LHS before folding __builtin_ia32_shufpd and friends.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/100784] [10/11 Regression] ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)
2021-05-27 1:20 [Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) cnsun at uwaterloo dot ca
` (4 preceding siblings ...)
2022-01-20 14:19 ` cvs-commit at gcc dot gnu.org
@ 2022-02-17 9:06 ` cvs-commit at gcc dot gnu.org
2022-03-16 9:22 ` [Bug target/100784] [10 " cvs-commit at gcc dot gnu.org
2022-03-16 9:24 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-02-17 9:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100784
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:2b1b5b16f3b45647b1be87cbbe7fe8b4b854b7c3
commit r11-9581-g2b1b5b16f3b45647b1be87cbbe7fe8b4b854b7c3
Author: Richard Biener <rguenther@suse.de>
Date: Thu Jan 20 14:34:33 2022 +0100
target/100784 - avoid ICE with folding __builtin_ia32_shufpd
This avoids ICEing when there is no LHS on the call by following
what foldings of other builtins do in , namely not folding.
2022-01-20 Richard Biener <rguenther@suse.de>
PR target/100784
* config/i386/i386.c (ix86_gimple_fold_builtin): Check for
LHS before folding __builtin_ia32_shufpd and friends.
(cherry picked from commit d63d9c3dd160dce24f0209f193b8e7388b19f712)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/100784] [10 Regression] ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)
2021-05-27 1:20 [Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) cnsun at uwaterloo dot ca
` (5 preceding siblings ...)
2022-02-17 9:06 ` [Bug target/100784] [10/11 " cvs-commit at gcc dot gnu.org
@ 2022-03-16 9:22 ` cvs-commit at gcc dot gnu.org
2022-03-16 9:24 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-16 9:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100784
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:e0ae287e2c199a22d3f0c2de40a4869a44c8b795
commit r10-10499-ge0ae287e2c199a22d3f0c2de40a4869a44c8b795
Author: Richard Biener <rguenther@suse.de>
Date: Thu Jan 20 14:34:33 2022 +0100
target/100784 - avoid ICE with folding __builtin_ia32_shufpd
This avoids ICEing when there is no LHS on the call by following
what foldings of other builtins do in , namely not folding.
2022-01-20 Richard Biener <rguenther@suse.de>
PR target/100784
* config/i386/i386.c (ix86_gimple_fold_builtin): Check for
LHS before folding __builtin_ia32_shufpd and friends.
(cherry picked from commit d63d9c3dd160dce24f0209f193b8e7388b19f712)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/100784] [10 Regression] ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*)
2021-05-27 1:20 [Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) cnsun at uwaterloo dot ca
` (6 preceding siblings ...)
2022-03-16 9:22 ` [Bug target/100784] [10 " cvs-commit at gcc dot gnu.org
@ 2022-03-16 9:24 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-16 9:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100784
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |10.3.1
Known to fail| |10.3.0
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-03-16 9:24 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-27 1:20 [Bug c/100784] New: ICE: Segmentation fault, contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) cnsun at uwaterloo dot ca
2021-05-27 14:15 ` [Bug target/100784] " marxin at gcc dot gnu.org
2021-05-27 14:38 ` glisse at gcc dot gnu.org
2021-05-28 10:33 ` [Bug target/100784] [10/11/12 Regression] " rguenth at gcc dot gnu.org
2022-01-20 13:34 ` rguenth at gcc dot gnu.org
2022-01-20 14:19 ` cvs-commit at gcc dot gnu.org
2022-02-17 9:06 ` [Bug target/100784] [10/11 " cvs-commit at gcc dot gnu.org
2022-03-16 9:22 ` [Bug target/100784] [10 " cvs-commit at gcc dot gnu.org
2022-03-16 9:24 ` rguenth 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).