[PATCH 64bit] Fix ONDEE for 64bit

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Fri Mar 15 21:56:00 GMT 2013


On Fri, 15 Mar 2013 11:26:55 +0100, Corinna Vinschen wrote:
> ftp://ftp.cygwin.com/pub/cygwin/64bit/x86_64-pc-cygwin-gcc-20130305.patch
> 
> I didn't change anything in the toolchain since then.

This hunk doesn't look right (gcc/config/i386/i386.c):

>        if (TARGET_64BIT && DEFAULT_ABI == MS_ABI)
> -       ix86_cmodel = CM_SMALL_PIC, flag_pic = 1;
> +#ifdef TARGET_CYGWIN64
> +       ix86_cmodel = CM_MEDIUM_PIC, flag_pic = 1;
> +#else
> +       ix86_cmodel = CM_MEDIUM_PIC, flag_pic = 1;
> +#endif

It doesn't affect us right now, but this needs to be fixed before
pushing upstream.

Also, in libstdc++-v3/crossconfig.m4:

> +  *-cygwin*)
> +    GLIBCXX_CHECK_COMPILER_FEATURES
> +    GLIBCXX_CHECK_LINKER_FEATURES
> +    GLIBCXX_CHECK_MATH_SUPPORT
> +    GLIBCXX_CHECK_STDLIB_SUPPORT
> +    ;;

I think cygwin should be added to the preceding linux|gnu|k*bsd-gnu
case, as we also have /dev/random, pthreads, and iconv.

BTW, the good news is that I was able to build cygwin-64bit-branch and
gcc (3-stage bootstrap with C/C++) natively on x86_64, albeit with
-j1, so we're officially at the point of self-hosting.  Hopefully your
latest patches will fix parallel make, but that will have to wait until
next week.


Yaakov



More information about the Cygwin-patches mailing list