[PATCH 05/12] [i386] Add option -mcall-ms2sysv-xlogues

Sandra Loosemore sandra@codesourcery.com
Fri Apr 28 06:00:00 GMT 2017


On 04/27/2017 02:09 AM, Daniel Santos wrote:

> @@ -25308,6 +25308,17 @@ You can control this behavior for specific functions by
>   using the function attributes @code{ms_abi} and @code{sysv_abi}.
>   @xref{Function Attributes}.
>
> +@item -mcall-ms2sysv-xlogues
> +@opindex mcall-ms2sysv-xlogues
> +@opindex mno-call-ms2sysv-xlogues
> +Due to differences in 64-bit ABIs, any Microsoft ABI function that calls a
> +System V ABI function must consider RSI, RDI and XMM6-15 as clobbered.  By
> +default, the code for saving and restoring these registers is emitted inline,
> +resulting in fairly lengthy prologues and epilogues.  Using
> +@option{-mcall-ms2sysv-xlogues} emits prologues and epilogues that
> +use stubs in the static portion of libgcc to perform these saves & restores,

s/&/and/

The documentation part is OK with that change.

-Sandra



More information about the Gcc-patches mailing list