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
+2018-05-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/85900
+ PR target/85345
+ * varasm.c (assemble_alias): Check ifunc_resolver only on
+ FUNCTION_DECL.
+
2018-05-24 Uros Bizjak <ubizjak@gmail.com>
PR target/85903
# else
if (!DECL_WEAK (decl))
{
- if (cgraph_node::get (decl)->ifunc_resolver)
+ if (TREE_CODE (decl) == FUNCTION_DECL
+ && cgraph_node::get (decl)->ifunc_resolver)
error_at (DECL_SOURCE_LOCATION (decl),
"ifunc is not supported in this configuration");
else