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