projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9100443
)
Copied arguments are readonly
author
Jan Hubicka
<jh@suse.cz>
Fri, 13 Nov 2020 20:13:51 +0000
(21:13 +0100)
committer
Jan Hubicka
<jh@suse.cz>
Fri, 13 Nov 2020 20:14:37 +0000
(21:14 +0100)
* attr-fnspec.h (attr_fnspec::arg_readonly_p): Accept '1'...'9'.
gcc/attr-fnspec.h
patch
|
blob
|
history
diff --git
a/gcc/attr-fnspec.h
b/gcc/attr-fnspec.h
index b4b49e93fc43e18a527d0dfd1f7bbaae676ae33f..ccc36e1b2181ec3acede6785a282666826d52f22 100644
(file)
--- 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) */