This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Simplify libgloss bfin Makefile.in
- From: Jie Zhang <jie dot zhang at analog dot com>
- To: newlib at sourceware dot org
- Date: Tue, 8 Sep 2009 23:33:24 +0800
- Subject: [PATCH] Simplify libgloss bfin Makefile.in
Hi,
For the default multilib, Blackifn GCC enables all workarounds. So it's
no good to use -mcpu=bf532-any here. Please review and apply. Thanks.
Jie
2009-09-08 Jie Zhang <jie.zhang@analog.com>
* bfin/Makefile.in (basiccrt.o, basiccrts.o): Don't use
-mcpu=bf532-any for the default multilib.
Index: bfin/Makefile.in
===================================================================
RCS file: /cvs/src/src/libgloss/bfin/Makefile.in,v
retrieving revision 1.2
diff -u -r1.2 Makefile.in
--- bfin/Makefile.in 14 Aug 2008 22:00:45 -0000 1.2
+++ bfin/Makefile.in 8 Sep 2009 15:27:32 -0000
@@ -99,18 +99,10 @@
crt0.o: crt0.S
basiccrt.o: basiccrt.S
-ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))
$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -o $@ -c $<
-else
- $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf532-any -o $@ -c $<
-endif
basiccrts.o: basiccrt.S
-ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))
$(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -o $@ -c $<
-else
- $(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf532-any -o $@ -c $<
-endif
basiccrt561.o: basiccrt.S
ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))
@@ -126,7 +118,6 @@
$(CC) -D__BFIN_SDRAM $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf561-any -o $@ -c $<
endif
-
basiccrt561b.o: basiccrt.S
ifneq (,$(findstring mcpu=bf532-none,$(CFLAGS)))
$(CC) -D__ADSPBF561_COREB__ $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -mcpu=bf561-none -o $@ -c $<