diff options
author | Marek Polacek <polacek@redhat.com> | 2014-08-19 11:35:39 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-08-19 11:35:39 +0000 |
commit | abbb94e679ef9406325721afd77da59d69e7751d (patch) | |
tree | 199fd373ab89f9c966b943a0372f5c42b9db6d15 /gcc/cgraphunit.c | |
parent | 3ef276e4423713be6ff9a0eca4cbbd2bc3180910 (diff) | |
download | gcc-abbb94e679ef9406325721afd77da59d69e7751d.zip gcc-abbb94e679ef9406325721afd77da59d69e7751d.tar.gz gcc-abbb94e679ef9406325721afd77da59d69e7751d.tar.bz2 |
re PR c/61271 (10 * possible coding error with logical not (!))
PR c/61271
* cgraphunit.c (handle_alias_pairs): Fix condition.
From-SVN: r214142
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index d9acc65..2c2006b 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))) { |