public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* gold patch committed: Accept -i as synonym for -r
@ 2011-05-16 23:42 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2011-05-16 23:42 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

This patch changes gold's handling of the -i option to match GNU ld's:
to treat -i as a synonym for -r.  Committed to mainline.

Ian


2011-05-16  Ian Lance Taylor  <iant@google.com>

	* options.h (class General_options): Make -i a synonym for -r.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 1070 bytes --]

Index: options.h
===================================================================
RCS file: /cvs/src/src/gold/options.h,v
retrieving revision 1.157
diff -p -u -r1.157 options.h
--- options.h	12 Apr 2011 00:44:48 -0000	1.157
+++ options.h	16 May 2011 23:41:00 -0000
@@ -761,9 +761,6 @@ class General_options
   DEFINE_string(soname, options::ONE_DASH, 'h', NULL,
                 N_("Set shared library name"), N_("FILENAME"));
 
-  DEFINE_bool(i, options::EXACTLY_ONE_DASH, '\0', false,
-	      N_("Ignored"), NULL);
-
   DEFINE_double(hash_bucket_empty_fraction, options::TWO_DASHES, '\0', 0.0,
 		N_("Min fraction of empty buckets in dynamic hash"),
 		N_("FRACTION"));
@@ -896,6 +893,8 @@ class General_options
 
   DEFINE_bool(relocatable, options::EXACTLY_ONE_DASH, 'r', false,
               N_("Generate relocatable output"), NULL);
+  DEFINE_bool_alias(i, relocatable, options::EXACTLY_ONE_DASH, '\0',
+		    N_("Synonym for -r"), NULL, false);
 
   DEFINE_bool(relax, options::TWO_DASHES, '\0', false,
 	      N_("Relax branches on certain targets"), NULL);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-16 23:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-16 23:42 gold patch committed: Accept -i as synonym for -r Ian Lance Taylor

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).