Reverting merge from trunk
[official-gcc.git] / gcc / config / avr / avrlibc.h
blob550913460e8074b13c7dc08587be592ab8051da2
1 /* Definitions of target machine for the GNU compiler collection
2 for Atmel AVR micro controller if configured for AVR-Libc.
3 Copyright (C) 2012-2013 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)
11 any later version.
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/>. */
22 /* AVR-Libc implements functions from libgcc.a in libm.a, see PR54461. */
24 #undef LIBGCC_SPEC
25 #define LIBGCC_SPEC \
26 "%{!mmcu=at90s1*:%{!mmcu=attiny11:%{!mmcu=attiny12:%{!mmcu=attiny15:%{!mmcu=attiny28: -lgcc -lm }}}}}"
28 #undef LINK_GCC_C_SEQUENCE_SPEC
29 #define LINK_GCC_C_SEQUENCE_SPEC \
30 "--start-group %G %L --end-group"