gcc/gcc/cp
Ian Lance Taylor fbc8d2d30e c-common.c (c_common_truthvalue_conversion): When warning about using an assignment as a truth value, set TREE_NO_WARNING.
./:	* c-common.c (c_common_truthvalue_conversion): When warning about
	using an assignment as a truth value, set TREE_NO_WARNING.
cp/:
	* semantics.c (maybe_convert_cond): Optionally warn when using an
	assignment as a condition.
	* typeck.c (convert_for_assignment): Optionally warn about
	assigning the result of an assignment to a bool.
testsuite/:
	* g++.dg/warn/Wparentheses-22.C: New test.
	* g++.dg/warn/Wparentheses-23.C: New test.

From-SVN: r120348
2007-01-02 17:49:07 +00:00
..
ChangeLog c-common.c (c_common_truthvalue_conversion): When warning about using an assignment as a truth value, set TREE_NO_WARNING. 2007-01-02 17:49:07 +00:00
ChangeLog-1993 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-1994 Remove extra white spacing at end of lines. 2005-06-14 20:01:59 +00:00
ChangeLog-1995 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-1996 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-1997 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-1998 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-1999 Canonicalize whitespace. 2005-06-15 00:41:35 +00:00
ChangeLog-2000 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-2001 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-2002 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-2003 Canonicalize whitespace. 2005-06-15 00:41:35 +00:00
ChangeLog-2004 Canonicalize whitespace. 2005-06-15 00:41:35 +00:00
ChangeLog.tree-ssa Canonicalize whitespace. 2005-06-15 00:41:35 +00:00
Make-lang.in decl.c: Include langhooks.h. 2006-10-23 19:47:58 +00:00
NEWS Canonicalize whitespace. 2005-06-15 00:41:35 +00:00
call.c re PR c++/29632 (ICE on invalid code: regenerate_decl_from_template, at cp/pt.c:10969) 2006-12-04 18:00:32 +00:00
cfns.gperf
cfns.h Fix up whitespacing 2006-06-06 11:44:09 +00:00
class.c class.c (build_vcall_offset_vtbl_entries): Do not add vcall entries for a primary construction virtual table. 2006-11-28 02:19:02 +00:00
config-lang.in cp-lang.c (shadowed_var_for_decl, [...]): Move over to cp-objcp-common.c. 2005-07-09 08:45:09 -07:00
cp-gimplify.c Merge gimple-tuples-branch into mainline. 2006-12-05 17:26:05 +00:00
cp-lang.c In gcc/: 2006-11-01 05:16:14 +00:00
cp-objcp-common.c cp-objcp-common.c (cp_expr_size): Return NULL in the case size is undefined. 2006-12-04 22:51:42 +00:00
cp-objcp-common.h In gcc/: 2006-11-01 05:16:14 +00:00
cp-tree.def cp-tree.def (STATIC_ASSERT): New. 2006-11-21 20:23:03 +00:00
cp-tree.h c-common.c (c_common_nodes_and_builtins): Since variants of void_type_node get built before it is given a name... 2007-01-02 14:23:26 +00:00
cvt.c re PR c++/29734 (ICE with vector in switch condition) 2006-11-21 10:41:27 +01:00
cxx-pretty-print.c cp-tree.def (STATIC_ASSERT): New. 2006-11-21 20:23:03 +00:00
cxx-pretty-print.h call.c: Fix comment typo(s). 2005-07-21 10:33:31 +00:00
decl.c c-common.c (c_common_nodes_and_builtins): Since variants of void_type_node get built before it is given a name... 2007-01-02 14:23:26 +00:00
decl.h Update FSF address. 2005-06-25 00:59:41 +00:00
decl2.c * decl2.c: Fix a comment typo. 2006-12-28 06:48:38 +00:00
dump.c tree-dump.h (dump_string_field): Declare. 2005-07-03 06:50:51 +00:00
error.c re PR c++/14329 ([4.1 only] badly formatted warnings for SRA replacements used uninitialized) 2006-12-03 18:24:42 -08:00
except.c re PR c++/28878 (ICE using "[" instead of "{") 2006-09-02 08:54:04 +02:00
expr.c * expr.c (cxx_expand_expr): Call gcc_unreachable instead of abort. 2005-12-07 21:55:19 +00:00
friend.c re PR c++/29475 (incomplete template diagnostics.) 2006-11-20 21:15:44 +00:00
g++spec.c re PR driver/28528 (C language extensions override -x in C++ driver) 2006-08-25 00:24:10 +00:00
init.c re PR c++/29475 (incomplete template diagnostics.) 2006-11-20 21:15:44 +00:00
lang-specs.h re PR driver/28528 (C language extensions override -x in C++ driver) 2006-08-25 00:24:10 +00:00
lex.c cp-tree.def (STATIC_ASSERT): New. 2006-11-21 20:23:03 +00:00
mangle.c call.c (build_op_delete_call): Test user-visible type against size_type_node... 2006-11-04 00:51:51 +00:00
method.c decl.c (poplevel): Check DECL_INITIAL invariant. 2006-12-01 23:01:05 +00:00
name-lookup.c * name-lookup.c: Follow spelling conventions. 2006-12-02 01:44:17 +00:00
name-lookup.h Fix up whitespacing 2006-06-06 11:44:09 +00:00
operators.def re PR c++/28288 (ICE with min/max operator) 2006-08-14 23:13:54 +00:00
optimize.c re PR c++/30168 (C++ constructors can cause invalid gimple to happen with complex typed variables) 2006-12-21 23:30:55 -08:00
parser.c re PR c++/29731 (ICE with statement expression as template parameter) 2006-12-31 16:09:07 +00:00
pt.c pt.c (canonical_template_parms): Correct typo in comment. 2007-01-02 14:26:29 +00:00
ptree.c Fix up whitespacing 2006-06-06 11:44:09 +00:00
repo.c re PR c++/26917 (ICE with -frepo on invalid code) 2006-09-02 08:52:24 +02:00
rtti.c rtti.c (get_tinfo_decl): Handle return value from pushdecl_top_level_and_finish. 2006-11-30 21:53:57 +00:00
search.c re PR c++/29475 (incomplete template diagnostics.) 2006-11-20 21:15:44 +00:00
semantics.c c-common.c (c_common_truthvalue_conversion): When warning about using an assignment as a truth value, set TREE_NO_WARNING. 2007-01-02 17:49:07 +00:00
tree.c c-common.c (c_common_nodes_and_builtins): Since variants of void_type_node get built before it is given a name... 2007-01-02 14:23:26 +00:00
typeck.c c-common.c (c_common_truthvalue_conversion): When warning about using an assignment as a truth value, set TREE_NO_WARNING. 2007-01-02 17:49:07 +00:00
typeck2.c re PR c++/26884 (Misleading diagnostic for invalid array initializer) 2006-10-18 10:57:18 +00:00