aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-12-09 14:34:48 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-12-09 14:34:48 +0000
commit6bd8a5c78f6c9b480936e88eff6b44e9ea0ed577 (patch)
treeec488524deffd81934463b0cea19f04ff7637e0c /gcc/rtl.h
parentac9e52e72bb6a8aabec9a53d6e045b78dafacb45 (diff)
downloadgcc-6bd8a5c78f6c9b480936e88eff6b44e9ea0ed577.zip
gcc-6bd8a5c78f6c9b480936e88eff6b44e9ea0ed577.tar.gz
gcc-6bd8a5c78f6c9b480936e88eff6b44e9ea0ed577.tar.bz2
Prevent use of MEM_* attr accessor macros as lvalues
gcc/ChangeLog: * rtl.h (get_mem_attrs): Add "const" qualifier to returned pointer. From-SVN: r243487
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index a5efa28..4f0efa6 100644
--- 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;