Building GCC & CFLAGS settings

H.J. Lu hjl.tools@gmail.com
Wed May 5 17:42:00 GMT 2010


On Wed, May 5, 2010 at 10:18 AM, Steve Ellcey <sje@cup.hp.com> wrote:
>
> I was wondering if anyone has built GCC using a CFLAGS (and CXXFLAGS) setting
> that causes GCC to generate code that is not compatibile with the default
> GCC output.  Basically, I am building GCC on ia64-hp-hpux11.31 where I set
> CFLAGS and CXXFLAGS to "-mlp64" to generate 64 bit code instead of the
> default 32 bit code.  During the build libiberty is built in 64 bit mode but
> then the object files that go into genmodes (genmodes.o, errors.o, etc) are
> compiled without using CFLAGS and the link of genmodes fails because
> genmodes.o and errors.o are in 32 bit mode and libiberty is in 64 bit mode.
>

I am using

# CC="gcc -m32" CXX="g++ -m32" ...../configure ....

to bootstrap 32bit gcc on 64bit Linux.

-- 
H.J.



More information about the Gcc mailing list