/* Common VxWorks target definitions for GNU compiler.
- Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
+ Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2010
Free Software Foundation, Inc.
Contributed by Wind River Systems.
Rewritten by CodeSourcery, LLC.
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
+/* Assert that we are targetting VxWorks. */
+#undef TARGET_VXWORKS
+#define TARGET_VXWORKS 1
+
/* In kernel mode, VxWorks provides all the libraries itself, as well as
the functionality of startup files, etc. In RTP mode, it behaves more
like a traditional Unix, with more external files. Most of our specs
"%{!mrtp:-r} \
%{!shared: \
%{mrtp:-q %{h*} \
- %{R*} %{!Wl,-T*: %{!T*: %(link_start) }} \
+ %{R*} %{!T*: %(link_start) } \
%(link_target) %(link_os)}} \
%{v:-v} \
%{shared:-shared} \
#define VXWORKS_STARTFILE_SPEC "%{mrtp:%{!shared:-l:crt0.o}}"
#define VXWORKS_ENDFILE_SPEC ""
-/* Do VxWorks-specific parts of OVERRIDE_OPTIONS. */
+/* Do VxWorks-specific parts of TARGET_OPTION_OVERRIDE. */
#undef VXWORKS_OVERRIDE_OPTIONS
#define VXWORKS_OVERRIDE_OPTIONS vxworks_override_options ()
extern void vxworks_override_options (void);
#undef VXWORKS_GOTT_INDEX
#define VXWORKS_GOTT_INDEX "__GOTT_INDEX__"
-/* As for svr4.h (which not all VxWorks targets include). */
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "int"