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

From-SVN: r214783

gcc/ChangeLog
gcc/cgraphunit.c

index 92514dda99b906aeab9755075858ca91b39cf0dc..9118236a7664ca1a4c9165d3e7d7245b7901027d 100644 (file)
@@ -1,3 +1,11 @@
+2014-09-01  Marek Polacek  <polacek@redhat.com>
+
+       Backport from mainline
+       2014-08-19  Marek Polacek  <polacek@redhat.com>
+
+       PR c/61271
+       * cgraphunit.c (handle_alias_pairs): Fix condition.
+
 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
 
        * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
index 7fa8055878c8588bbbda1109d8d17cf284339b30..7dd2c1d559506a9952c794bb04eae7b0b1ed809c 100644 (file)
@@ -1097,7 +1097,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->symbol.decl) == FUNCTION_DECL
+         && (TREE_CODE (target_node->symbol.decl) != FUNCTION_DECL
              || ! DECL_VIRTUAL_P (target_node->symbol.decl))
          && ! lookup_attribute ("weakref", DECL_ATTRIBUTES (p->decl)))
        {