diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-20 22:36:42 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-20 22:36:42 +0000 |
commit | a97c952ca6abfccfd82641acc186bbd9e83f1dd8 (patch) | |
tree | 6afbe1d7fd19b5b59a51a04e48abe01c100bcb59 /gcc/c-common.c | |
parent | 40d475ee1460e9ab2caaf7eda84a2242adab0f1d (diff) | |
download | gcc-a97c952ca6abfccfd82641acc186bbd9e83f1dd8.tar.gz |
* c-common.c (check_case_value): Adjust comment about stripping
NOPs.
(handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
* c-typeck.c (default_conversion, convert_arguments,
build_modify_expr, convert_for_assignment, store_init_value,
digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
manually. Remove inaccurate comments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96770 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index f8162fc64af..1851836e9df 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -1411,7 +1411,8 @@ check_case_value (tree value) if (value == NULL_TREE) return value; - /* Strip NON_LVALUE_EXPRs since we aren't using as an lvalue. */ + /* ??? Can we ever get nops here for a valid case value? We + shouldn't for C. */ STRIP_TYPE_NOPS (value); /* In C++, the following is allowed: @@ -4934,11 +4935,7 @@ handle_vector_size_attribute (tree *node, tree name, tree args, *no_add_attrs = true; - /* Stripping NON_LVALUE_EXPR allows declarations such as - typedef short v4si __attribute__((vector_size (4 * sizeof(short)))). */ size = TREE_VALUE (args); - if (TREE_CODE (size) == NON_LVALUE_EXPR) - size = TREE_OPERAND (size, 0); if (!host_integerp (size, 1)) { |