This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Pass -mtune and -march options to assembler.


On Sun, 2009-05-24 at 23:15 +0200, Richard Guenther wrote:
> >
> > 2009-05-25  Vladimir Volynsky  <vvv@ru.ru>
> >
> >        PR target/40171
> >        * gcc.c (process_command): Pass -mtune and -march
> >        options to the assembler.
> >
> > Ok for trunk?
> 
> No.  This doesn't work for assemblers other than GNU as.

This is just wrong.  The generic code has no business trying to impose
specific interpretations onto -m options -- they're specific to each
back end (even if they are very similar across each back end that
implements them).

Not withstanding the other comments on this thread, the correct way to
pass such options is via the specs options which can be set up through
standard macros in each machine description.

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]