]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/config/riscv/riscv-asm.h
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / riscv / riscv-asm.h
CommitLineData
a945c346 1/* Copyright (C) 2017-2024 Free Software Foundation, Inc.
3a4c600f
JW
2
3This file is free software; you can redistribute it and/or modify it
4under the terms of the GNU General Public License as published by the
5Free Software Foundation; either version 3, or (at your option) any
6later version.
7
8This file is distributed in the hope that it will be useful, but
9WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11General Public License for more details.
12
13Under Section 7 of GPL version 3, you are granted additional
14permissions described in the GCC Runtime Library Exception, version
153.1, as published by the Free Software Foundation.
16
17You should have received a copy of the GNU General Public License and
18a copy of the GCC Runtime Library Exception along with this program;
19see 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); \
28X:
29
30#define FUNC_END(X) \
31 FUNC_SIZE(X)
32
33#define FUNC_ALIAS(X,Y) \
34 .globl X; \
35 X = Y
45116f34
NC
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)