From 3dc7d3d323100cecd2da24db2bd33ad48d11bd85 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Thu, 9 Jun 2016 19:06:02 -0500 Subject: [PATCH 1/2] Fixed issue with stricter alignment than stack in IAR --- TESTS/mbedmicro-mbed/attributes/attributes.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TESTS/mbedmicro-mbed/attributes/attributes.c b/TESTS/mbedmicro-mbed/attributes/attributes.c index f8ad7f7a40..1130b43461 100644 --- a/TESTS/mbedmicro-mbed/attributes/attributes.c +++ b/TESTS/mbedmicro-mbed/attributes/attributes.c @@ -29,15 +29,15 @@ int testPacked() { } +MBED_ALIGN(8) char a; +MBED_ALIGN(8) char b; +MBED_ALIGN(16) char c; +MBED_ALIGN(8) char d; +MBED_ALIGN(16) char e; + int testAlign() { int failed = 0; - MBED_ALIGN(8) char a; - MBED_ALIGN(8) char b; - MBED_ALIGN(16) char c; - MBED_ALIGN(8) char d; - MBED_ALIGN(16) char e; - if(((uintptr_t)&a) & 0x7){ failed++; } From 8300c2ea471c99e388d26a2088535b059aaa5641 Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Fri, 10 Jun 2016 12:06:17 +0100 Subject: [PATCH 2/2] Workaround for collision of _UP in IAR --- TESTS/mbed_drivers/stl_features/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TESTS/mbed_drivers/stl_features/main.cpp b/TESTS/mbed_drivers/stl_features/main.cpp index ec99282d45..2cfbd2b50c 100644 --- a/TESTS/mbed_drivers/stl_features/main.cpp +++ b/TESTS/mbed_drivers/stl_features/main.cpp @@ -14,6 +14,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#include "mbed.h" +#include "greentea-client/test_env.h" +#include "unity/unity.h" +#include "utest/utest.h" #include #include #include @@ -22,10 +26,6 @@ #include #include #include -#include "mbed.h" -#include "greentea-client/test_env.h" -#include "unity/unity.h" -#include "utest/utest.h" using namespace utest::v1;