These two options enable/disable emission of R_{MICRO}MIPS_JALR fixups along
with PIC calls. The linker may then try to turn PIC calls into direct jumps.
By default, these fixups do get emitted by the backend, use
'-mno-relax-pic-calls' to omit them.
Details
Details
- Reviewers
atanasyan - Commits
- rGb7988f706e22: Merging r351579: --------------------------------------------------------------…
rG99113a0ccf3d: [mips] Add '-mrelax-pic-calls', '-mno-relax-pic-calls'
rL352139: Merging r351579:
rC351579: [mips] Add '-mrelax-pic-calls', '-mno-relax-pic-calls'
rL351579: [mips] Add '-mrelax-pic-calls', '-mno-relax-pic-calls'
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM with a nit.
lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
1720 ↗ | (On Diff #182397) | It's not necessary to call the MakeArgString here. You can write just CmdArgs.push_back("-mips-jalr-reloc=0");. |
cfe/trunk/include/clang/Driver/Options.td | ||
---|---|---|
2423 | I think this help text could be a little better. Instead of implying that the compiler could turn PIC calls into direct calls, something like "Produce relaxation hints for linkers to try optimizing PIC call sequences into direct calls", I believe describes the optimization better. Likewise in the negative sense for the -mno-relax-pic-calls. |
cfe/trunk/include/clang/Driver/Options.td | ||
---|---|---|
2423 | Hi Simon, I'll replace the text with your version, it's better indeed. Thanks. |
I think this help text could be a little better. Instead of implying that the compiler could turn PIC calls into direct calls, something like "Produce relaxation hints for linkers to try optimizing PIC call sequences into direct calls", I believe describes the optimization better. Likewise in the negative sense for the -mno-relax-pic-calls.