aboutsummaryrefslogtreecommitdiff
path: root/gcc/f
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2004-04-01 13:41:37 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2004-04-01 08:41:37 -0500
commita150de295117d1e8f76a01180541eff7d0eb380c (patch)
tree4f85aaf350d91ff190852cf8f384d2a7a686b351 /gcc/f
parent0c250f07daed7878b5db0ca1cc48acf92464f2eb (diff)
downloadgcc-a150de295117d1e8f76a01180541eff7d0eb380c.zip
gcc-a150de295117d1e8f76a01180541eff7d0eb380c.tar.gz
gcc-a150de295117d1e8f76a01180541eff7d0eb380c.tar.bz2
expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
* expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED. * stor-layout.c (layout_decl): Likewise. * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED. * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED. * print-tree.c (print_node): Handle various used of unsigned_flag. * tree.def (BIT_FIELD_REF): Update comment. * tree.h (TREE_UNSIGNED): Deleted. (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros. * cp/class.c (VTT_TOP_LEVEL_P): Use unsigned_flag directly. * f/com.c (ffe_truthvalue_conversion, case COMPONENT_REF): Use DECL_UNSIGNED and integer_onep. From-SVN: r80293
Diffstat (limited to 'gcc/f')
-rw-r--r--gcc/f/ChangeLog5
-rw-r--r--gcc/f/com.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog
index f81e5a3..be92b29 100644
--- a/gcc/f/ChangeLog
+++ b/gcc/f/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * com.c (ffe_truthvalue_conversion, case COMPONENT_REF):
+ Use DECL_UNSIGNED and integer_onep.
+
2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* com.c (ffecom_arrayref_): Use TYPE_UNSIGNED, not TREE_UNSIGNED.
diff --git a/gcc/f/com.c b/gcc/f/com.c
index 178326b..ab6fc1b 100644
--- a/gcc/f/com.c
+++ b/gcc/f/com.c
@@ -14754,8 +14754,8 @@ ffe_truthvalue_conversion (tree expr)
#if 0
case COMPONENT_REF:
/* A one-bit unsigned bit-field is already acceptable. */
- if (1 == TREE_INT_CST_LOW (DECL_SIZE (TREE_OPERAND (expr, 1)))
- && TREE_UNSIGNED (TREE_OPERAND (expr, 1)))
+ if (integer_onep (DECL_SIZE (TREE_OPERAND (expr, 1)))
+ && DECL_UNSIGNED (TREE_OPERAND (expr, 1)))
return expr;
break;
#endif