linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add -msoft-float to BOOTCFLAGS
@ 2007-05-15  0:52 Josh Boyer
  2007-05-15  1:08 ` Benjamin Herrenschmidt
  2007-05-15  4:46 ` Segher Boessenkool
  0 siblings, 2 replies; 3+ messages in thread
From: Josh Boyer @ 2007-05-15  0:52 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

We want to avoid any float instructions that may occur in the wrapper that
may be generated if the compiler isn't told not to.

Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
---
 arch/powerpc/boot/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.orig/arch/powerpc/boot/Makefile
+++ linux-2.6/arch/powerpc/boot/Makefile
@@ -24,7 +24,7 @@ all: $(obj)/zImage
 
 HOSTCC		:= gcc
 BOOTCFLAGS	:= $(HOSTCFLAGS) -fno-builtin -nostdinc -isystem \
-		   $(shell $(CROSS32CC) -print-file-name=include) -fPIC
+		   $(shell $(CROSS32CC) -print-file-name=include) -fPIC -msoft-float
 BOOTAFLAGS	:= -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc
 
 ifeq ($(call cc-option-yn, -fstack-protector),y)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Add -msoft-float to BOOTCFLAGS
  2007-05-15  0:52 [PATCH] Add -msoft-float to BOOTCFLAGS Josh Boyer
@ 2007-05-15  1:08 ` Benjamin Herrenschmidt
  2007-05-15  4:46 ` Segher Boessenkool
  1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2007-05-15  1:08 UTC (permalink / raw)
  To: Josh Boyer; +Cc: linuxppc-dev, paulus

On Mon, 2007-05-14 at 19:52 -0500, Josh Boyer wrote:
> We want to avoid any float instructions that may occur in the wrapper that
> may be generated if the compiler isn't told not to.
> 
> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

> ---
>  arch/powerpc/boot/Makefile |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- linux-2.6.orig/arch/powerpc/boot/Makefile
> +++ linux-2.6/arch/powerpc/boot/Makefile
> @@ -24,7 +24,7 @@ all: $(obj)/zImage
>  
>  HOSTCC		:= gcc
>  BOOTCFLAGS	:= $(HOSTCFLAGS) -fno-builtin -nostdinc -isystem \
> -		   $(shell $(CROSS32CC) -print-file-name=include) -fPIC
> +		   $(shell $(CROSS32CC) -print-file-name=include) -fPIC -msoft-float
>  BOOTAFLAGS	:= -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc
>  
>  ifeq ($(call cc-option-yn, -fstack-protector),y)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Add -msoft-float to BOOTCFLAGS
  2007-05-15  0:52 [PATCH] Add -msoft-float to BOOTCFLAGS Josh Boyer
  2007-05-15  1:08 ` Benjamin Herrenschmidt
@ 2007-05-15  4:46 ` Segher Boessenkool
  1 sibling, 0 replies; 3+ messages in thread
From: Segher Boessenkool @ 2007-05-15  4:46 UTC (permalink / raw)
  To: Josh Boyer; +Cc: linuxppc-dev, paulus

>  HOSTCC		:= gcc
>  BOOTCFLAGS	:= $(HOSTCFLAGS) -fno-builtin -nostdinc -isystem \
> -		   $(shell $(CROSS32CC) -print-file-name=include) -fPIC
> +		   $(shell $(CROSS32CC) -print-file-name=include) -fPIC -msoft-float
>  BOOTAFLAGS	:= -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc

While you're at it, could you get rid of the HOSTCFLAGS
inclusion here?  The host compiler has absolutely nothing
to do with the 32-bit powerpc compiler.

There are some more flags you might want to add btw
(-nostdlib, -mno-multiple, stuff like that -- just examples,
don't blindly add these).


Segher

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-15  4:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-15  0:52 [PATCH] Add -msoft-float to BOOTCFLAGS Josh Boyer
2007-05-15  1:08 ` Benjamin Herrenschmidt
2007-05-15  4:46 ` Segher Boessenkool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).