2010-09-07 Martin Jambor <mjambor@suse.cz>
PR fortran/43665
* ipa-cp.c (ipcp_versionable_function_p): Return false if there
are any type attributes.
From-SVN: r163960
+2010-09-07 Martin Jambor <mjambor@suse.cz>
+
+ PR fortran/43665
+ * ipa-cp.c (ipcp_versionable_function_p): Return false if there
+ are any type attributes.
+
2010-09-07 Jan Hubicka <jh@suse.cz>
* tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of array_ref_low_bound
{
struct cgraph_edge *edge;
- /* There are a number of generic reasons functions cannot be versioned. */
- if (!node->local.versionable)
+ /* There are a number of generic reasons functions cannot be versioned. We
+ also cannot remove parameters if there are type attributes such as fnspec
+ present. */
+ if (!node->local.versionable
+ || TYPE_ATTRIBUTES (TREE_TYPE (node->decl)))
return false;
/* Removing arguments doesn't work if the function takes varargs