Skip to content

mbed-trace: Remove ARM Compiler 5 support #12703

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

Conversation

hugueskamba
Copy link
Collaborator

Summary of changes

ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.

Impact of changes

Breaking change: The binary generated from ARM Compiler 5 cannot be relied on as support has been dropped.

Migration actions required

Use Arm Compiler 6.

Documentation

N/A


Pull request type

[] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[X] 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

@SeppoTakalo @evedon


ARM Compiler 5 is no longer actively supported and was superseded in
Mbed OS by ARM Compiler 6.
@ciarmcom ciarmcom requested review from evedon, SeppoTakalo and a team March 26, 2020 12:00
@ciarmcom
Copy link
Member

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

@mergify mergify bot added needs: CI and removed needs: review labels Mar 26, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Mar 26, 2020

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 27, 2020

Test run: SUCCESS

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

Copy link
Contributor

@SeppoTakalo SeppoTakalo left a comment

Choose a reason for hiding this comment

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

I don't understand the benefit of doing this?

This library might be used on other projects using Arm C 5.

Dropping support from Arm Compiler 5 should not mean that we start actively preventing compilation on it.

@mergify mergify bot added the needs: work label Mar 27, 2020
@evedon
Copy link
Contributor

evedon commented Mar 27, 2020

I don't understand the benefit of doing this?

This library might be used on other projects using Arm C 5.

Dropping support from Arm Compiler 5 should not mean that we start actively preventing compilation on it.

The requirement is to remove any ARMC5 compiler specific code to cleanup the code base.
The benefit is a smaller / cleaner code base.
If we consider that some libraries might be used on other projects and that they should be excluded from this requirement then let's review internally.
@bulislaw

@bulislaw
Copy link
Member

Hi @SeppoTakalo, We are removing ARMC5 support from the OS to simplify the sources, remove dead code and not carry dead weight with us as the compiler is deprecated by DSG. I agree that in this case it doesn't have a big impact on anything. But realistically speaking do you expect anyone removing the sources of mbed-trace from Mbed OS and using it elsewhere? If you think it makes actual sense to keep it for mbed-trace I don't mind omitting this.

@SeppoTakalo
Copy link
Contributor

https://github.com/ARMmbed/mbed-trace/
As its origin, is an external library.
And yes, it is used outside Mbed OS even currently.

I know why ARMC5 code is dropped, and I agree that the dead code should be removed.
But I still propose that some pieces of the code, that exists outside of OS, or where the change could have negative impact, we leave as is.

This trace library is used by Pelion Client on all platforms. I therefore propose that we don't touch it now.

@evedon
Copy link
Contributor

evedon commented Mar 31, 2020

I agree that there is no big impact in keeping ARMC5 references in mbed-trace but we should aim to remove dead code in other libraries. So let's close this PR.

@evedon evedon closed this Mar 31, 2020
@hugueskamba hugueskamba deleted the hk_remove_armc5_support_mbed-trace branch March 31, 2020 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants