$ riscv64-unknown-linux-gnu-gcc -Q --help=target
The following options are target specific:-mabi= lp64d
-malign-data= xlen
-march= rv64imafdc
-mbig-endian [disabled]-mbionic [disabled]-mbranch-cost=N 3-mcmodel= medlow
-mcpu=PROCESSOR
-mdiv [enabled]-mexplicit-relocs [enabled]-mfdiv [enabled]-mglibc [enabled]-misa-spec=2.2-mlittle-endian [enabled]-mmusl [disabled]-mplt [enabled]-mpreferred-stack-boundary=0-mrelax [enabled]-mriscv-attribute [disabled]-msave-restore [disabled]-mshorten-memrefs [enabled]-msmall-data-limit=N 8-mstack-protector-guard-offset=-mstack-protector-guard-reg=-mstack-protector-guard= global
-mstrict-align [enabled]-mtune=PROCESSOR rocket
-muclibc [disabled]
Supported ABIs(for use with the -mabi= option):
ilp32 ilp32d ilp32e ilp32f lp64 lp64d lp64f
Known code models(for use with the -mcmodel= option):
medany medlow
Supported ISA specs(for use with the -misa-spec= option):2.22019060820191213
Known data alignment choices(for use with the -malign-data= option):
natural xlen
Valid arguments to -mstack-protector-guard=:
global tls