aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2003-06-13 19:27:29 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2003-06-13 19:27:29 +0000
commit9f629a219154cf0b501355215fb3b73f0a2b71b2 (patch)
tree375c2980e48a746e92597d9b8fcfa28dfa34bdc9 /gcc/c-common.c
parente15bb5c692fb17d5c56a0b0c9c60022186f6a539 (diff)
downloadgcc-9f629a219154cf0b501355215fb3b73f0a2b71b2.zip
gcc-9f629a219154cf0b501355215fb3b73f0a2b71b2.tar.gz
gcc-9f629a219154cf0b501355215fb3b73f0a2b71b2.tar.bz2
c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
2003-06-13 Aldy Hernandez <aldyh@redhat.com> * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro. * simplify-rtx.c (simplify_subreg): Same. * emit-rtl.c (gen_lowpart_common): Same. From-SVN: r67911
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index d194012..30a7db7 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -5215,9 +5215,7 @@ handle_mode_attribute (node, name, args, flags, no_add_attrs)
{
/* If this is a vector, make sure we either have hardware
support, or we can emulate it. */
- if ((GET_MODE_CLASS (mode) == MODE_VECTOR_INT
- || GET_MODE_CLASS (mode) == MODE_VECTOR_FLOAT)
- && !vector_mode_valid_p (mode))
+ if (VECTOR_MODE_P (mode) && !vector_mode_valid_p (mode))
{
error ("unable to emulate '%s'", GET_MODE_NAME (mode));
return NULL_TREE;