Warning: That file was not part of the compilation database. It may have many parsing errors.
1 | /* Subroutines for DJGPP. |
---|---|
2 | Copyright (C) 2013-2017 Free Software Foundation, Inc. |
3 | |
4 | This file is part of GCC. |
5 | |
6 | GCC is free software; you can redistribute it and/or modify it under |
7 | the terms of the GNU General Public License as published by the Free |
8 | Software Foundation; either version 3, or (at your option) any later |
9 | version. |
10 | |
11 | GCC is distributed in the hope that it will be useful, but WITHOUT ANY |
12 | WARRANTY; without even the implied warranty of MERCHANTABILITY or |
13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
14 | for more details. |
15 | |
16 | You should have received a copy of the GNU General Public License |
17 | along with GCC; see the file COPYING3. If not see |
18 | <http://www.gnu.org/licenses/>. */ |
19 | |
20 | #include "config.h" |
21 | #include "system.h" |
22 | #include "coretypes.h" |
23 | #include "tm.h" |
24 | #include "output.h" |
25 | #include "lto-section-names.h" |
26 | |
27 | void |
28 | i386_djgpp_asm_named_section(const char *name, unsigned int flags, |
29 | tree) |
30 | { |
31 | char flagchars[8], *f = flagchars; |
32 | |
33 | if (flags & SECTION_WRITE) |
34 | *f++ = 'w'; |
35 | if (flags & SECTION_CODE) |
36 | *f++ = 'x'; |
37 | |
38 | /* LTO sections need 1-byte alignment to avoid confusing the |
39 | zlib decompression algorithm with trailing zero pad bytes. */ |
40 | if (strncmp (name, LTO_SECTION_NAME_PREFIX, |
41 | strlen (LTO_SECTION_NAME_PREFIX)) == 0) |
42 | *f++ = '0'; |
43 | |
44 | *f++ = '\0'; |
45 | |
46 | fprintf (asm_out_file, "\t.section\t%s,\"%s\"\n", name, flagchars); |
47 | } |
48 |
Warning: That file was not part of the compilation database. It may have many parsing errors.