This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Updated version of x86_64-pc-mingw32 support of gcc.
- From: Michael Matz <matz at suse dot de>
- To: Kai Tietz <Kai dot Tietz at onevision dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, bonzini at gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Mar 2007 17:15:46 +0100 (CET)
- Subject: Re: PATCH: Updated version of x86_64-pc-mingw32 support of gcc.
- References: <OF766C488D.DB617BCD-ONC12572A3.002E94C8-C12572A3.002FEE54@onevision.de>
Hi,
On Mon, 19 Mar 2007, Kai Tietz wrote:
> > Just from a quick glance:
> >
> > > - ix86_cmodel = flag_pic ? CM_SMALL_PIC : CM_SMALL;
> > > + ix86_cmodel = (TARGET_64BIT_MS_ABI ? (flag_pic ? CM_MEDIUM_PIC
> :
> > > CM_MEDIUM) : (flag_pic ? CM_SMALL_PIC : CM_SMALL));
> >
> > The ix86_cmodel is there to handle varoius ABI derrivations,
> > perhaps we can use it for MS abi as well? Ie add CM_MSABI.
> > The MS ABI can then be available with -mcmodel=msabi for projects such
> > as wine.
>
> The code-model should be LARGE for MS-ABI.
For x86-64? I pretty much doubt that, given that the image format is
explicitely restricted to a maximum of 2 GB. So, the small code model is
completely enough.
Ciao,
Michael.