V3 and cross-compiler (AIX 4.3 64-bit mode)
Rainer Orth
ro@TechFak.Uni-Bielefeld.DE
Fri Jun 8 14:30:00 GMT 2001
David Edelsohn writes:
> >>>>> Rainer Orth writes:
>
> Rainer> Why leave this to the user to specify? Have a look at the mips*-*-*
> Rainer> (mabi=64) and sparc*-*-* (m64) cases, adding a test that the resulting
> Rainer> binary really executes. It's both simpler for the user and more reliable.
>
> Because unlike Irix and Sparc, one actually can and should be able
> to build 64-bit AIX multilib on a 32-bit system. If it were not for
That's true for those systems as well: you can install a 64-bit development
environment on both IRIX and Solaris on 32-bit-only systems and compile for
64-bit, provided you don't try to execute the resulting binary.
> self-querying the limits, this would work. If the user substitutes a
> correct std_limits.h, it will work.
Still your approach is more work for the casual user. I'd suggest doing it
the other way round: enable 64-bit if you can build and execute a 64-bit
binary, and if this test fails, allow the user to override this if he knows
what he's doing.
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE
More information about the Libstdc++
mailing list