Skip to content

Conversation

@hugueskamba
Copy link
Collaborator

@hugueskamba hugueskamba commented Feb 22, 2021

Summary of changes

The GCC flag to specify the floating-point hardware (mfpu) does not accept
the value none. The default value is auto which causes the compiler to
select the floating-point and Advanced SIMD instructions based on the
settings of -mcpu and -march. The extension option +nofp has been added
to disable floating point instructions.

Impact of changes

Migration actions required

Documentation


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


@ciarmcom ciarmcom added the release-type: patch Indentifies a PR as containing just a patch label Feb 22, 2021
@ciarmcom ciarmcom requested a review from a team February 22, 2021 12:30
@ciarmcom
Copy link
Member

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

0xc0170
0xc0170 previously approved these changes Feb 22, 2021
@0xc0170
Copy link
Contributor

0xc0170 commented Feb 22, 2021

CI started

@mergify mergify bot added needs: work and removed needs: CI labels Feb 22, 2021
@hugueskamba
Copy link
Collaborator Author

@Patater @0xc0170
Should we had -march=armv8-m.main since the old tool had it?
Though it does not seem necessary according to the flags documentation.

@Patater
Copy link
Contributor

Patater commented Feb 22, 2021

@Patater @0xc0170
Should we had -march=armv8-m.main since the old tool had it?
Though it does not seem necessary according to the flags documentation.

Following the docs rather than following what the old tool did seems the best course of action.

The GCC flag to specify the floating-point hardware (`mfpu`) does not accept
the value `none`. The default value is `auto` which causes the compiler to
select the floating-point and Advanced SIMD instructions based on the
settings of -mcpu and -march. The extension option `+nofp` has been added
to disable floating point instructions.
@hugueskamba hugueskamba force-pushed the hk_cmake_fix_cortex_m33_gcc branch from 47ec637 to cd6cb71 Compare February 22, 2021 15:23
@mergify mergify bot dismissed stale reviews from 0xc0170 and Patater February 22, 2021 15:24

Pull request has been modified.

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 22, 2021

@jeromecoutant Please review (previously reported other M33 issues).

@mergify mergify bot added the needs: CI label Feb 22, 2021
@mergify mergify bot removed the needs: work label Feb 22, 2021
@mbed-ci
Copy link

mbed-ci commented Feb 22, 2021

Jenkins CI Test : ✔️ SUCCESS

Build Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_cmake-example-ARM ✔️
jenkins-ci/mbed-os-ci_cmake-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_cmake-example-test ✔️
jenkins-ci/mbed-os-ci_greentea-test ✔️

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 22, 2021

CI restarted

@mbed-ci
Copy link

mbed-ci commented Feb 22, 2021

Jenkins CI Test : ✔️ SUCCESS

Build Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_cmake-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_cmake-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-ARM ✔️
jenkins-ci/mbed-os-ci_build-greentea-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_build-cloud-example-ARM ✔️
jenkins-ci/mbed-os-ci_build-example-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_greentea-test ✔️
jenkins-ci/mbed-os-ci_cmake-example-test ✔️

Copy link
Contributor

@LDong-Arm LDong-Arm left a comment

Choose a reason for hiding this comment

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

Would be good to have this merged soon, as CMake support for a few TF-M/PSA repos depends on it

@0xc0170 0xc0170 merged commit 6c08123 into ARMmbed:master Feb 23, 2021
@mergify mergify bot removed the ready for merge label Feb 23, 2021
@hugueskamba hugueskamba deleted the hk_cmake_fix_cortex_m33_gcc branch February 23, 2021 15:03
@mbedmain mbedmain added release-version: 6.9.0 Release-pending and removed release-type: patch Indentifies a PR as containing just a patch Release-pending labels Mar 15, 2021
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.

7 participants