Debian Codegraph @

gcc/config/avr/avrlibc.h

raw
1 /* Definitions for AVR 8-bit microcontrollers if configured for AVR-LibC.
2 Copyright (C) 2012-2025 Free Software Foundation, Inc.
3 Contributed by Georg-Johann Lay ([email protected])
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
11
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
20
21 #undef LIB_SPEC
22 #define LIB_SPEC \
23 "%{!mmcu=avr1:-lc} %(avrlibc_devicelib)"
24
25 // AVR-Libc implements functions from libgcc.a in libm.a, see PR54461.
26 // For a list of functions which are provided by libm.a and are
27 // omitted from libgcc.a see libgcc's t-avrlibc.
28
29 #undef LIBGCC_SPEC
30 #define LIBGCC_SPEC \
31 "%{!mmcu=avr1:-lgcc -lm}"
32
33 #undef STARTFILE_SPEC
34 #define STARTFILE_SPEC \
35 " %(avrlibc_startfile) "
36
37 #undef LINK_GCC_C_SEQUENCE_SPEC
38 #define LINK_GCC_C_SEQUENCE_SPEC \
39 "--start-group %G %{!nolibc:%L} --end-group"