I did a build of gsl-1.15 using gcc.exe (tdm64-1) 4.6.1 under MSYS, and I used
the following command line for configure:
./configure CFLAGS="-g -O2 -march=native -fexceptions"
--prefix=/c/gsl-1.15_64_-g_O2 &> gsl-1.15_configure.out
I was hoping that gcc would recognize my Intel Core i5-2410M Processor and
optimize the gsl code accordingly.
Yet the config.log has the following line in the "Platform" section display:
uname -m = i686
According to Wikipedia, "i686" maps to its "P6 (microarchitecture)" article,
which says, "The P6 microarchitecture is the sixth generation Intel x86
microarchitecture." Apparently, that's a 32-bit Pentium architecture, as I
understand it.
That does not sound anything like an i5, 64-bit processor with all its extended
instruction set.
So I am wondering whether the gsl build overrode my specification of
"-march=native" or whether this 64-bit version of gcc I used just cannot
recognize, and/or do an optimized build for, an Intel Core i5-2410M Processor,
not even just a generic x86-64 processor.
Does anyone know the answer to this?
Or is gsl's config.log file just plain wrong about the target code?