[PATCH] D59298: [RISCV] Pass -target-abi to -cc1as

Roger Ferrer Ibanez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 13 07:03:11 PDT 2019

rogfer01 created this revision.
rogfer01 added a reviewer: asb.
Herald added subscribers: cfe-commits, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar.
Herald added a project: clang.

The RISC-V assembler needs the target ABI because it defines a flag of the the ELF file, as described in [1].

Make `clang` (the driver) to pass the target ABI to `-cc1as` in exactly the same way it does for `-cc1`.

Currently `-cc1as` knows about `-target-abi` but is not handling it. Handle it and pass it to the MC layer via MCTargetOptions.

[1] https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md#file-header

  rC Clang



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59298.190409.patch
Type: text/x-patch
Size: 5145 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190313/79b971da/attachment-0001.bin>

More information about the cfe-commits mailing list