Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/i386/djgpp.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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 } |