aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2010-07-03 21:17:46 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2010-07-03 21:17:46 +0000
commit4d451982e36b1f5a7a8412d9fb36924699aeb223 (patch)
treed86d7f443aa6e8ad1a79e3d696dfd64d64f302db /gcc/expr.c
parent3a0c7e3af1954b05fa1c12ea5818d4d6d62ffea5 (diff)
downloadgcc-4d451982e36b1f5a7a8412d9fb36924699aeb223.zip
gcc-4d451982e36b1f5a7a8412d9fb36924699aeb223.tar.gz
gcc-4d451982e36b1f5a7a8412d9fb36924699aeb223.tar.bz2
c-common.c (IN_GCC_FRONTEND): Do not undef.
2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef. Do not include expr.h (vector_mode_valid_p): Move here. * expr.c (vector_mode_valid_p): Move to c-common.c. * expr.h (vector_mode_valid_p): Do not declare here. * system.h: Poison GCC_EXPR_H in front-ends. * Makefile.in: Update dependencies. From-SVN: r161785
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index a2a8054..d3ef6be 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -10295,39 +10295,6 @@ try_tablejump (tree index_type, tree index_expr, tree minval, tree range,
return 1;
}
-/* Nonzero if the mode is a valid vector mode for this architecture.
- This returns nonzero even if there is no hardware support for the
- vector mode, but we can emulate with narrower modes. */
-
-int
-vector_mode_valid_p (enum machine_mode mode)
-{
- enum mode_class mclass = GET_MODE_CLASS (mode);
- enum machine_mode innermode;
-
- /* Doh! What's going on? */
- if (mclass != MODE_VECTOR_INT
- && mclass != MODE_VECTOR_FLOAT
- && mclass != MODE_VECTOR_FRACT
- && mclass != MODE_VECTOR_UFRACT
- && mclass != MODE_VECTOR_ACCUM
- && mclass != MODE_VECTOR_UACCUM)
- return 0;
-
- /* Hardware support. Woo hoo! */
- if (targetm.vector_mode_supported_p (mode))
- return 1;
-
- innermode = GET_MODE_INNER (mode);
-
- /* We should probably return 1 if requesting V4DI and we have no DI,
- but we have V2DI, but this is probably very unlikely. */
-
- /* If we have support for the inner mode, we can safely emulate it.
- We may not have V2DI, but me can emulate with a pair of DIs. */
- return targetm.scalar_mode_supported_p (innermode);
-}
-
/* Return a CONST_VECTOR rtx for a VECTOR_CST tree. */
static rtx
const_vector_from_tree (tree exp)