This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Pass -mtune and -march options to assembler.
Valdimir Volynsky wrote:
> Paul Brook <paul@codesourcery.com> wrote:
>> Having assembler behavior depend on the contents of a comment sounds
>> like a truly terrible idea to me.
>
> Comments used by GCC for change assembler behavior.
Yes, there is some precedent for passing information via comments.
But, a .tune option would be much cleaner. In general, with GCC, you
have to tell it at configure-time whether you are using a GNU assembler
by using --with-gnu-as or --without-gnu-as. Unless we're going to try
to redo everything that keys off of that to use comments instead,
there's not much point in doing it just here.
What optimization is the assembler doing? In general, we want the
compiler doing the optimization; c.f., MIPS.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713