public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/63186] New: [4.9/5 Regression] Undefined .L* symbols because of fnsplit
@ 2014-09-05 13:19 jakub at gcc dot gnu.org
  2014-09-05 21:39 ` [Bug middle-end/63186] " jakub at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-09-05 13:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63186
           Summary: [4.9/5 Regression] Undefined .L* symbols because of
                    fnsplit
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
                CC: hubicka at gcc dot gnu.org

Starting with r202185 the following testcase is compiled with undefined .L*
symbols at -O2:

void *a;
int b, c, d;

void
bar ()
{
  switch (c)
    {
    case 0:
    lab:
      __asm__ ("");
      return;
    default:
      break;
    }
  b = 0;
  d = 0;
  a = &&lab;
}

void
foo ()
{
  bar ();
}

The problem is that find_split_points (visit_bb, something else?) doesn't
consider GIMPLE_LABEL stmts with FORCED_LABEL.  Either blocks with such labels
should be immediately marked as inappropriate to stay in the caller part (i.e.
non-fn.part.N), or we need to analyze whether nothing that would be moved to
the fn.part.N function references labels that stay in fn.  Perhaps the other
direction can be a problem too.  Honza, can you please have a look?


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

end of thread, other threads:[~2014-10-03  7:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-05 13:19 [Bug middle-end/63186] New: [4.9/5 Regression] Undefined .L* symbols because of fnsplit jakub at gcc dot gnu.org
2014-09-05 21:39 ` [Bug middle-end/63186] " jakub at gcc dot gnu.org
2014-09-08  0:35 ` hubicka at gcc dot gnu.org
2014-09-08  4:21 ` andi-gcc at firstfloor dot org
2014-09-08  9:06 ` rguenth at gcc dot gnu.org
2014-09-11  6:47 ` hubicka at gcc dot gnu.org
2014-09-19  9:25 ` dan at danny dot cz
2014-09-19 21:41 ` hubicka at gcc dot gnu.org
2014-09-19 22:50 ` [Bug middle-end/63186] [4.9 " hubicka at gcc dot gnu.org
2014-10-01 14:42 ` jakub at gcc dot gnu.org
2014-10-03  7:37 ` hubicka 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).