-
Notifications
You must be signed in to change notification settings - Fork 3k
Fixed float-abi linker option for CCES exporter. #7011
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
Those
For Debug configuration, linker-script-debug.ld is chosen. If ADuCM4050.ld is not converted, arm-none-eabi-g++ reports |
Hi @li-ho - the issue regarding the LD script is a separate issue IMHO (#6954). This Pull Request is to set the float-abi option properly. Re: LD script issue, we need an update to CrossCore Embedded Studio (CCES) to handle the pre-processing. A JIRA issue has been logged internally and we'll work to update CCES for the next release. |
Hi @andrew-mclachlan, I only share some thoughts for your next PR. Please ignore me. |
flags.remove(flag) | ||
for flag in flags_to_remove: | ||
if flag in container: | ||
container.remove(flag) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you split this rename into another commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my own education, could you clarify why it should be a separate commit? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change (as far as I can tell) is unrelated. I would like to keep the changes related to the fix separate from format/naming changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rename was added because the bug was caused by a confusion over what the two arguments referred to. By renaming the arguments it should avoid such a confusion in the future. You'll notice that there was more change here than just the rename; the container flags are now removed instead of the flags_to_remove flags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks for the explanation!
/morph build |
Build : SUCCESSBuild number : 2178 Triggering tests/morph test |
Test : SUCCESSBuild number : 1966 |
Exporter Build : SUCCESSBuild number : 1803 |
It's coming in during gatekeeping, along with all of the other PRs that are marked "ready for merge". |
Description
This pull request fixes issue #6977. The CCES exporter was incorrectly specifying the float-abi linker option in the .json file. There was also an issue with handling the toolchain cpu options. The CCES exporter was supposed to remove the toolchain cpu options from the linker and compiler flags, but there was a bug preventing it from removing them.
Pull request type