revised**2 x86_64-pc-mingw32 patch

Kai Tietz
Wed Mar 28 12:43:00 GMT 2007

Richard Henderson <> wrote on 28.03.2007 01:35:54:

> This fixes up a number of mistakes in the calling convention code,
> which were causing ICEs and the like.

I nearly commit this patch, but one point in "function_arg_ms_64" is not 
proper. There is no intepretation of named arguments in MS abi.  Floating 
type parameters need register duplications in any case, otherwise 
functions using va_list - as printf and so on - will fail. See in msdn the 
va_list calling convention as reference.

After patching this issue, I could bootstap the cross-compile on 
i386-pc-cygwin (after patching the gengtype sigF) and on i386-pc-linux.

 i.A. Kai Tietz

  OneVision Software Entwicklungs GmbH & Co. KG
  Dr.-Leo-Ritter-Straße 9 - 93049 Regensburg
  Tel: +49.(0)941.78004.0 - Fax: +49.(0)941.78004.489 -
  Commerzbank Regensburg - BLZ 750 400 62 - Konto 6011050
  Handelsregister: HRA 6744, Amtsgericht Regensburg
  Komplementärin: OneVision Software Entwicklungs Verwaltungs GmbH
  Dr.-Leo-Ritter-Straße 9 – 93049 Regensburg
  Handelsregister: HRB 8932, Amtsgericht Regensburg - Geschäftsführer: 
Ulrike Döhler, Manuela Kluger

More information about the Gcc-patches mailing list