OSDN Git Service

2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / config / vxworks.c
index 94e412d..2445c8b 100644 (file)
@@ -1,5 +1,5 @@
 /* Common VxWorks target definitions for GNU compiler.
-   Copyright (C) 2007, 2008
+   Copyright (C) 2007, 2008, 2010
    Free Software Foundation, Inc.
    Contributed by CodeSourcery, Inc.
 
@@ -24,7 +24,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "coretypes.h"
 #include "target.h"
 #include "diagnostic-core.h"
-#include "toplev.h"
 #include "output.h"
 #include "tm.h"
 #include "tree.h"
@@ -70,19 +69,19 @@ vxworks_emutls_var_fields (tree type, tree *name)
   
   *name = get_identifier ("__tls_var");
   
-  field = build_decl (FIELD_DECL, get_identifier ("size"),
-                     unsigned_type_node);
+  field = build_decl (BUILTINS_LOCATION, FIELD_DECL,
+                     get_identifier ("size"), unsigned_type_node);
   DECL_CONTEXT (field) = type;
   next_field = field;
 
-  field = build_decl (FIELD_DECL, get_identifier ("module_id"),
-                     unsigned_type_node);
+  field = build_decl (BUILTINS_LOCATION, FIELD_DECL,
+                     get_identifier ("module_id"), unsigned_type_node);
   DECL_CONTEXT (field) = type;
   DECL_CHAIN (field) = next_field;
   next_field = field;
 
-  field = build_decl (FIELD_DECL, get_identifier ("offset"),
-                     unsigned_type_node);
+  field = build_decl (BUILTINS_LOCATION, FIELD_DECL,
+                     get_identifier ("offset"), unsigned_type_node);
   DECL_CONTEXT (field) = type;
   DECL_CHAIN (field) = next_field;
 
@@ -120,7 +119,7 @@ vxworks_emutls_var_init (tree var, tree decl, tree tmpl_addr)
   return build_constructor (type, v);
 }
 
-/* Do VxWorks-specific parts of OVERRIDE_OPTIONS.  */
+/* Do VxWorks-specific parts of TARGET_OPTION_OVERRIDE.  */
 
 void
 vxworks_override_options (void)