public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hubicka at ucw dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/47188] Undefined reference errors when combining IR and non-IR object files
Date: Thu, 06 Jan 2011 14:07:00 -0000	[thread overview]
Message-ID: <bug-47188-4-zzkbdW8Vuc@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-47188-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> 2011-01-06 13:44:09 UTC ---
The problem is that collect2 should be in LTO_MODE_NONE when plugin is used but
it confuses itself and sets itself into LTO_MODE_LTO. Consequently compilation
is done twice, once correctly with plugin and then once again with collect2
path. 

I am testing the attached patch.  It will also make non-WHOPR mode twice as
fast ;))

Honza

Index: collect2.c
===================================================================
--- collect2.c    (revision 168508)
+++ collect2.c    (working copy)
@@ -1236,7 +1236,7 @@ main (int argc, char **argv)
 #endif
       }
     vflag = debug;
-    if (no_partition)
+    if (no_partition && lto_mode == LTO_MODE_WHOPR)
       lto_mode = LTO_MODE_LTO;
   }


  parent reply	other threads:[~2011-01-06 13:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-06 13:15 [Bug lto/47188] New: " d.g.gorbachev at gmail dot com
2011-01-06 13:28 ` Jan Hubicka
2011-01-06 13:31 ` [Bug lto/47188] " hubicka at ucw dot cz
2011-01-06 13:44   ` Jan Hubicka
2011-01-06 14:04   ` Jan Hubicka
2011-01-06 13:44 ` hubicka at ucw dot cz
2011-01-06 14:07 ` hubicka at ucw dot cz [this message]
2011-01-06 14:50 ` d.g.gorbachev at gmail dot com
2011-01-06 18:55 ` hubicka at gcc dot gnu.org
2011-01-11 12:15 ` rguenth 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-47188-4-zzkbdW8Vuc@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).