[PATCH] D145726: Fix assembler error when -g and -gdwarf-* is passed with -fno-integrated-as.

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 13 11:55:01 PDT 2023


efriedma added a comment.

In D145726#4190341 <https://reviews.llvm.org/D145726#4190341>, @garvitgupta08 wrote:

> In D145726#4190316 <https://reviews.llvm.org/D145726#4190316>, @nickdesaulniers wrote:
>
>> Isn't this only an issue with ancient versions of GNU as? Older than 2.16?
>
> I am able to reproduce this issue with 4.9.0 GNU as.

binutils has a separate version from gcc.

Tried the following file with binutils on godbolt; apparently binutils 2.34 and earlier reject, binutils 2.36 and later accept. So we're not talking about the most recent binutils, but 2.34 isn't exactly ancient.

  nop
  .file 1 "asdf"


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145726/new/

https://reviews.llvm.org/D145726



More information about the cfe-commits mailing list