浏览代码

properly deal with soft-float when profiling as well

Eric Andersen 20 年之前
父节点
当前提交
9f9350ab90

+ 3 - 0
libc/sysdeps/linux/arm/Makefile

@@ -56,6 +56,9 @@ $(COBJS): %.o : %.c
 
 ifeq ($(strip $(UCLIBC_PROFILING)),y)
 SAFECFLAGS := $(filter-out -g,$(CFLAGS))
+ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y)
+SAFECFLAGS += $(call check_gcc,-msoft-float,)
+endif
 gmon-start.S: ../common/gmon-start.c
 	$(CC) $(SAFECFLAGS) -c $< -S -o $*.S
 gcrt1.o: $(CRT0_DEPS)

+ 3 - 0
libc/sysdeps/linux/i386/Makefile

@@ -59,6 +59,9 @@ $(COBJS): %.o : %.c
 
 ifeq ($(strip $(UCLIBC_PROFILING)),y)
 SAFECFLAGS := $(filter-out -g,$(CFLAGS))
+ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y)
+SAFECFLAGS += $(call check_gcc,-msoft-float,)
+endif
 gmon-start.S: ../common/gmon-start.c
 	$(CC) $(SAFECFLAGS) -c $< -S -o $*.S
 gcrt1.o: $(CRT0_DEPS)

+ 3 - 0
libc/sysdeps/linux/powerpc/Makefile

@@ -59,6 +59,9 @@ $(COBJS): %.o : %.c
 
 ifeq ($(strip $(UCLIBC_PROFILING)),y)
 SAFECFLAGS := $(filter-out -g,$(CFLAGS))
+ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y)
+SAFECFLAGS += $(call check_gcc,-msoft-float,)
+endif
 gmon-start.S: ../common/gmon-start.c
 	$(CC) $(SAFECFLAGS) -c $< -S -o $*.S
 gcrt1.o: $(CRT0_DEPS)

+ 3 - 0
libc/sysdeps/linux/sh/Makefile

@@ -58,6 +58,9 @@ $(COBJS): %.o : %.c
 
 ifeq ($(strip $(UCLIBC_PROFILING)),y)
 SAFECFLAGS := $(filter-out -g,$(CFLAGS))
+ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y)
+SAFECFLAGS += $(call check_gcc,-msoft-float,)
+endif
 gmon-start.S: ../common/gmon-start.c
 	$(CC) $(SAFECFLAGS) -c $< -S -o $*.S
 gcrt1.o: $(CRT0_DEPS)