Skip to content

Check correct ARMC6 predefine for FP codegen #9150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 20, 2018

Conversation

kjbracey
Copy link
Contributor

@kjbracey kjbracey commented Dec 19, 2018

Description

For ARMC6, CMSIS headers were checking the __ARM_PCS_VFP, which indicates hardfp ABI in use, when they need to check whether FP code generation is enabled. Change this to __ARM_FP, so it works for platforms using softfp ABI.

Change already present in CMSIS_5 repo, via commit ARM-software/CMSIS_5@969822a, but redone with local search-and-replace.

Resolves #9142

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

For ARMC6, CMSIS headers were checking the `__ARM_PCS_VFP`, which
indicates hardfp ABI in use, when they need to check whether FP
code generation is enabled. Change this to `__ARM_FP`, so it
works for platforms using softfp ABI.

Change already present in CMSIS_5 repo, via commit
969822ae162539d50617d1e5a3634ee2fd3b60f6, but redone with local
search-and-replace.
@ciarmcom
Copy link
Member

@kjbracey-arm, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@ciarmcom ciarmcom requested a review from a team December 19, 2018 12:00
@cmonr cmonr requested a review from a team December 19, 2018 20:08
@cmonr
Copy link
Contributor

cmonr commented Dec 19, 2018

Poking @ARMmbed/mbed-os-core for a review.

@kjbracey-arm Making sure I understand, this is effectively a bugfix that has been applied in the upstream CMSIS repo?

@cmonr
Copy link
Contributor

cmonr commented Dec 19, 2018

At least, that's the impression I get from #9142 (comment)

Copy link

@deepikabhavnani deepikabhavnani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@deepikabhavnani
Copy link

@cmonr - yes it is fix pulled in from CMSIS to mbed-os.

@cmonr
Copy link
Contributor

cmonr commented Dec 19, 2018

CI started

@mbed-ci
Copy link

mbed-ci commented Dec 20, 2018

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants