[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#341882: gcc-4.0: [mips] support for tri-arch on mips & mipsel



On Sat, Dec 03, 2005 at 01:31:23PM -0700, Stuart Anderson wrote:
> +# DP: Description: add full tri-arch support. Include linux64.h also fix up
> +# DP: Description: the directory names so that o32 is the default and follow
> +# DP: Description: the glibc convention for 32 & 64 bit names

Everyone else does this by building mips64-linux compilers instead.  I
don't know if it might break something entertainingly to have gcc
misreport 32-bit machines as mips64-linux, though.  Probably very
little.

> +! MULTILIB_DIRNAMES = n32 32 64
> +! MULTILIB_DIRNAMES = 32 . 64

Why bother?  That's what this:

> +  MULTILIB_OSDIRNAMES = ../lib32 ../lib ../lib64

is for.  The other names are GCC-internal.

> + #ifdef GPLUSPLUS_TOOL_INCLUDE_DIR
> +     /* Pick up GNU C++ target-dependent include files.  */
> +-    { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, 0 },
> ++    { GPLUSPLUS_INCLUDE_DIR "/" TARGET32_MACHINE, "G++", 1, 1, 0, 32 },
> ++    { GPLUSPLUS_INCLUDE_DIR "/" TARGET64_MACHINE, "G++", 1, 1, 0, 64 },
> ++#endif

Do you have any evidence that this is necessary?  Why?  The 64-bit C++
headers work perfectly fine for the 32-bit target, at least - I've
tested that.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Reply to: