Skip to content

Commit

Permalink
Core: Unify __NO_INIT macro across toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradCvjetkovic authored and JonatanAntoni committed Nov 23, 2023
1 parent e32b987 commit 7002cdf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions CMSIS/Core/Include/cmsis_compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file cmsis_compiler.h
* @brief CMSIS compiler generic header file
* @version V6.0.0
* @date 27. July 2023
* @date 23. November 2023
******************************************************************************/
/*
* Copyright (c) 2009-2023 Arm Limited. All rights reserved.
Expand Down Expand Up @@ -168,7 +168,7 @@
#define __COMPILER_BARRIER() (void)0
#endif
#ifndef __NO_INIT
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
#define __NO_INIT __attribute__ ((section (".noinit")))
#endif
#ifndef __ALIAS
#define __ALIAS(x) __attribute__ ((alias(x)))
Expand Down Expand Up @@ -246,7 +246,7 @@
#define __COMPILER_BARRIER() (void)0
#endif
#ifndef __NO_INIT
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
#define __NO_INIT __attribute__ ((section (".noinit")))
#endif
#ifndef __ALIAS
#define __ALIAS(x) __attribute__ ((alias(x)))
Expand Down Expand Up @@ -323,7 +323,7 @@
#define __COMPILER_BARRIER() (void)0
#endif
#ifndef __NO_INIT
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
#define __NO_INIT __attribute__ ((section (".noinit")))
#endif
#ifndef __ALIAS
#define __ALIAS(x) __attribute__ ((alias(x)))
Expand Down
4 changes: 2 additions & 2 deletions CMSIS/Core/Include/m-profile/cmsis_armclang_m.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file cmsis_armclang_m.h
* @brief CMSIS compiler armclang (Arm Compiler 6) header file
* @version V6.0.0
* @date 27. July 2023
* @date 23. November 2023
******************************************************************************/
/*
* Copyright (c) 2009-2023 Arm Limited. All rights reserved.
Expand Down Expand Up @@ -102,7 +102,7 @@
#define __COMPILER_BARRIER() __ASM volatile("":::"memory")
#endif
#ifndef __NO_INIT
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
#define __NO_INIT __attribute__ ((section (".noinit")))
#endif
#ifndef __ALIAS
#define __ALIAS(x) __attribute__ ((alias(x)))
Expand Down
4 changes: 2 additions & 2 deletions CMSIS/Core/Include/m-profile/cmsis_clang_m.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file cmsis_clang_m.h
* @brief CMSIS compiler LLVM/Clang header file
* @version V1.1.0
* @date 27. July 2023
* @date 23. November 2023
******************************************************************************/
/*
* Copyright (c) 2009-2023 Arm Limited. All rights reserved.
Expand Down Expand Up @@ -107,7 +107,7 @@
#define __COMPILER_BARRIER() __ASM volatile("":::"memory")
#endif
#ifndef __NO_INIT
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
#define __NO_INIT __attribute__ ((section (".noinit")))
#endif
#ifndef __ALIAS
#define __ALIAS(x) __attribute__ ((alias(x)))
Expand Down
4 changes: 2 additions & 2 deletions CMSIS/Core/Include/m-profile/cmsis_gcc_m.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file cmsis_gcc_m.h
* @brief CMSIS compiler GCC header file
* @version V6.0.1
* @date 11. October 2023
* @date 23. November 2023
******************************************************************************/
/*
* Copyright (c) 2009-2023 Arm Limited. All rights reserved.
Expand Down Expand Up @@ -111,7 +111,7 @@
#define __COMPILER_BARRIER() __ASM volatile("":::"memory")
#endif
#ifndef __NO_INIT
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
#define __NO_INIT __attribute__ ((section (".noinit")))
#endif
#ifndef __ALIAS
#define __ALIAS(x) __attribute__ ((alias(x)))
Expand Down
4 changes: 2 additions & 2 deletions CMSIS/Core/Include/m-profile/cmsis_tiarmclang_m.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @file cmsis_tiarmclang_m.h
* @brief CMSIS compiler tiarmclang header file
* @version V1.1.0
* @date 27. July 2023
* @date 23. November 2023
******************************************************************************/
/*
* Copyright (c) 2023 Arm Limited. All rights reserved.
Expand Down Expand Up @@ -102,7 +102,7 @@
#define __COMPILER_BARRIER() __ASM volatile("":::"memory")
#endif
#ifndef __NO_INIT
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
#define __NO_INIT __attribute__ ((section (".noinit")))
#endif
#ifndef __ALIAS
#define __ALIAS(x) __attribute__ ((alias(x)))
Expand Down

0 comments on commit 7002cdf

Please sign in to comment.