/* Common VxWorks target definitions for GNU compiler.
- Copyright (C) 2007
+ Copyright (C) 2007, 2008, 2010
Free Software Foundation, Inc.
Contributed by CodeSourcery, Inc.
#include "system.h"
#include "coretypes.h"
#include "target.h"
-#include "toplev.h"
+#include "diagnostic-core.h"
#include "output.h"
#include "tm.h"
#include "tree.h"
*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;
- TREE_CHAIN (field) = next_field;
+ 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;
- TREE_CHAIN (field) = next_field;
+ DECL_CHAIN (field) = next_field;
return field;
}
elt->value = fold_convert (TREE_TYPE (field), tmpl_addr);
elt = VEC_quick_push (constructor_elt, v, NULL);
- field = TREE_CHAIN (field);
+ field = DECL_CHAIN (field);
elt->index = field;
elt->value = build_int_cst (TREE_TYPE (field), 0);
elt = VEC_quick_push (constructor_elt, v, NULL);
- field = TREE_CHAIN (field);
+ field = DECL_CHAIN (field);
elt->index = field;
elt->value = fold_convert (TREE_TYPE (field), DECL_SIZE_UNIT (decl));
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)