2016-01-19 7:07 GMT+01:00 <[email protected]>:

> Hi,
>
> On Windows 7, when I build gmp-6.1.0 in the msys shell using gcc-4.9.2
> (i686-posix-sjlj), ABI is set to 32 and the created gmp.h contains entries
> such as:
>
> #define GMP_LIMB_BITS                      32
> and
> #define __GMP_CFLAGS
> "-m32 -O2 -pedantic -fomit-frame-pointer -mtune=sandybridge
> -march=sandybridge"
>
> (And the same holds for previous 4.x.x i686 compilers that I've used.)
>
> A couple of days ago I grabbed gcc version 5.3.0 (i686-posix-sjlj-rev0,
> Built by MinGW-W64 project) from:
>
> http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/5.3.0/threads-posix/sjlj/i686-5.3.0-release-posix-sjlj-rt_v4-rev0.7z/download
>
> When I use that compiler to build gmp-6.1.0, ABI is set to 64 and the
> created gmp.h contains entries such as:
>
> #define GMP_LIMB_BITS                      64
> and
> #define __GMP_CFLAGS
> "-O2 -pedantic -fomit-frame-pointer -m64 -mtune=sandybridge
> -march=sandybridge"
>
> Is this as expected with the i686-posix-sjlj compiler when moving from
> 4.x.x
> to 5.x.x ? (It's not something I was expecting.)
>

I would say it's a bug in GMP's configure magic. If I remember correctly,
it was horrendously bad in detecting compiler target architecture around
the 4.x-5.x era.
I solved it then by explicitly setting --host and --build, as well as
passing in CC and CXX, although I'm not sure these will be necessary for
the configure step to get the right results.

I can try to take a look tonight if it's still a problem for you.

I'm assuming here there was no mixup in compiler packaging and the 5.3.0
toolchain does indeed target i686 like it should (I have no reason to doubt
this).

Ruben


>
> Cheers,
> Rob
>
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to