xref: /linux/arch/arc/include/asm/dwarf.h (revision 34dc1baba215b826e454b8d19e4f24adbeb7d00d)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2016-17 Synopsys, Inc. (www.synopsys.com)
4  */
5 
6 #ifndef _ASM_ARC_DWARF_H
7 #define _ASM_ARC_DWARF_H
8 
9 #ifdef __ASSEMBLY__
10 
11 #ifdef ARC_DW2_UNWIND_AS_CFI
12 
13 #define CFI_STARTPROC		.cfi_startproc
14 #define CFI_ENDPROC		.cfi_endproc
15 #define CFI_DEF_CFA		.cfi_def_cfa
16 #define CFI_DEF_CFA_OFFSET	.cfi_def_cfa_offset
17 #define CFI_DEF_CFA_REGISTER	.cfi_def_cfa_register
18 #define CFI_OFFSET		.cfi_offset
19 #define CFI_REL_OFFSET		.cfi_rel_offset
20 #define CFI_REGISTER		.cfi_register
21 #define CFI_RESTORE		.cfi_restore
22 #define CFI_UNDEFINED		.cfi_undefined
23 
24 #else
25 
26 #define CFI_IGNORE	#
27 
28 #define CFI_STARTPROC		CFI_IGNORE
29 #define CFI_ENDPROC		CFI_IGNORE
30 #define CFI_DEF_CFA		CFI_IGNORE
31 #define CFI_DEF_CFA_OFFSET	CFI_IGNORE
32 #define CFI_DEF_CFA_REGISTER	CFI_IGNORE
33 #define CFI_OFFSET		CFI_IGNORE
34 #define CFI_REL_OFFSET		CFI_IGNORE
35 #define CFI_REGISTER		CFI_IGNORE
36 #define CFI_RESTORE		CFI_IGNORE
37 #define CFI_UNDEFINED		CFI_IGNORE
38 
39 #endif	/* !ARC_DW2_UNWIND_AS_CFI */
40 
41 #endif	/* __ASSEMBLY__ */
42 
43 #endif	/* _ASM_ARC_DWARF_H */
44