Re: Bad option: -march=native on gcc 4.2.1?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matt Fago <fago@xxxxxxxxxxxxx> writes:

> I've built and installed gcc 4.2.1 on a MacBook Pro.
> 
> This works:
> /usr/local/bin/gcc -O3 -mtune=native -c Weapon.c
> 
> This does not:
> /usr/local/bin/gcc -march=native Weapon.c -c -O3
> Weapon.c:1: error: bad value (native) for -march= switch
> Weapon.c:1: error: bad value (native) for -mtune= switch
> 
> 
> gcc -v yields:
> Using built-in specs.
> Target: i386-apple-darwin8.10.1
> Configured with: ../gcc-4.2.1/configure --disable-checking --enable-
> languages=c,c++,fortran --with-arch=nocona
> Thread model: posix
> gcc version 4.2.1
> 
> Have I misunderstood something here, or is this some wierd bug?

This is some weird bug.  It should work as you expect.  It does work
in my testing on GNU/Linux.

Try using the -v option when you compile.  It should show how
-march=native is transformed when the gcc driver invokes the compiler
proper.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux