[PATCH 02/18] bootwrapper: Set -msoft-float and assembler target options.

Segher Boessenkool segher at kernel.crashing.org
Wed Jan 31 06:42:42 EST 2007


> Without -msoft-float, floating point state saving code can be executed
> (at least with certain buggy versions of GCC, which don't clear bit  
> 6 of
> CR before calling a varargs function with no varargs parameters).

Even: without -msoft-float, GCC is allowed to use any
floating-point resources it wants (whether you like that
or not, and/or think it is a bug in GCC, is moot).

> Without the assembler target option, the assembler will use the old
> dedicated mftb/mftbu instructions, rather than mfspr.  This causes the
> boot to hang on e500, which doesn't have the dedicated instructions.
>
> Signed-off-by: Scott Wood <scottwood at freescale.com>

Acked-by: Segher Boessenkool <segher at kernel.crashing.org>




More information about the Linuxppc-dev mailing list