]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/61271 (10 * possible coding error with logical not (!))
authorMarek Polacek <polacek@redhat.com>
Tue, 19 Aug 2014 11:35:39 +0000 (11:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 19 Aug 2014 11:35:39 +0000 (11:35 +0000)
PR c/61271
* cgraphunit.c (handle_alias_pairs): Fix condition.

From-SVN: r214142

gcc/ChangeLog
gcc/cgraphunit.c

index 84fc047503bc2a1a3c0e0631275014af4fd3119e..012c731cd2bfca72bc3e53e30be73ea3be846755 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * gimple-fold.c (fold_gimple_assign): Properly build a
index d9acc65096637fdc6abfde4f3183f62c1fc6d8ba..2c2006b5b6d0d1b04f6c4c528215cdc3013009a1 100644 (file)
@@ -1171,7 +1171,7 @@ handle_alias_pairs (void)
          /* We use local aliases for C++ thunks to force the tailcall
             to bind locally.  This is a hack - to keep it working do
             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))
          && ! lookup_attribute ("weakref", DECL_ATTRIBUTES (p->decl)))
        {