diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-19 11:35:39 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-19 11:35:39 +0000 |
commit | e4b77b718fe1ccede97ae45696402179be5976b0 (patch) | |
tree | 199fd373ab89f9c966b943a0372f5c42b9db6d15 | |
parent | 6f3644203b1c41a94ad44308df26046aa7112ecb (diff) | |
download | gcc-e4b77b718fe1ccede97ae45696402179be5976b0.tar.gz |
PR c/61271
* cgraphunit.c (handle_alias_pairs): Fix condition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214142 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cgraphunit.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 84fc047503b..012c731cd2b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index d9acc650966..2c2006b5b6d 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))) { |