This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Issue in building the libgcc-Os-4-200.a library for SH target
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: Cecilia dot Rodrigues at kpitcummins dot com
- Cc: gcc-patches at gcc dot gnu dot org, Prafulla dot Thakare at kpitcummins dot com
- Date: Wed, 08 Oct 2008 20:20:52 +0900 (JST)
- Subject: Re: Issue in building the libgcc-Os-4-200.a library for SH target
- References: <82C3BC9106BCE149B63464D79D0A22FD06A3BC45@sohm.kpit.com>
"Cecilia Rodrigues" <Cecilia.Rodrigues@kpitcummins.com> wrote:
> We have experienced following error, when building a C++ application
> using a toolchain built with the above mentioned sources,
Since gcc@gcc.gnu.org is not the list for the problem report and
I have a patch anyway, I'd like to move this to gcc-patches.
Please use our fine bugzilla system http://gcc.gnu.org/bugzilla/
next time.
> It appears that, somewhere in the GCC makefiles, the required options
> have been missed while building the "unwind-dw2-Os-4-200.o" component.
Does the attached patch work for you?
Regards,
kaz
--
* config/sh/t-sh: Use $(MULTILIB_CFLAGS) when compiling to
unwind-dw2-Os-4-200.o.
--- ORIG/gcc-4_3-branch/gcc/config/sh/t-sh 2008-02-20 06:48:28.000000000 +0900
+++ LOCAL/gcc-4_3-branch/gcc/config/sh/t-sh 2008-10-08 11:28:43.000000000 +0900
@@ -101,7 +101,7 @@ $(T)sdivsi3_i4i-Os-4-200.o: $(srcdir)/co
$(T)udivsi3_i4i-Os-4-200.o: $(srcdir)/config/sh/lib1funcs-Os-4-200.asm $(GCC_PASSES)
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $@ -DL_udivsi3_i4i -x assembler-with-cpp $<
$(T)unwind-dw2-Os-4-200.o: $(srcdir)/unwind-dw2.c $(srcdir)/unwind-generic.h unwind-pe.h unwind.inc unwind-dw2-fde.h unwind-dw2.h $(CONFIG_H) coretypes.h $(TM_H) $(MACHMODE_H) longlong.h config.status stmp-int-hdrs tsystem.h $(GCC_PASSES)
- $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) $(vis_hide) -fexceptions -Os -c -o $@ $<
+ $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) $(LIBGCC2_CFLAGS) $(INCLUDES) $(vis_hide) -fexceptions -Os -c -o $@ $<
OBJS_Os_4_200=$(T)sdivsi3_i4i-Os-4-200.o $(T)udivsi3_i4i-Os-4-200.o $(T)unwind-dw2-Os-4-200.o
$(T)libgcc-Os-4-200.a: $(OBJS_Os_4_200) $(GCC_PASSES)
$(AR_CREATE_FOR_TARGET) $@ $(OBJS_Os_4_200)