Skip to content

Commit a1d58e0

Browse files
committed
toolchain: gcc: fix extra space when using SECTION_VAR
The generic version of SECTION_VAR() is adding an extra space when calling space before second argument (e.g. SECTION_VAR(section, variable) => ".section. variable" instead of ".section.variable") which would result in build error. So remove the "##" in macro to fix this, and now it will also behave the same as SECTION_FUNC(). Signed-off-by: Daniel Leung <daniel.leung@intel.com>
1 parent e8224c3 commit a1d58e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/toolchain/gcc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ do { \
355355
section_subsec_func sect, subsec, sym
356356
#else /* !CONFIG_ARC */
357357

358-
#define SECTION_VAR(sect, sym) .section .sect.##sym; sym :
358+
#define SECTION_VAR(sect, sym) .section .sect.sym; sym :
359359
#define SECTION_FUNC(sect, sym) \
360360
.section .sect.sym, "ax"; \
361361
FUNC_CODE() \

0 commit comments

Comments
 (0)