[Bug target/67310] [PATCH] gcc 4.8.4 fails to compile with -march=native on VIA nano CPU

jol_indien at yahoo dot fr gcc-bugzilla@gcc.gnu.org
Wed Jun 1 09:58:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67310

--- Comment #11 from jol_indien at yahoo dot fr ---
Created attachment 38618
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38618&action=edit
patch to properly detect VIA nano CPU + add Nano / Eden x2/x4 families arch
keywords

This patch is more invasive but allows the detection of all x86_64 VIA CPUs via
-march=native or dedicated new arch keywords.
Added CPUs are:
* Eden dual-core (aka eden-x2)
* Eden quad-core (aka eden-x4)
* generic Nano (aka nano)
* Nano 1xxx series (aka nano-1000)
* Nano 2xxx series (aka nano-2000)
* Nano 3xxx series (aka nano-3000)
* Nano dual-core (aka nano-x2)
* Nano quad-core (aka nano-x4)
This might be a first step before adding full support for those CPUs (ie
scheduling infos, ...).

Beware that this patch has only been tested on a Nano U2250 processor;
furthermore, it _does not_ detect properly C7 and Eden 32 bits CPUs (aka Samuel
2, Nehemiah and Esther).

Feel free to adapt it to your own style; or I can try to merge it with the
latest proposed patch.


More information about the Gcc-bugs mailing list