This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: About passing -mtune and -march options from GCC to AS
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Valdimir Volynsky <vvv at ru dot ru>
- Cc: binutils at sourceware dot org
- Date: Wed, 27 May 2009 01:45:11 +0100
- Subject: Re: About passing -mtune and -march options from GCC to AS
- References: <web-659858022@zbackend1.aha.ru>
Valdimir Volynsky wrote:
> Please, read this thread
> http://gcc.gnu.org/ml/gcc-patches/2009-05/threads.html#01556
> What's your opinion?
>
> Ðheers,
> Vladimir
To sum up the discussion a bit for those who don't want to follow the link,
the question is how to communicate the options like -march and -mtune to the
assembler, without breaking anything if it turns out not to be GAS. The ideas
suggested have included an environment variable (which as I understand it we
are trying to avoid as a general matter of policy), adding a magic comment or
ident string that GAS could recognize and other assemblers ignore, or deciding
whether or not to do so based on the outcome of autoconf tests and
--with-(gnu-)as at configure time. Arguments for or against any particular
style of doing it, or new and better suggestions, would be eagerly received.
cheers,
DaveK