public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/97175] New: ice in maybe_warn_for_bound, at builtins.c:3483
@ 2020-09-23  9:13 dcb314 at hotmail dot com
  2020-09-23 10:22 ` [Bug tree-optimization/97175] [11 Regression] ICE in maybe_warn_for_bound, at builtins.c:3483 since r11-2928-gd14c547abd484d35 marxin at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2020-09-23  9:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97175

            Bug ID: 97175
           Summary: ice in maybe_warn_for_bound, at builtins.c:3483
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C source code:

int a, b;
int *c;
void d() {
  while (a > 0)
    ;
  c = malloc(1);
  strncpy(c, b, a);
}

compiled by recent gcc trunk and compiler flag -O2, does this:

during RTL pass: expand
bug642.c:7:3: internal compiler error: tree check: expected tree that contains
‘
decl minimal’ structure, have ‘ssa_name’ in maybe_warn_for_bound, at
builtins.c:
3483
0xfb13c0 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure
_enum, char const*, int, char const*)
        ../../trunk.git/gcc/tree.c:9902
0x74e77b contains_struct_check(tree_node*, tree_node_structure_enum, char
const*
, int, char const*)
        ../../trunk.git/gcc/tree.h:3413
0x74e77b maybe_warn_for_bound(int, unsigned int, tree_node*, tree_node*,
tree_no
de**, tree_node*, access_data const*)
        ../../trunk.git/gcc/builtins.c:3483
0x74d796 check_access(tree_node*, tree_node*, tree_node*, tree_node*,
tree_node*
, access_mode, access_data const*)

The bug first seems to occur sometime between 20200827 and 20200829.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-09-24 20:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-23  9:13 [Bug c/97175] New: ice in maybe_warn_for_bound, at builtins.c:3483 dcb314 at hotmail dot com
2020-09-23 10:22 ` [Bug tree-optimization/97175] [11 Regression] ICE in maybe_warn_for_bound, at builtins.c:3483 since r11-2928-gd14c547abd484d35 marxin at gcc dot gnu.org
2020-09-23 16:25 ` [Bug middle-end/97175] " msebor at gcc dot gnu.org
2020-09-23 21:11 ` cvs-commit at gcc dot gnu.org
2020-09-23 21:43 ` msebor at gcc dot gnu.org
2020-09-23 21:46 ` msebor at gcc dot gnu.org
2020-09-24  7:02 ` dcb314 at hotmail dot com
2020-09-24 16:11 ` msebor at gcc dot gnu.org
2020-09-24 16:23 ` dcb314 at hotmail dot com
2020-09-24 20:52 ` 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).