From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15232 invoked by alias); 16 May 2011 23:42:32 -0000 Received: (qmail 15203 invoked by uid 22791); 16 May 2011 23:42:31 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 16 May 2011 23:42:10 +0000 Received: from hpaq13.eem.corp.google.com (hpaq13.eem.corp.google.com [172.25.149.13]) by smtp-out.google.com with ESMTP id p4GNg8PI000325 for ; Mon, 16 May 2011 16:42:09 -0700 Received: from pzk10 (pzk10.prod.google.com [10.243.19.138]) by hpaq13.eem.corp.google.com with ESMTP id p4GNg5Jk015803 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 16 May 2011 16:42:07 -0700 Received: by pzk10 with SMTP id 10so3620355pzk.7 for ; Mon, 16 May 2011 16:42:05 -0700 (PDT) Received: by 10.68.60.164 with SMTP id i4mr19252pbr.0.1305589325504; Mon, 16 May 2011 16:42:05 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id c10sm3589520pbd.87.2011.05.16.16.42.04 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 May 2011 16:42:05 -0700 (PDT) From: Ian Lance Taylor To: binutils@sourceware.org Subject: gold patch committed: Accept -i as synonym for -r Date: Mon, 16 May 2011 23:42:00 -0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00229.txt.bz2 --=-=-= Content-length: 250 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 * options.h (class General_options): Make -i a synonym for -r. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=foo.patch Content-Description: patch Content-length: 1070 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); --=-=-=--