Floating point ABI for the ARM port in karmic
Matthias Klose
doko at ubuntu.com
Wed Sep 23 20:49:02 BST 2009
The ARM port in karmic builds by default with -mfloat-abi=softfp -mfpu=vfp. In
comparision to jaunty that doesn't define the __SOFTFP__ macro anymore, and
there is a lot of code which assumes a hard float abi when this macro is absent,
although the *abi* didn't change. There is typically code like
#ifdef __SOFTFP__
#endif
#ifndef __SOFTFP__
#endif
For ARM that code should be changed to
#if defined(__SOFTFP__) || defined(__ARM_EABI__)
#endif
#if !defined(__SOFTFP__) && !defined(__ARM_EABI__)
#endif
This will help for a while until ARM gets support for the hard float abi and vfp
and we start changing this again.
Fixed at least GCC, libffi, python, OpenOffice (upload pending) and OpenJDK
(upload pending).
Matthias
More information about the ubuntu-devel
mailing list