[PATCH] RISC-V: Derive ABI from -march if -mabi is not present.

Andreas Schwab schwab@linux-m68k.org
Tue Oct 6 07:33:41 GMT 2020


On Okt 06 2020, Kito Cheng wrote:

> diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
> index f623467b7637..c6ba738aa0b7 100644
> --- a/gcc/doc/invoke.texi
> +++ b/gcc/doc/invoke.texi
> @@ -25928,7 +25928,14 @@ allows floating-point values up to 32 bits long to be passed in registers; or
>  @samp{-march=rv64ifd -mabi=lp64}, in which no floating-point arguments will be
>  passed in registers.
>  
> -The default for this argument is system dependent, users who want a specific
> +When @option{-mabi=} is not specified, the default value will derived from
> +@option{-march=}, the rules is using @samp{d} ABI variant if D extension is
> +enabled, otherwise using soft-float ABI variant even F extension is enabled,
> +there is an special rule for @samp{rv32e} variant is it always use
> +@samp{ilp32e}.

When @option{-mabi=} is not specified, the default value will be derived
from @option{-march=}.  If the D extension is enabled use the @samp{d}
ABI variant, otherwise use the soft-float ABI variant even if the F
extension is enabled.  For the @samp{rv32e} architecture the default is
@samp{ilp32e}.

> +
> +If @option{-march} and @option{-mabi=} both are not specified, the default for

If both ... are not specified

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Gcc-patches mailing list