aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-08-21 11:14:56 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-08-21 11:14:56 +0000
commitc34960677437197ee2859b243cf185c7f873c83b (patch)
treefb7a8b55c4a33c93113444dc8e97c38e7d662cc8 /gcc/tree.h
parent1ea85365b430b5ade1d0b824e5406c006e6ffdb7 (diff)
downloadgcc-c34960677437197ee2859b243cf185c7f873c83b.zip
gcc-c34960677437197ee2859b243cf185c7f873c83b.tar.gz
gcc-c34960677437197ee2859b243cf185c7f873c83b.tar.bz2
Move vector_type_mode to tree.c
...so that it's possible to use TYPE_MODE in tree.h. 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org> gcc/ * stor-layout.h (vector_type_mode): Move to... * tree.h (vector_type_mode): ...here. * stor-layout.c (vector_type_mode): Move to... * tree.c (vector_type_mode): ...here. Include rtl.h and regs.h. From-SVN: r251221
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 9fbf640..47899ce 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1852,7 +1852,8 @@ extern void protected_set_expr_location (tree, location_t);
#define SET_TYPE_MODE(NODE, MODE) \
(TYPE_CHECK (NODE)->type_common.mode = (MODE))
-extern machine_mode element_mode (const_tree t);
+extern machine_mode element_mode (const_tree);
+extern machine_mode vector_type_mode (const_tree);
/* The "canonical" type for this type node, which is used by frontends to
compare the type for equality with another type. If two types are