This is the mail archive of the 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]

Re: Issue in building the libgcc-Os-4-200.a library for SH target

"Cecilia Rodrigues" <> wrote:
> We have experienced following error, when building a C++ application
> using a toolchain built with the above mentioned sources,

Since 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
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?

	* config/sh/t-sh: Use $(MULTILIB_CFLAGS) when compiling to

--- 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-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)

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