This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: V3 and cross-compiler (AIX 4.3 64-bit mode)


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


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