Skip to content

Commit 7002cdf

Browse files
MiloradCvjetkovicJonatanAntoni
authored andcommitted
Core: Unify __NO_INIT macro across toolchains
1 parent e32b987 commit 7002cdf

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

CMSIS/Core/Include/cmsis_compiler.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @file cmsis_compiler.h
33
* @brief CMSIS compiler generic header file
44
* @version V6.0.0
5-
* @date 27. July 2023
5+
* @date 23. November 2023
66
******************************************************************************/
77
/*
88
* Copyright (c) 2009-2023 Arm Limited. All rights reserved.
@@ -168,7 +168,7 @@
168168
#define __COMPILER_BARRIER() (void)0
169169
#endif
170170
#ifndef __NO_INIT
171-
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
171+
#define __NO_INIT __attribute__ ((section (".noinit")))
172172
#endif
173173
#ifndef __ALIAS
174174
#define __ALIAS(x) __attribute__ ((alias(x)))
@@ -246,7 +246,7 @@
246246
#define __COMPILER_BARRIER() (void)0
247247
#endif
248248
#ifndef __NO_INIT
249-
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
249+
#define __NO_INIT __attribute__ ((section (".noinit")))
250250
#endif
251251
#ifndef __ALIAS
252252
#define __ALIAS(x) __attribute__ ((alias(x)))
@@ -323,7 +323,7 @@
323323
#define __COMPILER_BARRIER() (void)0
324324
#endif
325325
#ifndef __NO_INIT
326-
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
326+
#define __NO_INIT __attribute__ ((section (".noinit")))
327327
#endif
328328
#ifndef __ALIAS
329329
#define __ALIAS(x) __attribute__ ((alias(x)))

CMSIS/Core/Include/m-profile/cmsis_armclang_m.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @file cmsis_armclang_m.h
33
* @brief CMSIS compiler armclang (Arm Compiler 6) header file
44
* @version V6.0.0
5-
* @date 27. July 2023
5+
* @date 23. November 2023
66
******************************************************************************/
77
/*
88
* Copyright (c) 2009-2023 Arm Limited. All rights reserved.
@@ -102,7 +102,7 @@
102102
#define __COMPILER_BARRIER() __ASM volatile("":::"memory")
103103
#endif
104104
#ifndef __NO_INIT
105-
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
105+
#define __NO_INIT __attribute__ ((section (".noinit")))
106106
#endif
107107
#ifndef __ALIAS
108108
#define __ALIAS(x) __attribute__ ((alias(x)))

CMSIS/Core/Include/m-profile/cmsis_clang_m.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @file cmsis_clang_m.h
33
* @brief CMSIS compiler LLVM/Clang header file
44
* @version V1.1.0
5-
* @date 27. July 2023
5+
* @date 23. November 2023
66
******************************************************************************/
77
/*
88
* Copyright (c) 2009-2023 Arm Limited. All rights reserved.
@@ -107,7 +107,7 @@
107107
#define __COMPILER_BARRIER() __ASM volatile("":::"memory")
108108
#endif
109109
#ifndef __NO_INIT
110-
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
110+
#define __NO_INIT __attribute__ ((section (".noinit")))
111111
#endif
112112
#ifndef __ALIAS
113113
#define __ALIAS(x) __attribute__ ((alias(x)))

CMSIS/Core/Include/m-profile/cmsis_gcc_m.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @file cmsis_gcc_m.h
33
* @brief CMSIS compiler GCC header file
44
* @version V6.0.1
5-
* @date 11. October 2023
5+
* @date 23. November 2023
66
******************************************************************************/
77
/*
88
* Copyright (c) 2009-2023 Arm Limited. All rights reserved.
@@ -111,7 +111,7 @@
111111
#define __COMPILER_BARRIER() __ASM volatile("":::"memory")
112112
#endif
113113
#ifndef __NO_INIT
114-
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
114+
#define __NO_INIT __attribute__ ((section (".noinit")))
115115
#endif
116116
#ifndef __ALIAS
117117
#define __ALIAS(x) __attribute__ ((alias(x)))

CMSIS/Core/Include/m-profile/cmsis_tiarmclang_m.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @file cmsis_tiarmclang_m.h
33
* @brief CMSIS compiler tiarmclang header file
44
* @version V1.1.0
5-
* @date 27. July 2023
5+
* @date 23. November 2023
66
******************************************************************************/
77
/*
88
* Copyright (c) 2023 Arm Limited. All rights reserved.
@@ -102,7 +102,7 @@
102102
#define __COMPILER_BARRIER() __ASM volatile("":::"memory")
103103
#endif
104104
#ifndef __NO_INIT
105-
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
105+
#define __NO_INIT __attribute__ ((section (".noinit")))
106106
#endif
107107
#ifndef __ALIAS
108108
#define __ALIAS(x) __attribute__ ((alias(x)))

0 commit comments

Comments
 (0)