[rtems commit] Revert "linkersets.h: Fix gcc 12 warning"
Sebastian Huber
sebh at rtems.org
Mon Aug 29 06:45:34 UTC 2022
Module: rtems
Branch: master
Commit: 3d2fbaf4a3a20a166b0488b6df5579210b980167
Changeset: http://git.rtems.org/rtems/commit/?id=3d2fbaf4a3a20a166b0488b6df5579210b980167
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Aug 29 08:53:22 2022 +0200
Revert "linkersets.h: Fix gcc 12 warning"
This reverts commit f930206724e65f188fe3b095826ceb1b11000f65.
The linker set begin must be a symbol and not a zero-initialized item.
---
cpukit/include/rtems/linkersets.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/include/rtems/linkersets.h b/cpukit/include/rtems/linkersets.h
index 45f9dc1ef7..cdfcd54cde 100644
--- a/cpukit/include/rtems/linkersets.h
+++ b/cpukit/include/rtems/linkersets.h
@@ -92,7 +92,7 @@ extern "C" {
extern RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_END( set )[]
#define RTEMS_LINKER_RWSET( set, type ) \
- RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_BEGIN( set )[ 1 ] \
+ RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_BEGIN( set )[ 0 ] \
RTEMS_SECTION( ".rtemsrwset." #set ".begin" ) RTEMS_USED; \
RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_END( set )[ 0 ] \
RTEMS_SECTION( ".rtemsrwset." #set ".end" ) RTEMS_USED
More information about the vc
mailing list