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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Howto biarch compiler default to -m32?


HI again,

On Wednesday 08 June 2005 09:56, René Rebe wrote:

> I did this once in the past but lost my transscript ... What was the
> recommended way to get a sparc64-gnu-linux (or other biarch) compiler that
> defaults to -m32? Is there a config or was the way to patch the linux64.h
> in the arch config dir?

Well - at least this patch:

--- gcc/config/sparc/linux64.h.oir    2005-06-08 09:17:32.000000000 +0200
+++ gcc/config/sparc/linux64.h        2005-06-08 09:26:59.000000000 +0200
@@ -45,11 +45,13 @@
 /* A 64 bit v9 compiler with stack-bias,
    in a Medium/Low code model environment.  */
 
+#ifdef SPARC64_USERSPACE_BECAME_ROCK_SOLID_AND_X_USABLE_RENER
 #undef TARGET_DEFAULT
 #define TARGET_DEFAULT \
   (MASK_V9 + MASK_PTR64 + MASK_64BIT /* + MASK_HARD_QUAD */ \
    + MASK_STACK_BIAS + MASK_APP_REGS + MASK_FPU + MASK_LONG_DOUBLE_128)
 #endif
+#endif
 
 #undef ASM_CPU_DEFAULT_SPEC
 #define ASM_CPU_DEFAULT_SPEC "-Av9a"


Just finished and it defaults to -m32:

sparc64-t2-linux-gnu-gcc -dumpspecs  | grep -A 1 multilib_default
*multilib_defaults:
m32

Linking 32 and 64 bit libtraries worked for hello-world.c style programs. 
Whether it survives a system bootstrap takes some time to find out @ 
360Mhz ...

I hope it is not too much a hack ,-)

Yours,

-- 
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
            http://www.exactcode.de | http://www.t2-project.org
            +49 (0)30  255 897 45

Attachment: pgp00000.pgp
Description: PGP signature


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