[PATCH] D110514: MIPS: Triple::setArch as R6 if MipsSubArch_r6
YunQiang Su via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 19 22:29:38 PDT 2021
wzssyqa added a comment.
In D110514#3073329 <https://reviews.llvm.org/D110514#3073329>, @MaskRay wrote:
> The `llvm/lib/Support/Triple.cpp` change LGTM.
>
> For `clang -target mipsisa64r6-linux-gnu -mabi=32`, what include and library paths do it use? It may be related to `clang/lib/Driver/Driver.cpp:computeTargetTriple`
It does work as expected.
syq at Faphine:/home/syq/LLVM/build$ bin/clang -target mipsisa64r6el-linux-gnuabi64 -mabi=32 -EB -v -c xx.c && file xx.o
clang version 14.0.0 (https://gitee.com/mirrors/LLVM.git 0debad0dc5c46ca73e491b6f4b5eb1d8dc5225dd)
Target: mipsisa32r6-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/syq/LLVM/build/bin
Found candidate GCC installation: /usr/lib/gcc-cross/mips-linux-gnu/10
Found candidate GCC installation: /usr/lib/gcc-cross/mips64-linux-gnuabi64/10
Selected GCC installation: /usr/lib/gcc-cross/mips-linux-gnu/10
Candidate multilib: .;@m32
Selected multilib: .;@m32
(in-process)
"/home/syq/LLVM/build/bin/clang-14" -cc1 -triple mipsisa32r6-unknown-linux-gnu -emit-obj -mrelax-all --mrelax-relocations -disable-free -main-file-name xx.c -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -target-cpu mips32r6 -target-feature -noabicalls -target-abi o32 -mfloat-abi hard -debugger-tuning=gdb -v -fcoverage-compilation-dir=/home/syq/LLVM/build -resource-dir /home/syq/LLVM/build/lib/clang/14.0.0 -internal-isystem /home/syq/LLVM/build/lib/clang/14.0.0/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc-cross/mips-linux-gnu/10/../../../../mips-linux-gnu/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir=/home/syq/LLVM/build -ferror-limit 19 -fgnuc-version=4.2.1 -fcolor-diagnostics -faddrsig -o xx.o -x c xx.c
clang -cc1 version 14.0.0 based upon LLVM 14.0.0git default target aarch64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
/home/syq/LLVM/build/lib/clang/14.0.0/include
/usr/local/include
/usr/lib/gcc-cross/mips-linux-gnu/10/../../../../mips-linux-gnu/include
/usr/include
End of search list.
xx.o: ELF 32-bit MSB relocatable, MIPS, MIPS32 rel6 version 1 (SYSV), not stripped
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110514/new/
https://reviews.llvm.org/D110514
More information about the llvm-commits
mailing list