Add built-in defines for hard-float and soft-float ABIs

Reported by Andrew Stubbs on 2010-07-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Chung-Lin Tang
Chung-Lin Tang
Chung-Lin Tang
Linaro GCC Tracking

Bug Description

Ensure that the ARM compiler provides macros that can be used to differentiate between the HardFP and SoftFP ABIs.

This is targeted at 4.4 and 4.5.

Related branches

Merged into lp:gcc-linaro/4.4 at revision 93544
Andrew Stubbs (community): Approve on 2010-08-03
Loïc Minier (lool) on 2010-07-07
Changed in gcc-linaro:
importance: Undecided → Low
Wookey (wookey) wrote :

We should use the ARM extensions to be compatible with the proposed "ARM C language
extension spec" (rather than inventing new macros).
The macro for this is __ARM_PCS_VFP__

Can you provide a link to this spec?

Alternatively, a bit more info about how this macro is expected to be used/set, and what to do for the other ABIs would be good enough.

Changed in gcc-linaro:
assignee: nobody → Chung-Lin Tang (cltang)
Michael Hope (michaelh1) wrote :
Changed in gcc-linaro:
milestone: none → 4.5-2010.08-0
Changed in gcc-linaro-tracking:
milestone: none → 4.6.0
status: New → Fix Committed
Michael Hope (michaelh1) wrote :

fixed-in: 93544

Changed in gcc-linaro-tracking:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers