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]

Building GCC & CFLAGS settings


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 have tried setting CFLAGS_FOR_BUILD and ALL_CFLAGS but these didn't have any
affect.  Is there a flag that I am missing or is this a bug in the build
process?  This problem only seems to occur when I am doing a bootstrap build,
if I use --disable-bootstrap and build all-gcc then I don't have this problem.

Steve Ellcey
sje@cup.hp.com


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