diff options
author | Joseph Myers <joseph@codesourcery.com> | 2005-03-20 15:23:50 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2005-03-20 15:23:50 +0000 |
commit | f6d1c3a69b64edc2ff6d10d8ec89456552a5f3a8 (patch) | |
tree | 4b6f9cfd528a8733782d0ef9c585656d6f4190ce /gcc/c-decl.c | |
parent | e498b9f1a0460c20a42d6835470de35d858379da (diff) | |
download | gcc-f6d1c3a69b64edc2ff6d10d8ec89456552a5f3a8.zip gcc-f6d1c3a69b64edc2ff6d10d8ec89456552a5f3a8.tar.gz gcc-f6d1c3a69b64edc2ff6d10d8ec89456552a5f3a8.tar.bz2 |
c-common.c (handle_aligned_attribute, [...]): Do not strip NOPS from INTEGER_CSTs.
* c-common.c (handle_aligned_attribute, check_function_sentinel,
get_nonnull_operand, handle_sentinel_attribute,
check_function_arguments_recurse): Do not strip NOPS from
INTEGER_CSTs.
* c-decl.c (check_bitfield_type_and_width, build_enumerator):
Likewise.
* c-format.c (get_constant): Likewise.
* c-parser.c (c_parser_postfix_expression): Likewise.
* c-typeck.c (set_init_index): Likewise.
(convert_arguments): Don't check for NOP_EXPR containing integer
constant.
From-SVN: r96760
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 42f6561..0b86086 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3637,9 +3637,6 @@ check_bitfield_type_and_width (tree *type, tree *width, const char *orig_name) unsigned HOST_WIDE_INT w; const char *name = orig_name ? orig_name: _("<anonymous>"); - /* Necessary? */ - STRIP_NOPS (*width); - /* Detect and ignore out of range field width and process valid field widths. */ if (!INTEGRAL_TYPE_P (TREE_TYPE (*width)) @@ -5624,10 +5621,6 @@ build_enumerator (tree name, tree value) /* Validate and default VALUE. */ - /* Remove no-op casts from the value. */ - if (value) - STRIP_TYPE_NOPS (value); - if (value != 0) { /* Don't issue more errors for error_mark_node (i.e. an |