[PATCH] D57497: [RISCV] Passing -G value to RISCV backend

2019-02-02 Thread Ana Pazos via Phabricator via cfe-commits
apazos added a comment. Hi Shiva, I think you need to check for and pass along the -G option to the linker (gnutools::Linker and RISCV::Linker) and will be available for LTO. Check Hexagon, it passes the threshold value to the assembler (via -gpsize) and linker (via -G). Repository: rC Cl

[PATCH] D57497: [RISCV] Passing -G value to RISCV backend

2019-01-31 Thread Shiva Chen via Phabricator via cfe-commits
shiva0217 added a comment. Herald added a project: clang. In D57497#1378511 , @simoncook wrote: > As this mllvm option only affects the creation of ELF objects, do we also > need to add a similar option for the LTO case, as the -G value would have no > e

[PATCH] D57497: [RISCV] Passing -G value to RISCV backend

2019-01-31 Thread Simon Cook via Phabricator via cfe-commits
simoncook added a comment. As this mllvm option only affects the creation of ELF objects, do we also need to add a similar option for the LTO case, as the -G value would have no effect otherwise? Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D57497/new/ https://

[PATCH] D57497: [RISCV] Passing -G value to RISCV backend

2019-01-30 Thread Shiva Chen via Phabricator via cfe-commits
shiva0217 created this revision. shiva0217 added reviewers: asb, apazos. Herald added subscribers: jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar. Passing -G value to RISCVELFTargetObjectF