[Bug target/80389] New: [7 Regression][ARM] -march=armv8-a and -mcpu=cortex-a57 results in invalid .cpu assembly directive

ktkachov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 11 09:55:00 GMT 2017


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

            Bug ID: 80389
           Summary: [7 Regression][ARM]  -march=armv8-a and
                    -mcpu=cortex-a57 results in invalid .cpu assembly
                    directive
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: assemble-failure
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org
                CC: rearnsha at gcc dot gnu.org
  Target Milestone: ---
            Target: arm

Compiling a file (any file) for arm-none-linux-gnueabihf with both
-march=armv8-a and -mcpu=cortex-a57 on the command line results in:
test.s: Assembler messages:
test.s:1: Error: unknown cpu `armv8-a'
We end up emitting a:
        .cpu armv8-a

in the assembly instead of:
        .arch armv8-a
or
        .cpu cortex-a57

Probably to related to some of the target options rewrite stuff in GCC 7


More information about the Gcc-bugs mailing list