This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Pass -mtune and -march options to assembler.
Jakub Jelinek wrote:
> Note that -march=foo without any -mtune= implies -mtune=, so either
> the assembler needs to be passed -march= too (provided that -march=foo
> and no -mtune= for as implies -mtune=foo), or the spec changes would need to
> be smarter. Also I believe you'd need configure to check for what
> -mtune= arguments to as are accepted.
I'm sorry; I don't understand this point. Or, rather, I don't
understand in which direction it argues. :-)
My claim is that the compiler should communicate all these kinds of
these things to the assembler via the assembly file, since that provides
a stable communication channel if the assembly file is assembled
separately. (One trivial way to do that would be to have an assembly
file directive that communicated whatever arguments you'd otherwise pass
to the assembler on the command line.)
(650) 331-3385 x713