From: Rafael Espindola <espindola@google.com>
To: Hans-Peter Nilsson <hp@bitrange.com>,
Ian Lance Taylor <iant@google.com>,
Steven Bosscher <stevenb.gcc@gmail.com>,
Rafael Espindola <espindola@google.com>,
gcc@gcc.gnu.org
Subject: Re: -use-linker-plugin passed to ld
Date: Tue, 27 Oct 2009 15:55:00 -0000 [thread overview]
Message-ID: <38a0d8450910270849v1235cba5pec5b8aed0e856d11@mail.gmail.com> (raw)
In-Reply-To: <20091026233459.GA5459@caradoc.them.org>
[-- Attachment #1: Type: text/plain, Size: 263 bytes --]
> I agree with H-P.
The attached patch implements that. Tested that it is ignored by cc1
and not passed to the linker. OK with a CL entry if bootstrap finishes
OK?
> --
> Daniel Jacobowitz
> CodeSourcery
>
Cheers,
--
Rafael Ávila de Espíndola
[-- Attachment #2: fuse-linker-plugin.patch --]
[-- Type: text/x-diff, Size: 2112 bytes --]
diff --git a/gcc/common.opt b/gcc/common.opt
index b57234a..9e4cf12 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -1391,6 +1391,11 @@ funwind-tables
Common Report Var(flag_unwind_tables) Optimization
Just generate unwind tables for exception handling
+fuse-linker-plugin
+Common Var(flag_use_linker_plugin)
+Ignored. Is is used by the driver, but passed to the compiler because it starts
+with an f.
+
fvar-tracking
Common Report Var(flag_var_tracking) VarExists Optimization
Perform variable tracking
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 78e0ce8..b033d62 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -770,7 +770,7 @@ proper position among the other output files. */
#define LINK_COMMAND_SPEC "\
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
%(linker) \
- %{use-linker-plugin: \
+ %{fuse-linker-plugin: \
-plugin %(linker_plugin_file) \
-plugin-opt=%(lto_wrapper) \
-plugin-opt=%(lto_gcc) \
@@ -7513,7 +7513,7 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
if (num_linker_inputs > 0 && error_count == 0 && print_subprocess_help < 2)
{
int tmp = execution_count;
- const char *use_linker_plugin = "use-linker-plugin";
+ const char *fuse_linker_plugin = "fuse-linker-plugin";
/* We'll use ld if we can't find collect2. */
if (! strcmp (linker_name_spec, "collect2"))
@@ -7523,14 +7523,14 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
linker_name_spec = "ld";
}
- if (switch_matches (use_linker_plugin,
- use_linker_plugin + strlen (use_linker_plugin), 0))
+ if (switch_matches (fuse_linker_plugin,
+ fuse_linker_plugin + strlen (fuse_linker_plugin), 0))
{
linker_plugin_file_spec = find_a_file (&exec_prefixes,
"liblto_plugin.so", X_OK,
false);
if (!linker_plugin_file_spec)
- fatal ("-use-linker-plugin, but liblto_plugin.so not found");
+ fatal ("-fuse-linker-plugin, but liblto_plugin.so not found");
lto_libgcc_spec = find_a_file (&startfile_prefixes, "libgcc.a",
R_OK, true);
next prev parent reply other threads:[~2009-10-27 15:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 15:02 Ian Lance Taylor
2009-10-23 15:45 ` Rafael Espindola
2009-10-23 16:49 ` Rafael Espindola
2009-10-23 18:45 ` Ian Lance Taylor
2009-10-23 19:00 ` Steven Bosscher
2009-10-23 19:07 ` Ian Lance Taylor
2009-10-24 4:26 ` Rafael Espindola
2009-10-26 23:27 ` Hans-Peter Nilsson
2009-10-27 6:09 ` Daniel Jacobowitz
2009-10-27 15:55 ` Rafael Espindola [this message]
2009-10-27 16:45 ` Andreas Schwab
2009-10-27 17:01 ` Ian Lance Taylor
2009-10-27 17:22 ` Rafael Espindola
2009-10-27 17:24 ` Rafael Espindola
2009-10-27 19:50 ` Ian Lance Taylor
2009-10-27 18:23 ` Andrew Pinski
2009-10-27 18:54 ` Rafael Espindola
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=38a0d8450910270849v1235cba5pec5b8aed0e856d11@mail.gmail.com \
--to=espindola@google.com \
--cc=gcc@gcc.gnu.org \
--cc=hp@bitrange.com \
--cc=iant@google.com \
--cc=stevenb.gcc@gmail.com \
/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).