-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix build with modern GCC #933
Conversation
Hi @Forty-Bot |
On 12/22/23 05:10, Rahul Kar wrote:
Hi @Forty-Bot <https://github.com/Forty-Bot>
Please let us know the version of the msp430-gcc compiler you are using. It will be useful to reproduce the issue you are facing.
Thanks.
$ msp430-elf-gcc --version
msp430-elf-gcc (GCC) 13.1.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #933 +/- ##
=======================================
Coverage 93.78% 93.78%
=======================================
Files 6 6
Lines 3186 3186
Branches 885 885
=======================================
Hits 2988 2988
Misses 91 91
Partials 107 107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@Forty-Bot can you bring this branch up to date? Then we can merge and address the other PR. |
Apparently at some point in the past, GCC (or TI's GCC) used to define these attributes. Define them ourselves so that we can compile the demo application.
If a return type of a function is not specified, it defaults to int. Set the return type of interrupts to void to avoid warnings.
portPOINTER_SIZE_TYPE defaults to uint32_t if undefined. Define it to uint16_t, which is correct for this port.
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Building the msp430_GCC demo produces several errors and compiler warnings. These patches fix the errors and address the warnings.