-
Notifications
You must be signed in to change notification settings - Fork 3k
Netsocket/lwIP Stack: Remove support for ARM Compiler 5 #12671
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
0xc0170
merged 1 commit into
ARMmbed:master
from
hugueskamba:hk-netsocket-remove-armc5-support
Apr 20, 2020
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,8 +106,6 @@ typedef int_fast32_t int_fast24_t; | |
#define NS_NORETURN _Noreturn | ||
#elif defined __GNUC__ | ||
#define NS_NORETURN __attribute__((__noreturn__)) | ||
#elif defined __CC_ARM | ||
#define NS_NORETURN __declspec(noreturn) | ||
#elif defined __IAR_SYSTEMS_ICC__ | ||
#define NS_NORETURN __noreturn | ||
#else | ||
|
@@ -117,7 +115,7 @@ typedef int_fast32_t int_fast24_t; | |
|
||
/* C11's "alignas" macro, emulated for integer expressions if necessary */ | ||
#ifndef __alignas_is_defined | ||
#if defined __CC_ARM || defined __TASKING__ | ||
#if defined __TASKING__ | ||
#define alignas(n) __align(n) | ||
#define __alignas_is_defined 1 | ||
#elif (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L) || (defined __cplusplus && __cplusplus >= 201103L) | ||
|
@@ -149,7 +147,7 @@ typedef int_fast32_t int_fast24_t; | |
* static int foo(void) MAYBE_UNUSED; | ||
* ~~~ | ||
*/ | ||
#if defined __CC_ARM || defined __GNUC__ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
#if defined __GNUC__ | ||
#define MAYBE_UNUSED __attribute__((unused)) | ||
#else | ||
#define MAYBE_UNUSED | ||
|
@@ -219,7 +217,7 @@ typedef int_fast32_t int_fast24_t; | |
#else /* C */ | ||
# if __STDC_VERSION__ >= 201112L | ||
# define NS_STATIC_ASSERT(test, str) _Static_assert(test, str); | ||
# elif defined __GNUC__ && NS_GCC_VERSION >= 40600 && !defined __CC_ARM | ||
# elif defined __GNUC__ && NS_GCC_VERSION >= 40600 | ||
# ifdef _Static_assert | ||
/* | ||
* Some versions of glibc cdefs.h (which comes in via <stdint.h> above) | ||
|
@@ -255,7 +253,7 @@ typedef int_fast32_t int_fast24_t; | |
|
||
/** \brief Pragma to suppress warnings about always true/false comparisons | ||
*/ | ||
#if defined __GNUC__ && NS_GCC_VERSION >= 40600 && !defined __CC_ARM | ||
#if defined __GNUC__ && NS_GCC_VERSION >= 40600 | ||
#define NS_FUNNY_COMPARE_OK _Pragma("GCC diagnostic push") \ | ||
_Pragma("GCC diagnostic ignored \"-Wtype-limits\"") | ||
#define NS_FUNNY_COMPARE_RESTORE _Pragma("GCC diagnostic pop") | ||
|
@@ -272,11 +270,7 @@ typedef int_fast32_t int_fast24_t; | |
* components should ensure this is not included by only using it in | ||
* a ifdef blocks providing dummy definitions. | ||
*/ | ||
#ifdef __CC_ARM | ||
// statement is unreachable(111), controlling expression is constant(236), expression has no effect(174), | ||
// function was declared but never referenced(177), variable was set but never used(550) | ||
#define NS_DUMMY_DEFINITIONS_OK _Pragma("diag_suppress=111,236,174,177,550") | ||
#elif defined __IAR_SYSTEMS_ICC__ | ||
#if defined __IAR_SYSTEMS_ICC__ | ||
// controlling expression is constant | ||
#define NS_DUMMY_DEFINITIONS_OK _Pragma("diag_suppress=Pe236") | ||
#else | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 should be
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.
Done.