Copied arguments are readonly

* attr-fnspec.h (attr_fnspec::arg_readonly_p): Accept '1'...'9'.
This commit is contained in:
Jan Hubicka 2020-11-13 21:13:51 +01:00
parent 91004436da
commit 8fca8142bc
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ public:
{
unsigned int idx = arg_idx (i);
gcc_checking_assert (arg_specified_p (i));
return str[idx] == 'r' || str[idx] == 'R';
return str[idx] == 'r' || str[idx] == 'R' || (str[idx] >= '1' && str[idx] <= '9');
}
/* True if memory reached by the argument is read (directly or indirectly) */