[all-commits] [llvm/llvm-project] 89d71c: [Driver] Reject AIX-specific link options on non-A...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri May 26 15:30:36 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89d71c1efa85656b54bcd79b4278bc67690480e1
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/Driver/Xlinker-args.c
    A clang/test/Driver/aix-link-options-on-non-aix.c
    R clang/test/Driver/unsupported-target-K.c

  Log Message:
  [Driver] Reject AIX-specific link options on non-AIX targets

Follow-up to D106688 and D146431.

-b leads to a -Wunused-command-line-argument warning instead of an error
without linking phase.
-mxcoff-build-id= leads to a -Wunused-command-line-argument warning instead of
an error.

More information about the All-commits mailing list