[all-commits] [llvm/llvm-project] fe5bab: [Driver][ARM] Warn about -mabi= for assembler input

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Jun 26 12:28:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe5bab537270e21469b8dfe09aae2ec11f1aca7f
      https://github.com/llvm/llvm-project/commit/fe5bab537270e21469b8dfe09aae2ec11f1aca7f
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-06-26 (Mon, 26 Jun 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/ARM.cpp
    M clang/test/Driver/arm-abi.c

  Log Message:
  -----------
  [Driver][ARM] Warn about -mabi= for assembler input

Previously, Clang Driver reported a warning when assembler input was assembled
with the -mabi= option. D152856 added TargetSpecific to -mabi= option and
reported an error for such a case. This change restores the previous behavior by
reporting a warning.

GCC translates -mabi={apcs-gnu,atpcs} to gas -meabi=gnu and other -mabi= values
to -meabi=5. We don't support setting e_flags to any value other than
EF_ARM_EABI_VER5.

Close https://github.com/ClangBuiltLinux/linux/issues/1878

Reviewed By: michaelplatings

Differential Revision: https://reviews.llvm.org/D153691




More information about the All-commits mailing list