diff options
author | Jan Hubicka <jh@suse.cz> | 2020-11-13 21:13:51 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-11-13 21:14:37 +0100 |
commit | 8fca8142bc0b7b7831644f8c7f6d24ebb8a72dbe (patch) | |
tree | 2e1b277985eef6c66b7a2a51a1a3049f47059294 /gcc/attr-fnspec.h | |
parent | 91004436daaf8d54daa467908d1b634a1a352707 (diff) | |
download | gcc-8fca8142bc0b7b7831644f8c7f6d24ebb8a72dbe.zip gcc-8fca8142bc0b7b7831644f8c7f6d24ebb8a72dbe.tar.gz gcc-8fca8142bc0b7b7831644f8c7f6d24ebb8a72dbe.tar.bz2 |
Copied arguments are readonly
* attr-fnspec.h (attr_fnspec::arg_readonly_p): Accept '1'...'9'.
Diffstat (limited to 'gcc/attr-fnspec.h')
-rw-r--r-- | gcc/attr-fnspec.h | 2 |
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) */ |