public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/61635] New: LTO partitioner does not handle &&label in statics
@ 2014-06-27 21:26 andi-gcc at firstfloor dot org
  2014-06-27 23:04 ` [Bug lto/61635] " hubicka at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: andi-gcc at firstfloor dot org @ 2014-06-27 21:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61635
           Summary: LTO partitioner does not handle &&label in statics
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andi-gcc at firstfloor dot org

I currently don't have a small compilable test case, except a build tree from a
large project. But what happened was code like this

f()
{
   static void *addr[] = {
          &&label1,
          &&label2, 
          ..
   };
   /* labels defined in the code */
}

The LTO partitioner would put addr into a different ltrans unit than f.
But the assembler output of addr contains direct references to the code labels
in the assembler of f.

This results in lots of assembler errors for undefined labels.


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

end of thread, other threads:[~2015-03-30  7:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-27 21:26 [Bug lto/61635] New: LTO partitioner does not handle &&label in statics andi-gcc at firstfloor dot org
2014-06-27 23:04 ` [Bug lto/61635] " hubicka at gcc dot gnu.org
2014-06-28  1:16 ` andi at firstfloor dot org
2014-06-28  6:33 ` hubicka at ucw dot cz
2014-06-28 15:51 ` andi-gcc at firstfloor dot org
2014-06-28 15:57 ` andi-gcc at firstfloor dot org
2014-06-28 21:55 ` hubicka at ucw dot cz
2015-03-29 19:57 ` andi-gcc at firstfloor dot org
2015-03-30  7:09 ` hubicka at gcc dot gnu.org
2015-03-30  7:24 ` hubicka at ucw dot cz
2015-03-30  8:23 ` 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).