summaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-10 11:15:14 +0000
committerglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-10 11:15:14 +0000
commit432dd330807c633428562eb7d66ede067fd87262 (patch)
tree28b2392d93f8ced83cd8e4d51d5232f6883088da /gcc/tree.h
parent287e36142a3337a665099426864c94af017a535a (diff)
downloadgcc-432dd330807c633428562eb7d66ede067fd87262.tar.gz
2013-05-10 Marc Glisse <marc.glisse@inria.fr>
gcc/ * stor-layout.c (element_precision): New function. * machmode.h (element_precision): Declare it. * tree.c (build_minus_one_cst): New function. (element_precision): Likewise. * tree.h (build_minus_one_cst): Declare new function. (element_precision): Likewise. * fold-const.c (operand_equal_p): Use element_precision. (fold_binary_loc): Handle vector types. * convert.c (convert_to_integer): Use element_precision. * gimple.c (iterative_hash_canonical_type): Handle complex and vectors separately. gcc/c-family/ * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for vectors. gcc/testsuite/ * gcc.dg/vector-shift.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198772 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index cd1d7613979..a46d276b94a 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4767,6 +4767,7 @@ extern tree build_constructor_va (tree, int, ...);
extern tree build_real_from_int_cst (tree, const_tree);
extern tree build_complex (tree, tree, tree);
extern tree build_one_cst (tree);
+extern tree build_minus_one_cst (tree);
extern tree build_zero_cst (tree);
extern tree build_string (int, const char *);
extern tree build_tree_list_stat (tree, tree MEM_STAT_DECL);
@@ -4867,6 +4868,7 @@ extern bool may_negate_without_overflow_p (const_tree);
extern tree strip_array_types (tree);
extern tree excess_precision_type (tree);
extern bool valid_constant_size_p (const_tree);
+extern unsigned int element_precision (const_tree);
/* Construct various nodes representing fract or accum data types. */