]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/rtems.h
Update copyright years in gcc/
[thirdparty/gcc.git] / gcc / config / rtems.h
CommitLineData
76875ef1 1/* Configuration common to all targets running RTEMS.
23a5b65a 2 Copyright (C) 2000-2014 Free Software Foundation, Inc.
76875ef1 3
814499a4 4This file is part of GCC.
76875ef1 5
814499a4 6GCC is free software; you can redistribute it and/or modify
76875ef1 7it under the terms of the GNU General Public License as published by
2f83c7d6 8the Free Software Foundation; either version 3, or (at your option)
76875ef1
JL
9any later version.
10
814499a4 11GCC is distributed in the hope that it will be useful,
76875ef1
JL
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
2f83c7d6
NC
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
76875ef1
JL
19
20/* The system headers under RTEMS are C++-aware. */
1da41015 21#undef NO_IMPLICIT_EXTERN_C
76875ef1 22#define NO_IMPLICIT_EXTERN_C
1d80248e 23
1d80248e
EN
24/*
25 * Dummy start/end specification to let linker work as
26 * needed by autoconf scripts using this compiler.
27 */
28#undef STARTFILE_SPEC
9eb83f6c 29#define STARTFILE_SPEC "crt0.o%s"
1d80248e
EN
30
31#undef ENDFILE_SPEC
9eb83f6c 32#define ENDFILE_SPEC ""
d3daf7bb
RC
33
34/*
35 * Some targets do not set up LIB_SPECS, override it, here.
36 */
37#define STD_LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
38
39#undef LIB_SPEC
40#define LIB_SPEC "%{!qrtems: " STD_LIB_SPEC "} " \
41"%{!nostdlib: %{qrtems: --start-group \
090f6087 42 -lrtemsbsp -lrtemscpu \
d3daf7bb 43 -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"
9c0c4ec7
JM
44
45#define TARGET_POSIX_IO