diff options
author | Jason Merrill <jason@redhat.com> | 2003-12-19 22:21:25 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-12-19 22:21:25 -0500 |
commit | f3da0ead0c5c3772c8322cc4aad8deeb382ef2dd (patch) | |
tree | 9bb4e10d802613726fd9fcebe175b05cee831ce4 /gcc/cp/cvt.c | |
parent | 46eb4b398948ddef881e51b9c49d96e242d56002 (diff) | |
download | gcc-f3da0ead0c5c3772c8322cc4aad8deeb382ef2dd.zip gcc-f3da0ead0c5c3772c8322cc4aad8deeb382ef2dd.tar.gz gcc-f3da0ead0c5c3772c8322cc4aad8deeb382ef2dd.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |