From: Jan Hubicka Date: Fri, 13 Nov 2020 20:13:51 +0000 (+0100) Subject: Copied arguments are readonly X-Git-Tag: basepoints/gcc-12~3248 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8fca8142bc0b7b7831644f8c7f6d24ebb8a72dbe;p=thirdparty%2Fgcc.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 b4b49e93fc43..ccc36e1b2181 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) */