summaryrefslogtreecommitdiff
path: root/gcc/config/vxworks.c
diff options
context:
space:
mode:
authorJerome Lambourg <lambourg@adacore.com>2017-06-27 08:54:53 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2017-06-27 08:54:53 +0000
commita93e7e14139f2639da66227294cef81fb58855b4 (patch)
treeea72a8d8973094166a3f0f4cd6d17d0e6f720425 /gcc/config/vxworks.c
parentc103185290d8e69b03ab40678093514821615abd (diff)
vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for 64bit configurations.
2017-06-27 Jerome Lambourg <lambourg@adacore.com> * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for 64bit configurations. (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64. (SIZE_TYPE): Likewise. * config/vxworks.c (vxworks_emutls_var_fields): Use long_unsigned_type_node instead of unsigned_type_node as the offset field type, which is "pointer" mode in emutls.c. From-SVN: r249681
Diffstat (limited to 'gcc/config/vxworks.c')
-rw-r--r--gcc/config/vxworks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/vxworks.c b/gcc/config/vxworks.c
index 547176bb0a7..8f1c78d5207 100644
--- a/gcc/config/vxworks.c
+++ b/gcc/config/vxworks.c
@@ -80,8 +80,10 @@ vxworks_emutls_var_fields (tree type, tree *name)
DECL_CHAIN (field) = next_field;
next_field = field;
+ /* The offset field is declared as an unsigned int with pointer mode. */
field = build_decl (BUILTINS_LOCATION, FIELD_DECL,
- get_identifier ("offset"), unsigned_type_node);
+ get_identifier ("offset"), long_unsigned_type_node);
+
DECL_CONTEXT (field) = type;
DECL_CHAIN (field) = next_field;