public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "steven at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/56950] New: compare-debug failure for gcc.dg/pr41345.c with fschedule-insns Date: Sat, 13 Apr 2013 23:14:00 -0000 [thread overview] Message-ID: <bug-56950-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56950 Bug #: 56950 Summary: compare-debug failure for gcc.dg/pr41345.c with fschedule-insns Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned@gcc.gnu.org ReportedBy: steven@gcc.gnu.org $ cat pr41345.c /* PR bootstrap/41345 */ /* { dg-do compile } */ /* { dg-options "-O2 -g -fcompare-debug" } */ /* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */ void foo (int *x) { int a; for (a = 0; a < 2; a++) if (x[a]) goto lab; __builtin_unreachable (); lab:; } $ ./xgcc -B. -S -O2 -g -fcompare-debug pr41345.c -fschedule-insns xgcc: error: pr41345.c: -fcompare-debug failure (length) $ The problem appears to be an extra NOTE_INSN_DELETED, inserted in the sched1 pass: @@ -42,8 +54,11 @@ ;; exit block uses 6 [bp] 7 [sp] 20 [frame] ;; regs ever live ;; ref usage r0={1d} r1={1d} r2={1d} r4={1d} r5={1d} r6={1d,2u} r7={1d,2u} r16={1d,1u} r20={1d,2u} r21={1d} r22={1d} r23={1d} r24={1d} r25={1d} r26={1d} r27={1d} r28={1d} r37={1d} r38={1d} -;; total ref usage 26{19d,7u,0e} in 0{0 regular + 0 call} insns. +;; total ref usage 26{19d,7u,0e} in 1{1 regular + 0 call} insns. (note 1 0 4 NOTE_INSN_DELETED) (note 4 1 3 2 [bb 2] NOTE_INSN_BASIC_BLOCK) -(note 3 4 10 2 NOTE_INSN_FUNCTION_BEG) -(note 10 3 0 ("lab") NOTE_INSN_DELETED_LABEL 2) +(note 3 4 7 2 NOTE_INSN_FUNCTION_BEG) +(debug_insn 7 3 18 2 (var_location:SI a (const_int 0 [0])) -1 + (nil)) +(note 18 7 14 NOTE_INSN_DELETED) +(note 14 18 0 ("lab") NOTE_INSN_DELETED_LABEL 2) The note 18 comes from haifa-sched.c:sched_extend_bb.
next reply other threads:[~2013-04-13 23:14 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-04-13 23:14 steven at gcc dot gnu.org [this message] 2013-04-13 23:15 ` [Bug debug/56950] " steven at gcc dot gnu.org 2013-04-14 19:30 ` steven at gcc dot gnu.org 2013-05-17 22:39 ` steven at gcc dot gnu.org 2013-05-20 13:16 ` steven at gcc dot gnu.org 2013-05-20 13:31 ` jakub at gcc dot gnu.org 2013-05-20 13:44 ` stevenb.gcc at gmail dot com 2013-05-20 14:02 ` jakub at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-56950-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).