From: Marek Polacek Date: Tue, 19 Aug 2014 11:35:39 +0000 (+0000) Subject: re PR c/61271 (10 * possible coding error with logical not (!)) X-Git-Tag: releases/gcc-5.1.0~5383 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abbb94e679ef9406325721afd77da59d69e7751d;p=thirdparty%2Fgcc.git re PR c/61271 (10 * possible coding error with logical not (!)) PR c/61271 * cgraphunit.c (handle_alias_pairs): Fix condition. From-SVN: r214142 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 84fc047503bc..012c731cd2bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-19 Marek Polacek + + PR c/61271 + * cgraphunit.c (handle_alias_pairs): Fix condition. + 2014-08-19 Richard Biener * gimple-fold.c (fold_gimple_assign): Properly build a diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index d9acc6509663..2c2006b5b6d0 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -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))) {