projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac9e52e
)
Prevent use of MEM_* attr accessor macros as lvalues
author
David Malcolm
<dmalcolm@redhat.com>
Fri, 9 Dec 2016 14:34:48 +0000
(14:34 +0000)
committer
David Malcolm
<dmalcolm@gcc.gnu.org>
Fri, 9 Dec 2016 14:34:48 +0000
(14:34 +0000)
gcc/ChangeLog:
* rtl.h (get_mem_attrs): Add "const" qualifier to returned
pointer.
From-SVN: r243487
gcc/ChangeLog
patch
|
blob
|
history
gcc/rtl.h
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index d2e5f478cc42c76adf2e7436fe36514bc595a7a0..91dfc18bf9f56c012efa45485a5a49321c8ad620 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-1,3
+1,8
@@
+2016-12-09 David Malcolm <dmalcolm@redhat.com>
+
+ * rtl.h (get_mem_attrs): Add "const" qualifier to returned
+ pointer.
+
2016-12-09 Nathan Sidwell <nathan@acm.org>
PR C++/78550
diff --git
a/gcc/rtl.h
b/gcc/rtl.h
index a5efa282a157f40b7666cc36488e475340fb47a2..4f0efa61aa87d9fa186046c4b19146013c2a0d5f 100644
(file)
--- a/
gcc/rtl.h
+++ b/
gcc/rtl.h
@@
-3355,7
+3355,7
@@
extern struct target_rtl *this_target_rtl;
#ifndef GENERATOR_FILE
/* Return the attributes of a MEM rtx. */
-static inline struct mem_attrs *
+static inline
const
struct mem_attrs *
get_mem_attrs (const_rtx x)
{
struct mem_attrs *attrs;