public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/97188] New: [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 @ 2020-09-24 7:32 marxin at gcc dot gnu.org 2020-09-24 7:33 ` [Bug tree-optimization/97188] " marxin at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2020-09-24 7:32 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97188 Bug ID: 97188 Summary: [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: msebor at gcc dot gnu.org Target Milestone: --- The following ICEs: $ void function(short width, int[][width]); void test() { function(1, 0); } $ gcc vla.c -Wnonnull -c during RTL pass: expand In function ‘test’: Segmentation fault 2 | void test() { function(1, 0); } | ^~~~~~~~~~~~~~ 0xd9e6ff crash_signal /home/marxin/Programming/gcc/gcc/toplev.c:329 0x7ffff788652f ??? /usr/src/debug/glibc-2.31-6.3.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x8336e0 c_tree_printer /home/marxin/Programming/gcc/gcc/c/c-objc-common.c:314 0x8336e0 c_tree_printer /home/marxin/Programming/gcc/gcc/c/c-objc-common.c:254 0x188dccc pp_format(pretty_printer*, text_info*) /home/marxin/Programming/gcc/gcc/pretty-print.c:1475 0x1871bbe diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) /home/marxin/Programming/gcc/gcc/diagnostic.c:1205 0x1874238 diagnostic_impl /home/marxin/Programming/gcc/gcc/diagnostic.c:1355 0x1874238 warning_at(unsigned int, int, char const*, ...) /home/marxin/Programming/gcc/gcc/diagnostic.c:1492 0x927455 maybe_warn_rdwr_sizes /home/marxin/Programming/gcc/gcc/calls.c:2038 0x928ad6 initialize_argument_information /home/marxin/Programming/gcc/gcc/calls.c:2531 0x928ad6 expand_call(tree_node*, rtx_def*, int) /home/marxin/Programming/gcc/gcc/calls.c:3926 0xa5ea2a expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/marxin/Programming/gcc/gcc/expr.c:11246 0x940259 expand_expr /home/marxin/Programming/gcc/gcc/expr.h:282 0x940259 expand_call_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.c:2703 0x940259 expand_gimple_stmt_1 /home/marxin/Programming/gcc/gcc/cfgexpand.c:3686 0x940259 expand_gimple_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.c:3851 0x94560a expand_gimple_basic_block /home/marxin/Programming/gcc/gcc/cfgexpand.c:5892 0x9470b6 execute /home/marxin/Programming/gcc/gcc/cfgexpand.c:6576 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] 6+ messages in thread
* [Bug tree-optimization/97188] [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 2020-09-24 7:32 [Bug tree-optimization/97188] New: [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 marxin at gcc dot gnu.org @ 2020-09-24 7:33 ` marxin at gcc dot gnu.org 2020-09-24 17:21 ` msebor at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2020-09-24 7:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97188 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |11.0 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Known to work| |10.2.0 Known to fail| |11.0 Last reconfirmed| |2020-09-24 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/97188] [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 2020-09-24 7:32 [Bug tree-optimization/97188] New: [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 marxin at gcc dot gnu.org 2020-09-24 7:33 ` [Bug tree-optimization/97188] " marxin at gcc dot gnu.org @ 2020-09-24 17:21 ` msebor at gcc dot gnu.org 2020-09-25 0:15 ` msebor at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: msebor at gcc dot gnu.org @ 2020-09-24 17:21 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97188 Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Status|NEW |ASSIGNED ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/97188] [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 2020-09-24 7:32 [Bug tree-optimization/97188] New: [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 marxin at gcc dot gnu.org 2020-09-24 7:33 ` [Bug tree-optimization/97188] " marxin at gcc dot gnu.org 2020-09-24 17:21 ` msebor at gcc dot gnu.org @ 2020-09-25 0:15 ` msebor at gcc dot gnu.org 2020-09-29 23:14 ` cvs-commit at gcc dot gnu.org 2020-09-29 23:16 ` [Bug tree-optimization/97188] [11 Regression] ICE passing a null VLA to a function expecting at least one element msebor at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: msebor at gcc dot gnu.org @ 2020-09-25 0:15 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97188 Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Patch: https://gcc.gnu.org/pipermail/gcc-patches/2020-September/554784.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/97188] [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 2020-09-24 7:32 [Bug tree-optimization/97188] New: [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 marxin at gcc dot gnu.org ` (2 preceding siblings ...) 2020-09-25 0:15 ` msebor at gcc dot gnu.org @ 2020-09-29 23:14 ` cvs-commit at gcc dot gnu.org 2020-09-29 23:16 ` [Bug tree-optimization/97188] [11 Regression] ICE passing a null VLA to a function expecting at least one element msebor at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2020-09-29 23:14 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97188 --- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>: https://gcc.gnu.org/g:873f8c1e6df94a9dcbfbe69f06538e3e45ba151d commit r11-3540-g873f8c1e6df94a9dcbfbe69f06538e3e45ba151d Author: Martin Sebor <msebor@redhat.com> Date: Tue Sep 29 17:10:54 2020 -0600 Correct and improve -Wnonnull for calls to functions with VLA arguments (PR middle-end/97188). Resolves: PR middle-end/97188 - ICE passing a null VLA to a function expecting at least one element gcc/ChangeLog: PR middle-end/97188 * calls.c (maybe_warn_rdwr_sizes): Simplify warning messages. Correct handling of VLA argumments. gcc/testsuite/ChangeLog: PR middle-end/97188 * gcc.dg/Wstringop-overflow-23.c: Adjust text of expected warnings. * gcc.dg/Wnonnull-4.c: New test. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/97188] [11 Regression] ICE passing a null VLA to a function expecting at least one element 2020-09-24 7:32 [Bug tree-optimization/97188] New: [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 marxin at gcc dot gnu.org ` (3 preceding siblings ...) 2020-09-29 23:14 ` cvs-commit at gcc dot gnu.org @ 2020-09-29 23:16 ` msebor at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: msebor at gcc dot gnu.org @ 2020-09-29 23:16 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97188 Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Summary|[11 Regression] ICE in |[11 Regression] ICE passing |c_tree_printer at |a null VLA to a function |c/c-objc-common.c:314 since |expecting at least one |r11-3303-g6450f07388f9fe57 |element --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- Fixed in r11-3540. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-09-29 23:16 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-09-24 7:32 [Bug tree-optimization/97188] New: [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 marxin at gcc dot gnu.org 2020-09-24 7:33 ` [Bug tree-optimization/97188] " marxin at gcc dot gnu.org 2020-09-24 17:21 ` msebor at gcc dot gnu.org 2020-09-25 0:15 ` msebor at gcc dot gnu.org 2020-09-29 23:14 ` cvs-commit at gcc dot gnu.org 2020-09-29 23:16 ` [Bug tree-optimization/97188] [11 Regression] ICE passing a null VLA to a function expecting at least one element msebor 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).