When using the IAS from clang, the 'target-abi' option gets passed to cc1as, but cc1as doesn't know about it and gives an "unknown argument" error.
This is fixed by adding the 'CC1AsOption' flag to the 'target-abi' option in CC1Options.td.
Differential D7903
[IAS] Teach -cc1as about the 'target-abi' option. tomatabacu on Feb 26 2015, 3:34 AM. Authored by
Details When using the IAS from clang, the 'target-abi' option gets passed to cc1as, but cc1as doesn't know about it and gives an "unknown argument" error. This is fixed by adding the 'CC1AsOption' flag to the 'target-abi' option in CC1Options.td.
Diff Detail Event TimelineComment Actions The testing probably needs improving, seeing as it's only covering the MIPS ABIs, but I'd like to know if I've approached this correctly first. Comment Actions I would try to keep the mips-integrated-as.s unchanged and write another test case where explicitly invoke the clang with -cc1as and -target-abi options. That allows to check that the -target-abi option is not rejected and really affects output. Comment Actions I don't think it's necessary to test that each ABI isn't ignored. Just one will be fine. -eric Comment Actions Comment inline.
Comment Actions Replied to inline comment.
|
This means you can just do a CHECK line here.