annotate gcc/config/avr/specs.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Specs definitions for Atmel AVR back end.
kono
parents:
diff changeset
2
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
3 Copyright (C) 2012-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
4 Contributed by Georg-Johann Lay (avr@gjlay.de)
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 This file is part of GCC.
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
9 it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
10 the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
11 any later version.
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
16 GNU General Public License for more details.
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
19 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
20 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 /* Default specs layout. The actual definitions might be superseeded
kono
parents:
diff changeset
24 by device- or OS- specific files, like avrlibc.h, ../rtems.h, etc.
kono
parents:
diff changeset
25 The specs are repeated in the device specs files. Subspecs are
kono
parents:
diff changeset
26 specs known to GCC or specs defined in the device specs files. */
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 #undef CPLUSPLUS_CPP_SPEC
kono
parents:
diff changeset
30 #define CPLUSPLUS_CPP_SPEC \
kono
parents:
diff changeset
31 "%(cpp)"
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 #undef CC1_SPEC
kono
parents:
diff changeset
34 #define CC1_SPEC \
kono
parents:
diff changeset
35 "%(cc1_n_flash) " \
kono
parents:
diff changeset
36 "%(cc1_errata_skip) " \
kono
parents:
diff changeset
37 "%(cc1_rmw) " \
kono
parents:
diff changeset
38 "%(cc1_absdata) "
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 #undef CC1PLUS_SPEC
kono
parents:
diff changeset
41 #define CC1PLUS_SPEC \
kono
parents:
diff changeset
42 "%(cc1) " \
kono
parents:
diff changeset
43 "%{!frtti:-fno-rtti} " \
kono
parents:
diff changeset
44 "%{!fenforce-eh-specs:-fno-enforce-eh-specs} " \
kono
parents:
diff changeset
45 "%{!fexceptions:-fno-exceptions} "
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 #define ASM_RELAX_SPEC \
kono
parents:
diff changeset
48 "%{mrelax:--mlink-relax} "
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 #undef ASM_SPEC
kono
parents:
diff changeset
51 #define ASM_SPEC \
kono
parents:
diff changeset
52 "%(asm_arch) " \
kono
parents:
diff changeset
53 "%(asm_relax) " \
kono
parents:
diff changeset
54 "%(asm_rmw) " \
kono
parents:
diff changeset
55 "%(asm_gccisr) " \
kono
parents:
diff changeset
56 "%(asm_errata_skip) "
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 #define LINK_ARCH_SPEC \
kono
parents:
diff changeset
59 "%{mmcu=*:-m%*} "
kono
parents:
diff changeset
60
kono
parents:
diff changeset
61 #define LINK_RELAX_SPEC \
kono
parents:
diff changeset
62 "%{mrelax:--relax} "
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 #undef LINK_SPEC
kono
parents:
diff changeset
65 #define LINK_SPEC \
kono
parents:
diff changeset
66 "%(link_arch) " \
kono
parents:
diff changeset
67 "%(link_data_start) " \
kono
parents:
diff changeset
68 "%(link_text_start) " \
kono
parents:
diff changeset
69 "%(link_relax) " \
kono
parents:
diff changeset
70 "%(link_pmem_wrap) " \
kono
parents:
diff changeset
71 "%{shared:%eshared is not supported} "
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 #undef LIB_SPEC
kono
parents:
diff changeset
74 #define LIB_SPEC " %{!mmcu=avr1:-lc} "
kono
parents:
diff changeset
75
kono
parents:
diff changeset
76 #undef LIBGCC_SPEC
kono
parents:
diff changeset
77 #define LIBGCC_SPEC " %{!mmcu=avr1:-lgcc} "
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 #define STARTFILE_SPEC ""
kono
parents:
diff changeset
80 #define ENDFILE_SPEC ""