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))))
56#define __printf_like(f, a)
71#define INT8_C(x) __INT8_C(x)
75#define __UINT8_C(x) x ## U
79#define UINT8_C(x) __UINT8_C(x)
87#define INT16_C(x) __INT16_C(x)
91#define __UINT16_C(x) x ## U
95#define UINT16_C(x) __UINT16_C(x)
103#define INT32_C(x) __INT32_C(x)
107#define __UINT32_C(x) x ## U
111#define UINT32_C(x) __UINT32_C(x)
115#define __INT64_C(x) x
119#define INT64_C(x) __INT64_C(x)
123#define __UINT64_C(x) x ## ULL
127#define UINT64_C(x) __UINT64_C(x)
131#define __INTMAX_C(x) x
135#define INTMAX_C(x) __INTMAX_C(x)
139#define __UINTMAX_C(x) x ## ULL
143#define UINTMAX_C(x) __UINTMAX_C(x)
150#define __COUNTER__ __LINE__
153#ifndef __GCC_LINKER_CMD__
154#include <xtensa/config/core.h>
161#if XCHAL_MEMORY_ORDER == XTHAL_BIGENDIAN
162#define __BYTE_ORDER__ __ORDER_BIG_ENDIAN__
163#elif XCHAL_MEMORY_ORDER == XTHAL_LITTLEENDIAN
164#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
166#error "Cannot determine __BYTE_ORDER__"
171#define __builtin_unreachable() __builtin_trap()
174#define __sync_synchronize() do { __asm__ __volatile__ ("" ::: "memory"); } \