]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/lto-section-names.h
PR fortran/95090 - ICE: identifier overflow
[thirdparty/gcc.git] / gcc / lto-section-names.h
CommitLineData
4000360e 1/* Definitions for LTO section names.
8d9254fc 2 Copyright (C) 2013-2020 Free Software Foundation, Inc.
4000360e
BS
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
f1717f8d
KC
20#ifndef GCC_LTO_SECTION_NAMES_H
21#define GCC_LTO_SECTION_NAMES_H
22
4000360e
BS
23/* The string that is the prefix on the section names we make for lto.
24 For decls the DECL_ASSEMBLER_NAME is appended to make the section
25 name for the functions and static_initializers. For other types of
26 sections a '.' and the section type are appended. */
27#define LTO_SECTION_NAME_PREFIX ".gnu.lto_"
1f6be682
IV
28#define OFFLOAD_SECTION_NAME_PREFIX ".gnu.offload_lto_"
29
30/* Can be either OFFLOAD_SECTION_NAME_PREFIX when we stream IR for offload
31 compiler, or LTO_SECTION_NAME_PREFIX for LTO case. */
32extern const char *section_name_prefix;
4000360e
BS
33
34/* Segment name for LTO sections. This is only used for Mach-O. */
35
36#define LTO_SEGMENT_NAME "__GNU_LTO"
f1717f8d 37
ec6fe917
IV
38#define OFFLOAD_VAR_TABLE_SECTION_NAME ".gnu.offload_vars"
39#define OFFLOAD_FUNC_TABLE_SECTION_NAME ".gnu.offload_funcs"
40
f1717f8d 41#endif /* GCC_LTO_SECTION_NAMES_H */