Open fxcoudert opened 2 months ago
yeah.. I think that (like PowerPC) the incantation is -mcpu= for AArch64
although, having checked with one of our Arm colleagues, apparently both should work (mcpu is said to be more user-friendly) .. so we need to look at why -march is being missed.
I'm currently chasing the second bootstrap break for Darwin [this week] so it will not be immediate.
A better explanation from said colleague:
using e.g. -march=armv8.2-a+sve will give you "architectural" SVE codegen whereas e.g. -mcpu=neoverse-v1 will give SVE codegen that's better tuned to that core.
So, for our users (who are not, generally, equipped with suitable info to do -march=armv8.4-a+xx+yy+zz), we should be strongly recommending -mcpu=apple-mN.
to allow -march=native to work, if that is a useful thing to do, I guess that means converting the apple-mN into the equivalent "armv8.x-a+...." string.
$ ./gcc/xgcc -Bgcc /source/test/hello.c -mcpu=native -mtune=native works OK AFAICT.
Reported first at https://github.com/fxcoudert/gfortran-for-macOS/issues/65