Guess N32 ABI when no abi option is given based on llvm patch.
It now support mips64(el)-linux-gnuabin32 and mipsn32(el).
The include and library paths are also added based on
Debian/Gcc scheme.
Differential D51464
clang: fix MIPS/N32 triple and paths wzssyqa on Aug 29 2018, 3:56 PM. Authored by
Details Guess N32 ABI when no abi option is given based on llvm patch. The include and library paths are also added based on
Diff Detail Event TimelineComment Actions Could you please include more context to patches sent for review?
Comment Actions This patch fails the following test cases:
Comment Actions Please run test suite before sending a patch to review. After applying this patch the following tests failed:
Comment Actions ohhh. make check-all is needed, instead of make check
is due to duplicate line `MIPS-64EL: target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128"'
is due to this test use the hardcode path `/mips-linux-gnu/', so mipsel and mips64el also need BiarchTripleAliases.append(begin(MIPSTriples), end(MIPSTriples)); although MIPSTriples should in the last order.
Comment Actions I'm going to test current MIPS N32 ABI implementation. Maybe we are ready to enable integrated assembler for it. In that case both Generic_GCC::IsIntegratedAssemblerDefault() and MipsMCAsmInfo ctor can be simplified. |
Is possible to rewrite this piece of code (lines 85-114) as follows?