[PATCH] D102535: [RISCV] -mno-relax: emit .option norelax

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 19 13:42:30 PDT 2021


jrtc27 added a comment.

In D102535#2769528 <https://reviews.llvm.org/D102535#2769528>, @compnerd wrote:

> If the user is passing along `-mno-relax` encoding that in the object file isn't expensive, and it doesn't harm anything.  In fact, the user _could_ at a later point pass in `-mrelax` to the assembler to override the beahviour (with a warning).  But what @raj.khem states about the non-IAS case should hold - `-mno-relax` should get passed along to the assembler along with the hint in the object file.

`.option norelax` overrides -mrelax, just like any other assembler directive.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102535



More information about the llvm-commits mailing list