[PATCH 1 of 4] scripts: introduce float type as a string
Morten Thunberg Svendsen
mts@doredevelopment.dk
Fri Nov 25 12:20:00 GMT 2011
Hi
On Wed, Nov 2, 2011 at 00:39, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
> +
> + case "${CT_ARCH_FLOAT}" in
> + soft)
> + CT_ARCH_FLOAT_CFLAG="-msoft-float"
> + CT_ARCH_WITH_FLOAT="--with-float=soft"
> + ;;
> + esac
x86 do not support the --with-float option or the -msoft/har-float.
This seems to fix it for x86 (only arm, mips, powerpc and sparc
supports --with-float
http://gcc.gnu.org/viewcvs/trunk/gcc/config.gcc?revision=181079&view=markup
)
diff -r 258160822e35 scripts/build/arch/x86.sh
--- a/scripts/build/arch/x86.sh Wed Nov 23 13:15:27 2011 +0800
+++ b/scripts/build/arch/x86.sh Fri Nov 25 13:07:05 2011 +0100
@@ -20,4 +20,16 @@
*) CT_TARGET_ARCH=i586;;
esac
fi
+
+ # with-float is not possible for x86
+ case "${CT_ARCH_FLOAT}" in
+ hard)
+ CT_ARCH_FLOAT_CFLAG=
+ CT_ARCH_WITH_FLOAT=
+ ;;
+ soft)
+ CT_ARCH_FLOAT_CFLAG="-msoft-float"
+ CT_ARCH_WITH_FLOAT=
+ ;;
+ esac
}
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list