[all-commits] [llvm/llvm-project] e3bb35: [clang][Toolchains][Gnu] pass -g through to assembler

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Mon Oct 24 12:31:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e3bb359aacddb5e0266e219f33d27b642089fd53
      https://github.com/llvm/llvm-project/commit/e3bb359aacddb5e0266e219f33d27b642089fd53
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M clang/test/Driver/as-options.s
    M clang/test/Driver/gcc_forward.c

  Log Message:
  -----------
  [clang][Toolchains][Gnu] pass -g through to assembler

We've been working around this for a long time in the Linux kernel; we
bend over backwards to continue to support CC=clang (w/
-fno-integrated-as) for architectures where clang can't yet be used to
assemble the kernel's assembler sources. Supporting debug info for the
combination of CC=clang w/ GNU binutils as "GAS" has been painful.

Fix this in clang so that we can work towards dropping complexity in the
Linux kernel's build system, Kbuild, for supporting this combination of
tools.

GAS added support for -g in 2004 2.16 release via
commit 329e276daf98 ("Add support for a -g switch to GAS")

Reviewed By: MaskRay

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




More information about the All-commits mailing list