From f3da0ead0c5c3772c8322cc4aad8deeb382ef2dd Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 19 Dec 2003 22:21:25 -0500 Subject: tree.c (get_unwidened): Decide whether to narrow a bitfield reference based on TYPE_SIZE... * tree.c (get_unwidened): Decide whether to narrow a bitfield reference based on TYPE_SIZE, not TYPE_PRECISION. * cp/cvt.c (convert_to_void): Don't warn about the RHS of a comma being useless if TREE_NO_UNUSED_WARNING is set. * stmt.c (parse_output_constraint): Warn about in-out constraint that doesn't allow a register. (parse_input_constraint): Warn about matching constraint that doesn't allow a register. From-SVN: r74871 --- gcc/cp/cvt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/cp/cvt.c') diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index 6f4af7d..6d4b961 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -817,7 +817,8 @@ convert_to_void (tree expr, const char *implicit) /* The second part of a compound expr contains the value. */ tree op1 = TREE_OPERAND (expr,1); tree new_op1 = convert_to_void - (op1, implicit ? "right-hand operand of comma" : NULL); + (op1, (implicit && !TREE_NO_UNUSED_WARNING (expr) + ? "right-hand operand of comma" : NULL)); if (new_op1 != op1) { -- cgit v1.1