https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87171
Bug ID: 87171 Summary: -march=native doesn't detect flags correctly on G4560 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: luz at mujerlibre dot net Target Milestone: --- -march=native on G4560 disables certain flags that appear in /proc/cpuinfo and are enabled with -march=goldmont. The goldmont builds run fine so it appears that those flags should be enabled with -march=native. -march=native: -mxsave [disabled] -mxsavec [disabled] -mxsaveopt [disabled] -mxsaves [disabled] -march=goldmont: -mxsave [enabled] -mxsavec [enabled] -mxsaveopt [enabled] -mxsaves [enabled] /proc/cpuinfo: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust smep erms invpcid mpx rdseed smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp