http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55293



--- Comment #16 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-11-14 
08:49:46 UTC ---

> FWIW, I bootstrapped a pure 64-bit gcc-4.7.2 on Solaris 10/SPARC64 yesterday,

> with C, Ada, and C++, using a normal 32-bit-but-64-bit-capable gcc-4.7.2 as

> host compiler.  About the only issue was that I had to coerce the host 
> compiler

> to generate 64-bit code by default; for that I put

> 

> #!/bin/sh

> exec gcc -m64 "$@"

> 

> in a "gcc64" shell script and passed the path to it in CC when configuring 
> gcc.



That's not even necessary, just do CC="gcc -m64" ./configure [options].



> Overriding CFLAGS might have worked too, but I didn't try that.



Nope, fiddling with CFLAGS, BOOT_CFLAGS and the like is strongly discouraged.

Reply via email to