]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgcc/config/riscv/riscv-asm.h
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / riscv / riscv-asm.h
1 /* Copyright (C) 2017-2024 Free Software Foundation, Inc.
2
3 This file is free software; you can redistribute it and/or modify it
4 under the terms of the GNU General Public License as published by the
5 Free Software Foundation; either version 3, or (at your option) any
6 later version.
7
8 This file is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
12
13 Under Section 7 of GPL version 3, you are granted additional
14 permissions described in the GCC Runtime Library Exception, version
15 3.1, as published by the Free Software Foundation.
16
17 You should have received a copy of the GNU General Public License and
18 a copy of the GCC Runtime Library Exception along with this program;
19 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
20 <http://www.gnu.org/licenses/>. */
21
22 #define FUNC_TYPE(X) .type X,@function
23 #define FUNC_SIZE(X) .size X,.-X
24
25 #define FUNC_BEGIN(X) \
26 .globl X; \
27 FUNC_TYPE (X); \
28 X:
29
30 #define FUNC_END(X) \
31 FUNC_SIZE(X)
32
33 #define FUNC_ALIAS(X,Y) \
34 .globl X; \
35 X = Y
36
37 #define CONCAT1(a, b) CONCAT2(a, b)
38 #define CONCAT2(a, b) a ## b
39 #define HIDDEN_JUMPTARGET(X) CONCAT1(__hidden_, X)
40 #define HIDDEN_DEF(X) FUNC_ALIAS(HIDDEN_JUMPTARGET(X), X); \
41 .hidden HIDDEN_JUMPTARGET(X)