]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/sh/embed-elf.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / sh / embed-elf.h
CommitLineData
c8f0269d 1/* Definitions of target machine for GNU compiler for Renesas / SuperH SH
1951818c 2 non-Linux embedded targets.
cbe34bb5 3 Copyright (C) 2002-2017 Free Software Foundation, Inc.
1951818c
R
4 Contributed by J"orn Rennecke <joern.rennecke@superh.com>
5
7ec022b2 6This file is part of GCC.
1951818c 7
7ec022b2 8GCC is free software; you can redistribute it and/or modify
1951818c 9it under the terms of the GNU General Public License as published by
2f83c7d6 10the Free Software Foundation; either version 3, or (at your option)
1951818c
R
11any later version.
12
7ec022b2 13GCC is distributed in the hope that it will be useful,
1951818c
R
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
2f83c7d6
NC
19along with GCC; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
1951818c 21
1951818c
R
22#undef USER_LABEL_PREFIX
23#define USER_LABEL_PREFIX "_"
24
3f1d3526
R
25/* While the speed-optimized implementations of udivsi3_i4i / sdivsi3_i4i
26 in libgcc are not available for SH2, the space-optimized ones in
27 libgcc-Os-4-200 are. Thus, when not optimizing for space, link
28 libgcc-Os-4-200 after libgcc, so that -mdiv=call-table works for -m2. */
25e651ca
AS
29#define LIBGCC_SPEC "%{!shared: \
30 %{m4-100*:-lic_invalidate_array_4-100} \
31 %{m4-200*:-lic_invalidate_array_4-200} \
30b1646e 32 %{m4-300*|m4-340:-lic_invalidate_array_4a %{!Os: -lgcc-4-300}} \
3f1d3526
R
33 %{m4a*:-lic_invalidate_array_4a}} \
34 %{Os: -lgcc-Os-4-200} \
35 -lgcc \
36 %{!Os: -lgcc-Os-4-200}"