7#ifndef ZEPHYR_INCLUDE_TOOLCHAIN_XCC_H_
8#define ZEPHYR_INCLUDE_TOOLCHAIN_XCC_H_
10#ifndef ZEPHYR_INCLUDE_TOOLCHAIN_H_
11#error Please do not include toolchain-specific headers directly, use <zephyr/toolchain.h> instead
22#define __in_section_unique(seg) \
23 __attribute__((section("." STRINGIFY(seg) "." STRINGIFY(__COUNTER__))))
25#define __in_section_unique_named(seg, name) \
26 __attribute__((section("." STRINGIFY(seg) \
27 "." STRINGIFY(__COUNTER__) \
28 "." STRINGIFY(name))))
46#undef TOOLCHAIN_PRAGMA_UNROLL
58#define __printf_like(f, a)
73#define INT8_C(x) __INT8_C(x)
77#define __UINT8_C(x) x ## U
81#define UINT8_C(x) __UINT8_C(x)
89#define INT16_C(x) __INT16_C(x)
93#define __UINT16_C(x) x ## U
97#define UINT16_C(x) __UINT16_C(x)
101#define __INT32_C(x) x
105#define INT32_C(x) __INT32_C(x)
109#define __UINT32_C(x) x ## U
113#define UINT32_C(x) __UINT32_C(x)
117#define __INT64_C(x) x
121#define INT64_C(x) __INT64_C(x)
125#define __UINT64_C(x) x ## ULL
129#define UINT64_C(x) __UINT64_C(x)
133#define __INTMAX_C(x) x
137#define INTMAX_C(x) __INTMAX_C(x)
141#define __UINTMAX_C(x) x ## ULL
145#define UINTMAX_C(x) __UINTMAX_C(x)
152#define __COUNTER__ __LINE__
155#ifndef __GCC_LINKER_CMD__
156#include <xtensa/config/core.h>
163#if XCHAL_MEMORY_ORDER == XTHAL_BIGENDIAN
164#define __BYTE_ORDER__ __ORDER_BIG_ENDIAN__
165#elif XCHAL_MEMORY_ORDER == XTHAL_LITTLEENDIAN
166#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
168#error "Cannot determine __BYTE_ORDER__"
173#define __builtin_unreachable() __builtin_trap()
176#define __sync_synchronize() do { __asm__ __volatile__ ("" ::: "memory"); } \