The GAS assembler implicitly converts near->far branches#83
The GAS assembler implicitly converts near->far branches#83kito-cheng merged 1 commit intoriscv-non-isa:masterfrom
Conversation
This wasn't written down anywhere, but I'm pretty sure we've been doing it since the original port and at least GCC depends on it. Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
|
I would search for that information in the RISC-V Toolchain Conventions, but since that document references the RISC-V Asm Manual in the Assembler behavior section, this PR is fine. @kito-cheng, any opinion? If not, I'll merge this PR later this week. |
kito-cheng
left a comment
There was a problem hiding this comment.
Generally LGTM, but I would like to add some word to mention some compiler e.g. LLVM isn't support that...although the patch for that is restart the discussion recently, but so far all clang/llvm release isn't support that feature.
|
Thanks for adding the necessary context! Here is a summary of the situation:
We can set a deadline until someone can bring up a better solution. But given people repeatedly (every year) stumble into this undocumented and unexpected behavior, we should solve it this time while everyone's attention is raised. |
|
Is there overlap between @palmer-dabbelt 's PR and this one I filed a few years ago? #58 |
Looks like it's doing the same thing, just with different words. |
|
LLVM support this as well on LLVM 16, so let merge! Ref: |
This wasn't written down anywhere, but I'm pretty sure we've been doing it since the original port and at least GCC depends on it.
Signed-off-by: Palmer Dabbelt palmer@rivosinc.com