This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: revised x86_64-pc-mingw32 patch

Richard Henderson <> wrote on 22.03.2007 01:15:34:

> Try the following patch.  It fixes up the calling abi problems,
> and gives a stab at fixing the flag_pic sorts of problems.
I tried your patch with a mingw64 runtime and had especially problems on 
floatings. Therefore I suggest the following code as replacement for 
yours. I built as cross on i386-linux and i386-cygwin and it seems to work 

The use of pic seems to be producing problems by the @GOTPCREL prefix, 
which the coff version of gas does not understand. But AFAIS we need not 
producing pic code, because coff (PE) is by architecture position 
independent. Just the patch in is necessary for having memonics 
with size to be relocated by PE loader.

The register calling convention is may easier than my suggested code looks 
like. May this can be eased dramatically, but this  adopted code of 
existing x86_64 ABI code solved all the floating point failures I had. 

I added the prototype for "ix86_GOT_alias_set" into i386-protos.h.

I think too, that it is worth to investigate for real pic code for minw32 
(without base relocations), but may we should first introducing this new 
mingw32 target ?

 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

Attachment: diff_gcc_mingw.txt
Description: Text document

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]