Re: Possibility of adding -march=native to x86

Thomas Gleixner
2007-10-26T09:16:40Z

On Thu, 25 Oct 2007, Michael Lothian wrote:

> Hi
>
> I was wondering if it was possible to add -march=native support to the
> processor options of the new x86 architecture if gcc 4.2 or greater is being
> used.
>
> I'm not suggesting this should be a default at all, merely an extra option
> similar to selecting P4, Athlon or even -Os.
>
> I've manually tried this flag at home with no ill effects.

It works for your specific setup, but it will kill distro compiles as
well as cross compiling.

tglx