asb added a comment.
I wonder if it would be safer to change this patch so it adds -mrelax and
-mno-relax but doesn't compile with linker relaxation by default. That makes it
easier to test linker relaxation support, and gives more time for testing
before then flipping to -mrelax as the
shiva0217 added inline comments.
Comment at: lib/Driver/ToolChains/Arch/RISCV.cpp:130
+ // which may override the defaults.
+ handleTargetFeaturesGroup(Args, Features,
options::OPT_m_riscv_Features_Group);
}
kito-cheng wrote:
> This part should move to the
shiva0217 updated this revision to Diff 146737.
shiva0217 added a comment.
Rebase patch to https://reviews.llvm.org/D45465
Repository:
rL LLVM
https://reviews.llvm.org/D44888
Files:
include/clang/Driver/Options.td
lib/Driver/ToolChains/Arch/RISCV.cpp
test/Driver/riscv-features.c
kito-cheng added inline comments.
Comment at: lib/Driver/ToolChains/Arch/RISCV.cpp:130
+ // which may override the defaults.
+ handleTargetFeaturesGroup(Args, Features,
options::OPT_m_riscv_Features_Group);
}
This part should move to the begin of the
shiva0217 added a comment.
In https://reviews.llvm.org/D44888#1068806, @asb wrote:
> Thanks Kito. -mrelax and -mno-relax currently only affect the backend. For
> completeness, I think this patch needs to pass the appropriate flag to the
> linker depending on relax/no-relax.
Hi Alex.
asb requested changes to this revision.
asb added a comment.
This revision now requires changes to proceed.
Thanks Kito. -mrelax and -mno-relax currently only affect the backend. For
completeness, I think this patch needs to pass the appropriate flag to the
linker depending on relax/no-relax.
shiva0217 updated this revision to Diff 142338.
shiva0217 added a comment.
Add help text for -mrelax, -mno-relax flags as Alex's comments.
Repository:
rL LLVM
https://reviews.llvm.org/D44888
Files:
include/clang/Driver/Options.td
lib/Driver/ToolChains/Arch/RISCV.cpp
asb added a comment.
Looks good to me, just missing help text on the command line options.
Repository:
rL LLVM
https://reviews.llvm.org/D44888
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
shiva0217 updated this revision to Diff 141591.
shiva0217 added a comment.
Update patch to address Alex's comments.
Repository:
rL LLVM
https://reviews.llvm.org/D44888
Files:
include/clang/Driver/Options.td
lib/Driver/ToolChains/Arch/RISCV.cpp
test/Driver/riscv-features.c
Index:
asb added a comment.
In https://reviews.llvm.org/D44888#1058257, @asb wrote:
> Could you please add a test? Given that the current version of
> https://reviews.llvm.org/D44886 enables linker relaxation by default in the
> backend, shouldn't -mno-relax cause -relax to be set?
Sorry, I
asb added a comment.
Could you please add a test? Given that the current version of
https://reviews.llvm.org/D44886 enables linker relaxation by default in the
backend, shouldn't -mno-relax cause -relax to be set?
Repository:
rC Clang
https://reviews.llvm.org/D44888
shiva0217 updated this revision to Diff 140038.
shiva0217 retitled this revision from "[RISCV] Default enable linker relaxation
and add -mno-relax flag to disable it" to "[RISCV] Default enable linker
relaxation and add -mrelax, -mno-relax flags".
shiva0217 edited the summary of this revision.
12 matches
Mail list logo