Daily bump.
[official-gcc.git] / gcc / config / avr / avrlibc.h
blob60fce70201c6bef81e9f14d76ab1965bac1f7011
1 /* Definitions for AVR 8-bit microcontrollers if configured for AVR-LibC.
2 Copyright (C) 2012-2024 Free Software Foundation, Inc.
3 Contributed by Georg-Johann Lay (avr@gjlay.de)
5 This file is part of GCC.
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.
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.
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/>. */
21 #undef LIB_SPEC
22 #define LIB_SPEC \
23 "%{!mmcu=avr1:-lc} %(avrlibc_devicelib)"
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.
29 #undef LIBGCC_SPEC
30 #define LIBGCC_SPEC \
31 "%{!mmcu=avr1:-lgcc -lm}"
33 #undef STARTFILE_SPEC
34 #define STARTFILE_SPEC \
35 " %(avrlibc_startfile) "
37 #undef LINK_GCC_C_SEQUENCE_SPEC
38 #define LINK_GCC_C_SEQUENCE_SPEC \
39 "--start-group %G %{!nolibc:%L} --end-group"