This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gas: Add --with-optimization=OPTION
- From: Joseph Myers <joseph at codesourcery dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Mon, 26 Feb 2018 18:47:01 +0000
- Subject: Re: [PATCH] gas: Add --with-optimization=OPTION
- Authentication-results: sourceware.org; auth=none
- References: <20180226113453.GA5908@gmail.com> <alpine.DEB.2.20.1802261831320.23835@digraph.polyomino.org.uk> <CAMe9rOoV54cxhqu7tTRcrC6spf-1O4cjBHn9=0nUgDdMu5odoA@mail.gmail.com>
On Mon, 26 Feb 2018, H.J. Lu wrote:
> On Mon, Feb 26, 2018 at 10:33 AM, Joseph Myers <joseph@codesourcery.com> wrote:
> > On Mon, 26 Feb 2018, H.J. Lu wrote:
> >
> >> 1. Add --with-optimization=OPTION configure option for x86 gas. This
> >> allows the default optimization type to be adjusted at configure time.
> >
> > I don't think such a configure option is appropriate. It's far outside
> > the standard definition of either --enable or --with options.
> > Command-line options and assembler directives should be fully sufficient
> > without any such configure option, especially given that the assembler is
>
> So it is OK to enable encoding optimization by default. But it is inappropriate
> to control it at configure time.
Correct. --enable and --with options are deliberately limited in the GNU
Coding Standards to controlling support for optional features and how the
package works with something external. This is neither of those; it's not
even close to either of those. So the assembler should have a sensible
default choice (in the absence of command-line options or directives to
override that at runtime), meaning there is a consistent message for users
about what versions of the assembler do what, without variation depending
on configure options.
--
Joseph S. Myers
joseph@codesourcery.com