[all-commits] [llvm/llvm-project] 742040: [MC] Properly report errors for .subsection

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jun 14 23:57:17 PDT 2023


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

  Changed paths:
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/test/MC/ELF/subsection.s

  Log Message:
  -----------
  [MC] Properly report errors for .subsection

For the out-of-range error, MCConstantExpr doesn't have a location, so we
can only show "<unknown>:0:".

Also, allow subsection numbers up to 2147483647, which is the maximum value GNU
assembler supports. (GNU assembler also supports negative numbers.)




More information about the All-commits mailing list