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

            Bug ID: 70133
           Summary: AArch64 -mtune=native generates improperly formatted
                    -march parameters
           Product: gcc
           Version: 5.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: davidwillmore at gmail dot com
  Target Milestone: ---

Created attachment 37893
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37893&action=edit
compiler build info and execution host info

On an ODROID C2 board (Amlogic S905 processor) which has Cortex-A53 cores with
the following CPU Features (found in /proc/cpuinfo) "fp asimd crc32",
-mtune=native expands to -march=armv8-a+fp+simd+nocrypto+crc+nolse which causes
gcc to emit the error:
Assembler messages:
Error: must specify extensions to add before specifying those to remove
Error: unrecognized option -march=armv8-a+fp+simd+nocrypto+crc+nolse

If the same build is attempted with "-mtune=native" replaced by
"-march=armv8-a+fp+simd+crc+nocrypto+nolse" the compile succeeds as expected.

Reply via email to