public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/103770] New: ICE related to VLA @ 2021-12-19 18:30 muecker at gwdg dot de 2021-12-19 21:17 ` [Bug middle-end/103770] [11 Regression] " pinskia at gcc dot gnu.org ` (8 more replies) 0 siblings, 9 replies; 10+ messages in thread From: muecker at gwdg dot de @ 2021-12-19 18:30 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 Bug ID: 103770 Summary: ICE related to VLA Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: muecker at gwdg dot de Target Milestone: --- Here is an ICE related to VLAs starting version 11 and seems fixed on trunk. https://godbolt.org/z/Y63dEq7KE struct struct_s { void* ptr; void* ptr2; void* ptr3; }; struct struct_s struct_create(int N, const long vla[N]); void fun(int N) { long vla[N]; struct struct_s st = struct_create(N, vla); } ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/103770] [11 Regression] ICE related to VLA 2021-12-19 18:30 [Bug c/103770] New: ICE related to VLA muecker at gwdg dot de @ 2021-12-19 21:17 ` pinskia at gcc dot gnu.org 2021-12-20 9:09 ` marxin at gcc dot gnu.org ` (7 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-19 21:17 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ICE related to VLA |[11 Regression] ICE related | |to VLA Component|c |middle-end Keywords| |ice-on-valid-code, | |needs-bisection Target Milestone|--- |11.3 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/103770] [11 Regression] ICE related to VLA 2021-12-19 18:30 [Bug c/103770] New: ICE related to VLA muecker at gwdg dot de 2021-12-19 21:17 ` [Bug middle-end/103770] [11 Regression] " pinskia at gcc dot gnu.org @ 2021-12-20 9:09 ` marxin at gcc dot gnu.org 2021-12-20 11:48 ` pinskia at gcc dot gnu.org ` (6 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: marxin at gcc dot gnu.org @ 2021-12-20 9:09 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-12-20 CC| |marxin at gcc dot gnu.org Ever confirmed|0 |1 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=101854 Status|UNCONFIRMED |NEW Keywords|needs-bisection | --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Fixed with r12-2976-gb48d4e6818674898 and started with r11-3303-g6450f07388f9fe57. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/103770] [11 Regression] ICE related to VLA 2021-12-19 18:30 [Bug c/103770] New: ICE related to VLA muecker at gwdg dot de 2021-12-19 21:17 ` [Bug middle-end/103770] [11 Regression] " pinskia at gcc dot gnu.org 2021-12-20 9:09 ` marxin at gcc dot gnu.org @ 2021-12-20 11:48 ` pinskia at gcc dot gnu.org 2021-12-29 12:10 ` muecker at gwdg dot de ` (5 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-20 11:48 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So this might be latent on the trunk too ... ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/103770] [11 Regression] ICE related to VLA 2021-12-19 18:30 [Bug c/103770] New: ICE related to VLA muecker at gwdg dot de ` (2 preceding siblings ...) 2021-12-20 11:48 ` pinskia at gcc dot gnu.org @ 2021-12-29 12:10 ` muecker at gwdg dot de 2021-12-29 20:20 ` pinskia at gcc dot gnu.org ` (4 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: muecker at gwdg dot de @ 2021-12-29 12:10 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 --- Comment #3 from Martin Uecker <muecker at gwdg dot de> --- Here is another example which fails on armel extern _Complex float g(int N, int dims[N]); void f(void) { int dims[1]; _Complex float val = g(1, dims); } during RTL pass: expand BUG.c: In function 'f': BUG.c:10:30: internal compiler error: Segmentation fault 10 | _Complex float val = g(1, dims); | ^~~~~~~~~~ 0xb1393f crash_signal ../../src/gcc/toplev.c:327 0x708398 get_size_range(range_query*, tree_node*, gimple*, tree_node**, int) ../../src/gcc/calls.c:1274 0x70c4d4 get_size_range(range_query*, tree_node*, gimple*, tree_node**, int) ../../src/gcc/calls.c:1266 0x70c4d4 get_size_range(tree_node*, tree_node**, int) ../../src/gcc/calls.c:1401 0x70c4d4 maybe_warn_rdwr_sizes ../../src/gcc/calls.c:2034 0x70dcb1 initialize_argument_information ../../src/gcc/calls.c:2626 0x70dcb1 expand_call(tree_node*, rtx_def*, int) ../../src/gcc/calls.c:4010 0x8210ce expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../src/gcc/expr.c:11287 0x82a9ce expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../src/gcc/expr.c:8519 0x82a9ce store_expr(tree_node*, rtx_def*, int, bool, bool) ../../src/gcc/expr.c:5886 0x82be69 expand_assignment(tree_node*, tree_node*, bool) ../../src/gcc/expr.c:5622 0x720bf9 expand_call_stmt ../../src/gcc/cfgexpand.c:2838 0x720bf9 expand_gimple_stmt_1 ../../src/gcc/cfgexpand.c:3871 0x720bf9 expand_gimple_stmt ../../src/gcc/cfgexpand.c:4035 0x726b97 expand_gimple_basic_block ../../src/gcc/cfgexpand.c:6077 0x726b97 execute ../../src/gcc/cfgexpand.c:6761 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions. arm-linux-gnueabi-gcc (Debian 11.2.0-9) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/103770] [11 Regression] ICE related to VLA 2021-12-19 18:30 [Bug c/103770] New: ICE related to VLA muecker at gwdg dot de ` (3 preceding siblings ...) 2021-12-29 12:10 ` muecker at gwdg dot de @ 2021-12-29 20:20 ` pinskia at gcc dot gnu.org 2022-03-26 21:42 ` pinskia at gcc dot gnu.org ` (3 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-29 20:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dtorrance at piedmont dot edu --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- *** Bug 103859 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/103770] [11 Regression] ICE related to VLA 2021-12-19 18:30 [Bug c/103770] New: ICE related to VLA muecker at gwdg dot de ` (4 preceding siblings ...) 2021-12-29 20:20 ` pinskia at gcc dot gnu.org @ 2022-03-26 21:42 ` pinskia at gcc dot gnu.org 2022-04-21 7:51 ` rguenth at gcc dot gnu.org ` (2 subsequent siblings) 8 siblings, 0 replies; 10+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-03-26 21:42 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |niget.tom at gmail dot com --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- *** Bug 105065 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/103770] [11 Regression] ICE related to VLA 2021-12-19 18:30 [Bug c/103770] New: ICE related to VLA muecker at gwdg dot de ` (5 preceding siblings ...) 2022-03-26 21:42 ` pinskia at gcc dot gnu.org @ 2022-04-21 7:51 ` rguenth at gcc dot gnu.org 2023-01-28 18:15 ` muecker at gwdg dot de 2023-05-29 10:06 ` jakub at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: rguenth at gcc dot gnu.org @ 2022-04-21 7:51 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|11.3 |11.4 --- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- GCC 11.3 is being released, retargeting bugs to GCC 11.4. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/103770] [11 Regression] ICE related to VLA 2021-12-19 18:30 [Bug c/103770] New: ICE related to VLA muecker at gwdg dot de ` (6 preceding siblings ...) 2022-04-21 7:51 ` rguenth at gcc dot gnu.org @ 2023-01-28 18:15 ` muecker at gwdg dot de 2023-05-29 10:06 ` jakub at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: muecker at gwdg dot de @ 2023-01-28 18:15 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 --- Comment #7 from Martin Uecker <muecker at gwdg dot de> --- Regression tests: https://gcc.gnu.org/g:ebf7dd754a95bf9680bc53331a6b70f0cf83c045 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/103770] [11 Regression] ICE related to VLA 2021-12-19 18:30 [Bug c/103770] New: ICE related to VLA muecker at gwdg dot de ` (7 preceding siblings ...) 2023-01-28 18:15 ` muecker at gwdg dot de @ 2023-05-29 10:06 ` jakub at gcc dot gnu.org 8 siblings, 0 replies; 10+ messages in thread From: jakub at gcc dot gnu.org @ 2023-05-29 10:06 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103770 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|11.4 |11.5 --- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- GCC 11.4 is being released, retargeting bugs to GCC 11.5. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-05-29 10:06 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-12-19 18:30 [Bug c/103770] New: ICE related to VLA muecker at gwdg dot de 2021-12-19 21:17 ` [Bug middle-end/103770] [11 Regression] " pinskia at gcc dot gnu.org 2021-12-20 9:09 ` marxin at gcc dot gnu.org 2021-12-20 11:48 ` pinskia at gcc dot gnu.org 2021-12-29 12:10 ` muecker at gwdg dot de 2021-12-29 20:20 ` pinskia at gcc dot gnu.org 2022-03-26 21:42 ` pinskia at gcc dot gnu.org 2022-04-21 7:51 ` rguenth at gcc dot gnu.org 2023-01-28 18:15 ` muecker at gwdg dot de 2023-05-29 10:06 ` jakub 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).