Commit 6bd8a5c7 by David Malcolm Committed by David Malcolm

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
parent ac9e52e7
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> 2016-12-09 Nathan Sidwell <nathan@acm.org>
PR C++/78550 PR C++/78550
...@@ -3355,7 +3355,7 @@ extern struct target_rtl *this_target_rtl; ...@@ -3355,7 +3355,7 @@ extern struct target_rtl *this_target_rtl;
#ifndef GENERATOR_FILE #ifndef GENERATOR_FILE
/* Return the attributes of a MEM rtx. */ /* Return the attributes of a MEM rtx. */
static inline struct mem_attrs * static inline const struct mem_attrs *
get_mem_attrs (const_rtx x) get_mem_attrs (const_rtx x)
{ {
struct mem_attrs *attrs; struct mem_attrs *attrs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment