This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re:[PATCH] Fix bootstrap on -m32 ppc64 -> ppc64
- From: Richard Guenther <rguenther at suse dot de>
- To: Geoff Keating <geoffk at geoffk dot org>
- Cc: gcc-patches at gcc dot gnu dot org, Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Date: Tue, 4 Jul 2006 14:13:37 +0200 (CEST)
- Subject: Re:[PATCH] Fix bootstrap on -m32 ppc64 -> ppc64
- References: <76E833C1-7E3F-4573-B4B7-95012C317BDB@geoffk.org>
On Thu, 29 Jun 2006, Geoff Keating wrote:
> Hi Richard,
>
> >Index: Makefile.in
> >===================================================================
> >--- Makefile.in (revision 109534)
> >+++ Makefile.in (working copy)
> >@@ -813,7 +813,11 @@ ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) $
> >
> > # Build and host support libraries.
> > LIBIBERTY = ../libiberty/libiberty.a
> >+ifeq ($(CC), $(CC_FOR_BUILD))
> >+BUILD_LIBIBERTY = $(LIBIBERTY)
> >+else
> >BUILD_LIBIBERTY = $(build_objdir)/libiberty/libiberty.a
> >+endif
> >
> > # Dependencies on the intl and portability libraries.
> > LIBDEPS= $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) $(LIBICONV_DEP)
> > $(LIBDECNUMBER)
> I don't see how this patch does what you want to do. If you're on a powerpc32
> host and the compiler defaults to -m32, then to target powerpc64 you want to
> write something like
>
> CC='gcc -m64' .../configure --host=powerpc64-whatever
Yes, that nearly works, though I'm on a powerpc64 host with a ppc64
compiler targeting ppc32 (by default).
> and so CC will not be equal to CC_FOR_BUILD, since CC_FOR_BUILD will be plain
> 'cc'.
I still hope Paolo will sort out the things mentioned in the previous
thread about this subject.
Richard.
--
Richard Guenther <rguenther@suse.de>
Novell / SUSE Labs