aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/attr-fnspec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/attr-fnspec.h b/gcc/attr-fnspec.h
index b4b49e9..ccc36e1 100644
--- a/gcc/attr-fnspec.h
+++ b/gcc/attr-fnspec.h
@@ -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) */