re PR middle-end/56727 (Recursive call goes through the PLT unnecessarily)
authorYury Gribov <tetra2005@gmail.com>
Fri, 21 Jul 2017 19:48:51 +0000 (19:48 +0000)
committerYury Gribov <ygribov@gcc.gnu.org>
Fri, 21 Jul 2017 19:48:51 +0000 (19:48 +0000)
commit325fe81618c822b8cac4fd31c1ec57066ef338cf
treed8eef4564991b0292b0db768be536f9bd4d883cd
parentd5c125ca0cd017c96b5996b8e934a5d755f5a577
re PR middle-end/56727 (Recursive call goes through the PLT unnecessarily)

2017-07-21  Yury Gribov  <tetra2005@gmail.com>

PR middle-end/56727
* ipa-visibility (function_and_variable_visibility): Convert
recursive PLT call to direct call if appropriate.

* gcc.dg/pr56727-1.c: New test.
* gcc.dg/pr56727-2.c: New test.

From-SVN: r250442
gcc/ChangeLog
gcc/ipa-visibility.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr56727-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr56727-2.c [new file with mode: 0644]