OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / config / vxworks.h
index 64ff220..04ee945 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
@@ -20,6 +20,10 @@ You should have received a copy of the GNU General Public License
 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
@@ -56,7 +60,7 @@ along with GCC; see the file COPYING3.  If not see
 "%{!mrtp:-r}                                           \
  %{!shared:                                            \
    %{mrtp:-q %{h*}                                     \
-          %{R*} %{!Wl,-T*: %{!T*: %(link_start) }}     \
+          %{R*} %{!T*: %(link_start) }                 \
           %(link_target) %(link_os)}}                  \
  %{v:-v}                                               \
  %{shared:-shared}                                     \
@@ -80,7 +84,7 @@ along with GCC; see the file COPYING3.  If not see
 #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);
@@ -105,7 +109,6 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority);
 #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"