You are not logged in.
As default in makepkg.conf, I see:
CFLAGS="-march=x86-64 ...Yet on:
https://gcc.gnu.org/onlinedocs/gcc-4.9. … 64-Options
I don't see that as being an accepted value. Has this changed in a recent gcc version, meaning gcc is probably just ignoring it?
A quick google suggests it could be "equivalent" to -march=k8
...but the asm produced from a very simple c program differs between them, so that's not the case
EDIT: ...as march sets mtune unless told otherwise... it was tuning for k8. tuned both for the same cpu and the output is the same, so it does seem to translate to march=k8
I still wonder why it's not on the gcc documentation page though
Last edited by stevenhoneyman (2014-08-16 14:07:56)
My: [ GitHub | AUR Packages ]
Offline
Use march=native for your own purposes... you just can't use the packages on other machines unless identical processors.
CFLAGS="-march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
CXXFLAGS="${CFLAGS}"Offline
Thanks, but yes, they're to share amongst my machines or I would use native - none of them have anything older than a 2nd gen Core i5... but I wouldn't want stuff not to run on a "relatively new" processor either (including AMD).
No reason for me to support legacy/ancient CPUs, so I'm thinking
-march=nocona -mtune=haswellis probably my best bet?
My: [ GitHub | AUR Packages ]
Offline
No. If they are all different use the default.
Offline
You really should just stick with the `native` options`, it's a lot less work and you rarely get any benefit from specifying.
Offline
You really should just stick with the `native` options`, it's a lot less work and you rarely get any benefit from specifying.
Why would I use native when I need to support some other processors?
My: [ GitHub | AUR Packages ]
Offline
Napaim wrote:You really should just stick with the `native` options`, it's a lot less work and you rarely get any benefit from specifying.
Why would I use native when I need to support some other processors?
Ummm....
you just can't use the packages on other machines unless identical processors.
Offline
Offline
My bad... I read it as the exact opposite ![]()
Offline