public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "vincenzo.innocente at cern dot ch" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/53780] [l4.7.1 lto] linker fails with lto and "standard" object file
Date: Fri, 29 Jun 2012 15:03:00 -0000	[thread overview]
Message-ID: <bug-53780-4-eii3FaRTCU@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-53780-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53780

--- Comment #8 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2012-06-29 15:03:17 UTC ---
NOT when applied on the top of
gcc version 4.8.0 20120629 (experimental) [trunk revision 189073] (GCC) 
svn diff
Index: gcc/tree.c
===================================================================
--- gcc/tree.c    (revision 189073)
+++ gcc/tree.c    (working copy)
@@ -4910,7 +4910,15 @@
       fld_worklist_push (TYPE_MAIN_VARIANT (t), fld);
       /* Do not walk TYPE_NEXT_VARIANT.  We do not stream it and thus
          do not and want not to reach unused variants this way.  */
-      fld_worklist_push (TYPE_CONTEXT (t), fld);
+      if (TYPE_CONTEXT (t))
+       {
+         tree ctx = TYPE_CONTEXT (t);
+         /* We adjust BLOCK TYPE_CONTEXTs to the innermost non-BLOCK one.
+            So push that instead.  */
+         while (ctx && TREE_CODE (ctx) == BLOCK)
+           ctx = BLOCK_SUPERCONTEXT (ctx);
+         fld_worklist_push (ctx, fld);
+       }
       /* Do not walk TYPE_CANONICAL.  We do not stream it and thus do not
      and want not to reach unused types this way.  */

I'll try also with 4.7

did not manage yet to reproduce with simple examples using sigcpp...


  parent reply	other threads:[~2012-06-29 15:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26 15:23 [Bug lto/53780] New: " vincenzo.innocente at cern dot ch
2012-06-28 12:52 ` [Bug lto/53780] " vincenzo.innocente at cern dot ch
2012-06-29  6:11 ` vincenzo.innocente at cern dot ch
2012-06-29  7:39 ` vincenzo.innocente at cern dot ch
2012-06-29 10:34 ` vincenzo.innocente at cern dot ch
2012-06-29 10:51 ` rguenth at gcc dot gnu.org
2012-06-29 13:20 ` vincenzo.innocente at cern dot ch
2012-06-29 13:46 ` rguenth at gcc dot gnu.org
2012-06-29 15:03 ` vincenzo.innocente at cern dot ch [this message]
2012-06-29 15:31 ` vincenzo.innocente at cern dot ch
2012-06-30 15:24 ` vincenzo.innocente at cern dot ch
2012-10-11 19:10 ` matt at use dot net

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-53780-4-eii3FaRTCU@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: link
Be 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).