From 8fca8142bc0b7b7831644f8c7f6d24ebb8a72dbe Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 13 Nov 2020 21:13:51 +0100 Subject: [PATCH] Copied arguments are readonly * attr-fnspec.h (attr_fnspec::arg_readonly_p): Accept '1'...'9'. --- gcc/attr-fnspec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/attr-fnspec.h b/gcc/attr-fnspec.h index b4b49e93fc4..ccc36e1b218 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) */ -- 2.30.2