public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95229] New: ice in mark_jump_label_1
@ 2020-05-20  8:16 dcb314 at hotmail dot com
  2020-05-20  8:37 ` [Bug middle-end/95229] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: dcb314 at hotmail dot com @ 2020-05-20  8:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95229
           Summary: ice in mark_jump_label_1
           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++ code:

struct a {
  unsigned long b;
  unsigned long c;
};
class {
public:
  a d;
} e;
struct f {
  unsigned g;
  unsigned h;
  int i();
};
int f::i() {
  e.d.b += g;
  e.d.c += h;
}

compiled with recent gcc trunk and compiler flag -O3 -march=native,
I get

$ /home/dcb/gcc/results/bin/gcc -c -O3 -march=native bug609.cc
bug609.cc: In member function ‘int f::i()’:
bug609.cc:17:1: warning: no return statement in function returning non-void
[-Wreturn-type]
   17 | }
      | ^
during RTL pass: expand
bug609.cc:17:1: internal compiler error: Segmentation fault
0xf4bbb9 crash_signal(int)
        ../../trunk.git/gcc/toplev.c:328
0xd5878a mark_jump_label_1(rtx_def*, rtx_insn*, bool, bool)
        ../../trunk.git/gcc/jump.c:1087
0xd588b0 mark_jump_label_1(rtx_def*, rtx_insn*, bool, bool)
        ../../trunk.git/gcc/jump.c:1211
0xd588b0 mark_jump_label_1(rtx_def*, rtx_insn*, bool, bool)
        ../../trunk.git/gcc/jump.c:1211

The bug first seems to occur on today's gcc. Yesterdays seems fine:

/home/dcb/gcc/results.20200519/bin/gcc
/home/dcb/gcc/results.20200520/bin/gcc
during RTL pass: expand
...

Native is x86_64, AMD FX(tm)-8350, Piledriver, bdver2.

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

end of thread, other threads:[~2020-05-21 18:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20  8:16 [Bug c++/95229] New: ice in mark_jump_label_1 dcb314 at hotmail dot com
2020-05-20  8:37 ` [Bug middle-end/95229] " pinskia at gcc dot gnu.org
2020-05-20  8:41 ` dcb314 at hotmail dot com
2020-05-20  8:50 ` marxin at gcc dot gnu.org
2020-05-20  8:51 ` [Bug middle-end/95229] [11 Regression] " marxin at gcc dot gnu.org
2020-05-20 12:13 ` [Bug target/95229] " rguenth at gcc dot gnu.org
2020-05-20 12:20 ` rguenth at gcc dot gnu.org
2020-05-20 12:24 ` rguenth at gcc dot gnu.org
2020-05-20 13:28 ` ubizjak at gmail dot com
2020-05-20 17:01 ` cvs-commit at gcc dot gnu.org
2020-05-21 12:21 ` cvs-commit at gcc dot gnu.org
2020-05-21 18:17 ` ubizjak at gmail dot com

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).