Check ifunc_resolver only on FUNCTION_DECL
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 24 May 2018 19:51:09 +0000 (19:51 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 24 May 2018 19:51:09 +0000 (12:51 -0700)
commite935be363a4309aaf33239b3a8dd2ec6a142dd1b
treee00d3626a1ebfd42d3ed40330c47f29bf557b0db
parent9635923dc836994fb33352375a8d115e46705d27
Check ifunc_resolver only on FUNCTION_DECL

Since ifunc_resolver is only valid on FUNCTION_DECL, check ifunc_resolver
only on FUNCTION_DECL.

PR target/85900
PR target/85345
* varasm.c (assemble_alias): Check ifunc_resolver only on
FUNCTION_DECL.

From-SVN: r260683
gcc/ChangeLog
gcc/varasm.c