public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/94479] New: NetBSD: internal compiler error: in recompute_tree_invariant_for_addr_expr
@ 2020-04-03 19:29 tk at giga dot or.at
  2020-04-06  6:35 ` [Bug target/94479] " rguenth at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: tk at giga dot or.at @ 2020-04-03 19:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94479
           Summary: NetBSD: internal compiler error: in
                    recompute_tree_invariant_for_addr_expr
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tk at giga dot or.at
  Target Milestone: ---

When compiling git-2.26.0 with gcc 8.3.0, 8.4.0, or 9.3.0 on NetBSD/amd64 with
-fstack-check, I see (output from 8.4.0):


builtin/rebase.c: In function 'cmd_rebase__interactive':
builtin/rebase.c:473:41: internal compiler error: in
recompute_tree_invariant_for_addr_expr, at tree.c:4487
   { OPTION_CALLBACK, 'k', "keep-empty", &options, NULL,
                                         ^~~~~~~~

I used creduce to get a minimal test case, save the following to rebase.i and
run:
# gcc -o rebase.o -c -fstack-check rebase.i

---- begin ----
int a;
struct b {
  char c;
  void *d;  
};
struct b e() {
  struct b f[] = {{}, "", f, a};
}
---- end ----

I tried running this in 8.3.0 and 9.3.0 on https://godbolt.org/ (where I had to
add -fpermissive for it to compile) but it doesn't seem to trigger the problem
there. So perhaps it's fine on Linux.

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

end of thread, other threads:[~2021-09-11 14:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 19:29 [Bug c/94479] New: NetBSD: internal compiler error: in recompute_tree_invariant_for_addr_expr tk at giga dot or.at
2020-04-06  6:35 ` [Bug target/94479] " rguenth at gcc dot gnu.org
2020-04-06  6:40 ` tk at giga dot or.at
2020-04-06 17:12 ` tk at giga dot or.at
2020-04-07  6:11 ` rguenth at gcc dot gnu.org
2020-04-07  6:29 ` rguenth at gcc dot gnu.org
2020-04-07 13:26 ` tk at giga dot or.at
2020-04-07 14:29 ` rguenth at gcc dot gnu.org
2020-04-07 17:22 ` cvs-commit at gcc dot gnu.org
2020-04-07 17:23 ` rguenth at gcc dot gnu.org
2020-04-08  6:53 ` tk at giga dot or.at
2020-04-08  7:15 ` rguenther at suse dot de
2020-04-16 12:29 ` cvs-commit at gcc dot gnu.org
2021-03-17 10:20 ` cvs-commit at gcc dot gnu.org
2021-03-17 10:20 ` rguenth at gcc dot gnu.org
2021-09-11 14:29 ` pinskia 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).