On 21/10/2019 14:59, Christer Solskogen wrote:
Hi!
On ASUS Tinker board, running Armbian (gcc version 8.3.0) -mcpu=native
gives: -mcpu=cortex-a12 instead of -mcpu=cortex-a17 which is what the
SOC (RK3288) really is. At least that is what the documentation is
saying. Is this a known bug or should I report it?
GCC simply looks at the contents of /proc/cpuinfo for this information.
If that says you have a cortex-a12, then that is what GCC will report.
Cortex-a12 and cortex-a17 are essentially the same; I believe some
vendors may have marketed the former under the name of the latter.
GCC treats the two identically, so it wouldn't change your code anyway.
R