Commit abbb94e6 by Marek Polacek Committed by Marek Polacek

re PR c/61271 (10 * possible coding error with logical not (!))

	PR c/61271
	* cgraphunit.c (handle_alias_pairs): Fix condition.

From-SVN: r214142
parent 3ef276e4
2014-08-19 Marek Polacek <polacek@redhat.com>
PR c/61271
* cgraphunit.c (handle_alias_pairs): Fix condition.
2014-08-19 Richard Biener <rguenther@suse.de> 2014-08-19 Richard Biener <rguenther@suse.de>
* gimple-fold.c (fold_gimple_assign): Properly build a * gimple-fold.c (fold_gimple_assign): Properly build a
......
...@@ -1171,7 +1171,7 @@ handle_alias_pairs (void) ...@@ -1171,7 +1171,7 @@ handle_alias_pairs (void)
/* We use local aliases for C++ thunks to force the tailcall /* We use local aliases for C++ thunks to force the tailcall
to bind locally. This is a hack - to keep it working do to bind locally. This is a hack - to keep it working do
the following (which is not strictly correct). */ the following (which is not strictly correct). */
&& (! TREE_CODE (target_node->decl) == FUNCTION_DECL && (TREE_CODE (target_node->decl) != FUNCTION_DECL
|| ! DECL_VIRTUAL_P (target_node->decl)) || ! DECL_VIRTUAL_P (target_node->decl))
&& ! lookup_attribute ("weakref", DECL_ATTRIBUTES (p->decl))) && ! lookup_attribute ("weakref", DECL_ATTRIBUTES (p->decl)))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment