This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH roland/arm-vfp] Test [__VFP_FP__] in place of [!__SOFTFP__].


On Wed, 22 Aug 2012, Roland McGrath wrote:

> The compiler predefines __SOFTFP__ to indicate that the calling convention
> is the one using only integer registers.

No, this indicates that it is not generating floating-point instructions.  
It defines __SOFTFP__ only for -mfloat-abi=soft, not -mfloat-abi=softfp (= 
hardware floating point but using integer registers in the calling 
convention) or -mfloat-abi=hard.

> It predefines __VFP_FP__ to
> indicate that it is configured to generate VFP instructions.

No, this indicates that floating-point types have VFP layout as opposed to 
FPA layout.  For an EABI compiler, all three of -mfloat-abi=soft, 
-mfloat-abi=softp and -mfloat-abi=hard predefine __VFP_FP__.

The predefine that relates to the calling convention is __ARM_PCS_VFP.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]