[all-commits] [llvm/llvm-project] d479b2: [ELF] Fix precedence of == and != in expressions

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Jun 25 13:47:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d479b2e4db62f527e2bcdaa601f9d195cf4b7df0
      https://github.com/llvm/llvm-project/commit/d479b2e4db62f527e2bcdaa601f9d195cf4b7df0
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-06-25 (Sat, 25 Jun 2022)

  Changed paths:
    M lld/ELF/ScriptParser.cpp
    M lld/test/ELF/linkerscript/operators.test

  Log Message:
  -----------
  [ELF] Fix precedence of == and != in expressions

In GNU ld, the == and != operators have lower precedence than < > <= >=.
This behavior matches C.




More information about the All-commits mailing list