From: Jan Hubicka Date: Fri, 13 Nov 2020 20:13:51 +0000 (+0100) Subject: Copied arguments are readonly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fca8142bc0b7b7831644f8c7f6d24ebb8a72dbe;p=gcc.git Copied arguments are readonly * attr-fnspec.h (attr_fnspec::arg_readonly_p): Accept '1'...'9'. --- 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) */