[all-commits] [llvm/llvm-project] b1b1f3: [Driver] Don't default to DWARF 2 on Solaris

rorth via All-commits all-commits at lists.llvm.org
Fri Sep 1 11:33:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1b1f364d63382637fa5f64871ee06bf74bd0405
      https://github.com/llvm/llvm-project/commit/b1b1f364d63382637fa5f64871ee06bf74bd0405
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2023-09-01 (Fri, 01 Sep 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Solaris.h
    M clang/test/CodeGen/dwarf-version.c
    M clang/test/Driver/clang-g-opts.c
    M clang/test/Driver/debug-options.c

  Log Message:
  -----------
  [Driver] Don't default to DWARF 2 on Solaris

`clang` currently defaults to DWARF 2 on Solaris.  This dates back to LLVM
3.8.0.  I suspect this is related to `gcc/config/sol2.cc`
(`solaris_override_options`) doing the same unless
`HAVE_LD_EH_FRAME_CIEV3`.  The latter is 1 on both Solaris 11.3 and 11.4,
so the workaround has become irrelevant these days.

This patch removes the Solaris override, adjusting affected testcases
accordingly.

Tested on `amd64-pc-solaris2.11` (`Release` and `Debug` builds) and
`sparcv9-sun-solaris2.11` (`Release` build).

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




More information about the All-commits mailing list