Line data Source code
1 0 : /*
2 : * Copyright (c) 2020 Synopsys.
3 : * Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
4 : *
5 : * SPDX-License-Identifier: Apache-2.0
6 : */
7 :
8 : #ifndef ZEPHYR_INCLUDE_ARCH_ARC_TOOL_COMPAT_H_
9 : #define ZEPHYR_INCLUDE_ARCH_ARC_TOOL_COMPAT_H_
10 :
11 : #ifdef _ASMLANGUAGE
12 : /*
13 : * GNU toolchain and MWDT (Metware) toolchain have different style for accessing
14 : * arguments in assembly macro. Here is the preprocessor macro to handle the
15 : * difference.
16 : * __CCAC__ is a pre-defined macro of metaware compiler.
17 : */
18 : #if defined(__CCAC__)
19 : #define MACRO_ARG(x) x
20 : #else
21 : #define MACRO_ARG(x) \x
22 : #endif
23 :
24 : #endif /* _ASMLANGUAGE */
25 : #endif /* ZEPHYR_INCLUDE_ARCH_ARC_TOOL_COMPAT_H_ */
|