1/* Generic asm macros used on many machines.
2   Copyright (C) 1991-2018 Free Software Foundation, Inc.
3   This file is part of the GNU C Library.
4
5   The GNU C Library is free software; you can redistribute it and/or
6   modify it under the terms of the GNU Lesser General Public
7   License as published by the Free Software Foundation; either
8   version 2.1 of the License, or (at your option) any later version.
9
10   The GNU C Library is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public
16   License along with the GNU C Library; if not, see
17   <http://www.gnu.org/licenses/>.  */
18
19#include "libc-symbols.h"
20
21#ifndef C_LABEL
22
23/* Define a macro we can use to construct the asm name for a C symbol.  */
24#ifdef	__STDC__
25#define C_LABEL(name)		name##:
26#else
27#define C_LABEL(name)		name/**/:
28#endif
29
30#endif
31
32/* Mark the end of function named SYM.  This is used on some platforms
33   to generate correct debugging information.  */
34#ifndef END
35#define END(sym)
36#endif
37
38/* Makros to generate eh_frame unwind information.  */
39#ifdef __ASSEMBLER__
40# define cfi_startproc			.cfi_startproc
41# define cfi_endproc			.cfi_endproc
42# define cfi_def_cfa(reg, off)		.cfi_def_cfa reg, off
43# define cfi_def_cfa_register(reg)	.cfi_def_cfa_register reg
44# define cfi_def_cfa_offset(off)	.cfi_def_cfa_offset off
45# define cfi_adjust_cfa_offset(off)	.cfi_adjust_cfa_offset off
46# define cfi_offset(reg, off)		.cfi_offset reg, off
47# define cfi_rel_offset(reg, off)	.cfi_rel_offset reg, off
48# define cfi_register(r1, r2)		.cfi_register r1, r2
49# define cfi_return_column(reg)	.cfi_return_column reg
50# define cfi_restore(reg)		.cfi_restore reg
51# define cfi_same_value(reg)		.cfi_same_value reg
52# define cfi_undefined(reg)		.cfi_undefined reg
53# define cfi_remember_state		.cfi_remember_state
54# define cfi_restore_state		.cfi_restore_state
55# define cfi_window_save		.cfi_window_save
56# define cfi_personality(enc, exp)	.cfi_personality enc, exp
57# define cfi_lsda(enc, exp)		.cfi_lsda enc, exp
58
59#endif
60