1 /* Specs definitions for Atmel AVR back end.
3 Copyright (C) 2012-2018 Free Software Foundation, Inc.
4 Contributed by Georg-Johann Lay (avr@gjlay.de)
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
23 /* Default specs layout. The actual definitions might be superseeded
24 by device- or OS- specific files, like avrlibc.h, ../rtems.h, etc.
25 The specs are repeated in the device specs files. Subspecs are
26 specs known to GCC or specs defined in the device specs files. */
29 #undef CPLUSPLUS_CPP_SPEC
30 #define CPLUSPLUS_CPP_SPEC \
36 "%(cc1_errata_skip) " \
41 #define CC1PLUS_SPEC \
43 "%{!frtti:-fno-rtti} " \
44 "%{!fenforce-eh-specs:-fno-enforce-eh-specs} " \
45 "%{!fexceptions:-fno-exceptions} "
47 #define ASM_RELAX_SPEC \
48 "%{mrelax:--mlink-relax} "
58 #define LINK_ARCH_SPEC \
61 #define LINK_RELAX_SPEC \
67 "%(link_data_start) " \
68 "%(link_text_start) " \
70 "%(link_pmem_wrap) " \
71 "%{shared:%eshared is not supported} "
74 #define LIB_SPEC " %{!mmcu=avr1:-lc} "
77 #define LIBGCC_SPEC " %{!mmcu=avr1:-lgcc} "
79 #define STARTFILE_SPEC ""
80 #define ENDFILE_SPEC ""