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

Jakub Jelinek jakub@redhat.com
Fri Jun 5 15:45:00 GMT 2009


On Fri, Jun 05, 2009 at 08:39:23AM -0700, Mark Mitchell wrote:
> We also want:
> 
>   gcc -mtune=foo -S blah.c
>   as -o blah.o blah.s
> 
> to behave like:
> 
>   gcc -c -mtune=foo blah.c
> 
> because, in practice, assembly files float away from the compiler for a
> while, and then get assembled later.

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.

	Jakub



More information about the Gcc-patches mailing list