Always load function pointer into a stack variable
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 20 Nov 2014 19:29:45 +0000 (11:29 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 20 Nov 2014 19:29:45 +0000 (11:29 -0800)
commit731885c1add5b5012654fe1a70572f033c8d21f8
treef96c140d3301f41b2a3d236ca5fa057827927fdb
parent5f7cbeec7d698c4881ffbb55d9c3288536098d32
Always load function pointer into a stack variable

This patch makes sure that compiler won't optimize out loading function
into a stack variable.

* ld-ifunc/ifunc-main.c (get_bar): New function.
(main): Use it.
ld/testsuite/ChangeLog
ld/testsuite/ld-ifunc/ifunc-main.c