Commit 2f029413 authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Vineet Gupta

arc: prefer __section from compiler_attributes.h

Reported-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
Suggested-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent d85f6b93
...@@ -62,15 +62,15 @@ ...@@ -62,15 +62,15 @@
#else /* !__ASSEMBLY__ */ #else /* !__ASSEMBLY__ */
#ifdef CONFIG_ARC_HAS_ICCM #ifdef CONFIG_ARC_HAS_ICCM
#define __arcfp_code __attribute__((__section__(".text.arcfp"))) #define __arcfp_code __section(.text.arcfp)
#else #else
#define __arcfp_code __attribute__((__section__(".text"))) #define __arcfp_code __section(.text)
#endif #endif
#ifdef CONFIG_ARC_HAS_DCCM #ifdef CONFIG_ARC_HAS_DCCM
#define __arcfp_data __attribute__((__section__(".data.arcfp"))) #define __arcfp_data __section(.data.arcfp)
#else #else
#define __arcfp_data __attribute__((__section__(".data"))) #define __arcfp_data __section(.data)
#endif #endif
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
......
...@@ -53,8 +53,7 @@ extern const struct machine_desc __arch_info_begin[], __arch_info_end[]; ...@@ -53,8 +53,7 @@ extern const struct machine_desc __arch_info_begin[], __arch_info_end[];
*/ */
#define MACHINE_START(_type, _name) \ #define MACHINE_START(_type, _name) \
static const struct machine_desc __mach_desc_##_type \ static const struct machine_desc __mach_desc_##_type \
__used \ __used __section(.arch.info.init) = { \
__attribute__((__section__(".arch.info.init"))) = { \
.name = _name, .name = _name,
#define MACHINE_END \ #define MACHINE_END \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment